benchmark: update interations and len in benchmark/util/text-decoder.js #50938
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
benchmark: update interations and len in benchmark/util/text-decoder.js
Refs: #50571
To avoid long time testing, also shrinked the length to a shorter execution time but still reflecting the performance.
Belowing are the score improvement after 10X iteration change:
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=195.16%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=195.50%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=208.38%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=455.98%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=455.12%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=130.19%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=110.56%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="utf-8": n=1000 percent=112.78%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=219.42%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=209.79%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=207.44%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=363.22%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=391.01%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=110.74%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="utf-8": n=1000 percent=110.01%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=209.34%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=203.15%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=230.26%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=425.13%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=414.33%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=112.50%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="utf-8": n=1000 percent=112.87%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=200.25%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=198.14%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=202.09%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=409.94%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=409.10%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=111.46%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=111.46%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="utf-8": n=1000 percent=111.23%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=167.00%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=177.66%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=186.68%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=178.14%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=183.53%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=179.09%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="latin1": n=1000 percent=111.61%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="latin1": n=1000 percent=187.75%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=0 encoding="latin1": n=1000 percent=168.16%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="latin1": n=1000 percent=178.63%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="latin1": n=1000 percent=184.81%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=0 encoding="latin1": n=1000 percent=186.54%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="latin1": n=1000 percent=182.40%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=178.20%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=183.54%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=176.17%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=180.91%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=184.76%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=188.66%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=1 encoding="latin1": n=1000 percent=111.11%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=177.94%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=175.18%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=184.49%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=182.09%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=178.55%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=180.64%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="latin1": n=1000 percent=111.23%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=158.71%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=174.86%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=172.27%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=185.58%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=179.00%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=172.08%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=110.57%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=168.52%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=181.03%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=165.80%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=183.66%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=171.94%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=126.39%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=0 encoding="iso-8859-3": n=1000 percent=131.68%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=171.07%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=180.73%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=171.08%
util/text-decoder.js type="SharedArrayBuffer" fatal=0 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=181.38%
util/text-decoder.js type="ArrayBuffer" fatal=0 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=180.71%
util/text-decoder.js type="Buffer" fatal=0 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=179.90%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=170.00%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=165.23%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=161.41%
util/text-decoder.js type="SharedArrayBuffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=187.16%
util/text-decoder.js type="ArrayBuffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=176.52%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=123.98%
util/text-decoder.js type="Buffer" fatal=1 ignoreBOM=1 encoding="iso-8859-3": n=1000 percent=128.72%