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 [test] Add JSTest benchmark for array literal spread. 2018-01-23 05:39:30 +00:00
ArraySort Revert "[builtins] Add FastCallFunction builtin that elides some checks" 2018-09-14 11:09:08 +00:00
AsyncAwait [js-perf-test] Add a basic async-await microbenchmark 2016-12-20 13:10:07 +00:00
BytecodeHandlers Call the right functions in bitwise bytecode handlers benchmarks. 2017-07-17 10:58:47 +00:00
Classes [js-perf-test] Add microbenchmarks for leaf constructors. 2017-08-08 05:25:31 +00:00
Closures [test] Add performance test for closures. 2016-12-05 13:10:44 +00:00
Collections [js-perf-test] Add Collection constructor and double type microbenchmarks 2017-11-16 07:21:05 +00:00
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 Fixes for try-catch microbenchmark 2015-06-08 10:11:34 +00:00
ExpressionDepth [parser] Use n-ary addition for template strings 2017-10-31 16:02:53 +00:00
ForLoops [js-perf-test] add microbenchmarks for C-style for loops 2017-04-12 21:56:43 +00:00
Generators [esnext] Remove always-disabled support for function.sent 2018-02-26 20:01:41 +00:00
Inspector [tests] Fix JSTests 2018-06-05 11:38:43 +00:00
Iterators Use merged JSTest config for performance tests. 2014-12-05 08:43:19 +00:00
Keys reland [js-perf-test] Adding micro benchmarks for for-in and keys patterns. 2016-03-02 12:25:41 +00:00
ManyClosures [Test] Test case to investigate the impact of removing the weak list 2017-08-24 15:02:48 +00:00
Modules [js-perf-tests] Fix Modules benchmarks 2017-08-29 16:50:44 +00:00
Numbers [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
Object [test] Add micro benchmark for Object.create 2016-09-28 08:14:21 +00:00
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 [js-perf-tests] Fix PropertyQueries test for fast-delete 2017-05-05 15:57:36 +00:00
Proxies Implement microbenchmark for has-in idiom 2017-09-13 08:48:44 +00:00
RegExp [js-perf-test] Fix tests on android 2018-05-24 09:09:59 +00:00
RestParameters [elements] Rename FAST elements kinds 2017-06-30 13:31:44 +00:00
Scope For Micro-benchmarks for 'with' 2015-06-01 07:40:11 +00:00
SixSpeed [js-perf-tests] Add classes benchmarks from SixSpeed. 2017-04-19 11:23:48 +00:00
SpreadCalls [es6] implement spread calls 2015-04-09 19:37:19 +00:00
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 Perf tests for Template Literals 2014-12-12 05:14:28 +00:00
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 Add Peter as an owner of the JSTests benchmark 2018-02-13 02:49:25 +00:00
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