v8/test/js-perf-test
Frank Tang e23e1311b4 [Intl] Add benchmark for toLocaleString/localeCompare
This is a bit of a performance bottleneck currently and
we're planning on improving performance by adding caching.
These benchmarks will allow us to measure the improvements
Add benchmark tests for
 String.prototype.localeCompare()
 Date.prototype.toLocaleString()
 Date.prototype.toLocaleDateString()
 Date.prototype.toLocaleTimeString()
 Number.prototype.toLocaleString()

Run with
python -u tools/run_perf.py --binary-override-path \
  out/x64.release/d8 --filter "JSTests/Strings/StringLocaleCompare" \
  test/js-perf-test/JSTests.json
python -u tools/run_perf.py --binary-override-path \
  out/x64.release/d8 --filter "JSTests/Dates" \
  test/js-perf-test/JSTests.json
python -u tools/run_perf.py --binary-override-path \
  out/x64.release/d8 --filter "JSTests/Numbers" \
  test/js-perf-test/JSTests.json

Before the landing of dffaff7769

 git reset --hard 474a6d6364
got
StringLocaleCompare-Strings(Score): 13240000
toLocaleDateString-Dates(Score): 1877000
toLocaleString-Dates(Score): 1197000
toLocaleTimeString-Dates(Score): 2147000
toLocaleDateString-Dates(Score): 1908000

After the landing of dffaff7769
 git reset --hard dffaff7769
got
StringLocaleCompare-Strings(Score): 97182
toLocaleDateString-Dates(Score): 10436
toLocaleString-Dates(Score): 10436
toLocaleTimeString-Dates(Score): 10669
toLocaleString-Numbers(Score): 2876


Bug: chromium:901748
Change-Id: Ibfea85fe668f1bfaacb2dfe08368cd920d2bbfc6
Reviewed-on: https://chromium-review.googlesource.com/c/1318099
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57323}
2018-11-07 18:08:16 +00:00
..
Array Add non-COW inputs to Array.from benchmarks. 2018-11-02 11:41:06 +00:00
ArrayIndexOfIncludesPolymorphic [js-perf-test] Add Array#{indexOf,includes} micro-benchmark 2018-10-31 07:55:24 +00:00
ArrayLiteralInitialSpreadLargeDoubleHoley [js-perf-tests] Add micro-benchmarks for copying double arrays. 2018-10-15 15:05:21 +00:00
ArrayLiteralInitialSpreadLargeDoublePacked [js-perf-tests] Fix micro-benchmark of spreading double arrays. 2018-10-15 17:41:16 +00:00
ArrayLiteralInitialSpreadLargeHoley Remove slow ArrayLiteralInitialSpread benchmarks to avoid timeout. 2018-08-29 14:50:59 +00:00
ArrayLiteralInitialSpreadLargePacked [js-perf-tests] Fix micro-benchmark of spreading double arrays. 2018-10-15 17:41:16 +00:00
ArrayLiteralInitialSpreadLargeSmiMap [js-perf-test] Add micro-benchmarks for spreading maps and sets. 2018-10-10 08:32:15 +00:00
ArrayLiteralInitialSpreadLargeSmiSet [js-perf-test] Fix spread set benchmark. 2018-10-12 08:43:58 +00:00
ArrayLiteralInitialSpreadSmallDoubleHoley [js-perf-tests] Add micro-benchmarks for copying double arrays. 2018-10-15 15:05:21 +00:00
ArrayLiteralInitialSpreadSmallDoublePacked [js-perf-tests] Fix micro-benchmark of spreading double arrays. 2018-10-15 17:41:16 +00:00
ArrayLiteralInitialSpreadSmallHoley Enable warmup and/or longer runs for ArrayLiteralInitialSpread. 2018-08-27 08:40:46 +00:00
ArrayLiteralInitialSpreadSmallPacked Rename and fix JSON data for ArrayLiteralInitialSpread benchmarks. 2018-08-28 10:45:38 +00:00
ArrayLiteralInitialSpreadSmallSmiMap [js-perf-test] Add micro-benchmarks for spreading maps and sets. 2018-10-10 08:32:15 +00:00
ArrayLiteralInitialSpreadSmallSmiSet [js-perf-test] Fix spread set benchmark (again). 2018-10-12 10:50:59 +00:00
ArrayLiteralSpread
ArraySort Revert "[builtins] Add FastCallFunction builtin that elides some checks" 2018-09-14 11:09:08 +00:00
AsyncAwait
BytecodeHandlers
Classes
Closures
Collections
DataView [dataview] Improve JS performance test coverage for DataView 2018-07-03 09:06:24 +00:00
Dates [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
Exceptions
ExpressionDepth
ForLoops
Generators
Inspector [tests] Fix JSTests 2018-06-05 11:38:43 +00:00
Iterators
Keys
ManyClosures
Modules
Numbers [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
Object
ObjectLiteralSpread Reland "Reland "[test] Add JSTest benchmark for object literal spread"" 2018-04-04 16:41:10 +00:00
Parsing [js-perf] Further reducing test-case size. 2018-08-30 11:41:30 +00:00
PropertyQueries
Proxies
RegExp [js-perf-test] Fix tests on android 2018-05-24 09:09:59 +00:00
RestParameters
Scope
SixSpeed
SpreadCalls
SpreadCallsGeneral Add warmup to SpreadCallsGeneral benchmarks. 2018-09-04 16:15:54 +00:00
StringIterators Fix StringToList to set right length of the new array. 2018-10-24 13:30:51 +00:00
Strings [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
Templates
TurboFan [turbofan] Introduce a CheckStringAdd node instead of cons string lowering 2018-08-29 09:34:26 +00:00
TypedArrays Gracefully fail BigInt TypedArray.p.sort benchmarks. 2018-04-19 12:21:10 +00:00
base.js [js-perf-test] Add Array#{indexOf,includes} micro-benchmark 2018-10-31 07:55:24 +00:00
JSTests.json [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
OWNERS
RegExp.json [js-perf-test] Fix tests on android 2018-05-24 09:09:59 +00:00
SixSpeed.json Reland "[tools] Add benchmark owners to the config" 2018-05-16 13:53:49 +00:00