v8/test/js-perf-test/Array
Mathias Bynens 591c92acac [js-perf-test] Add Array#{indexOf,includes} micro-benchmark
This patch adds a micro-benchmark comparing Array#indexOf,
Array#includes, and a roughly equivalent `for` loop.

The benchmark can be used to measure any Array#{indexOf,includes}
optimizations we implement in the future.

Test:

    tools/run_perf.py --binary-override-path=out/x64.release/d8 \
      --filter=JSTests/ArrayIndexOfIncludesPolymorphic \
      --extra-flags=--trace-turbo test/js-perf-test/JSTests.json

Bug: v8:8388
Change-Id: I9150d3e56e9d4cb2ffe6baa50ee8cddf8df0ac74
Reviewed-on: https://chromium-review.googlesource.com/c/1307430
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57156}
2018-10-31 07:55:24 +00:00
..
copy-within.js [array] Add basic js-perf benchmarks for Array.p.copyWithin 2018-08-08 15:05:16 +00:00
every.js Revert "[Builtins] Array.prototype.forEach perf regression on dictionaries." 2018-09-06 11:00:15 +00:00
filter.js Revert "[Builtins] Array.prototype.forEach perf regression on dictionaries." 2018-09-06 11:00:15 +00:00
find-index.js [js-perf-tests] Cleanup and more elements kind helpers 2018-08-13 10:14:38 +00:00
find.js [js-perf-tests] Cleanup and more elements kind helpers 2018-08-13 10:14:38 +00:00
for-each.js Revert "[Builtins] Array.prototype.forEach perf regression on dictionaries." 2018-09-06 11:00:15 +00:00
from.js Extend Array.from micro-benchmarks. 2018-10-24 14:17:51 +00:00
join.js [js-perf-test] Consistently use createSuite in all benchmarks 2018-05-29 15:06:48 +00:00
map.js Revert "[Builtins] Array.prototype.forEach perf regression on dictionaries." 2018-09-06 11:00:15 +00:00
of.js [js-perf-test] Consistently use createSuite in all benchmarks 2018-05-29 15:06:48 +00:00
reduce-right.js [js-perf-tests] Cleanup and more elements kind helpers 2018-08-13 10:14:38 +00:00
reduce.js [js-perf-test] Add Array#{indexOf,includes} micro-benchmark 2018-10-31 07:55:24 +00:00
run.js Revert "[Builtins] Array.prototype.forEach perf regression on dictionaries." 2018-09-06 11:00:15 +00:00
slice.js [js-perf-test] Add assert and assertEquals 2018-08-13 23:03:05 +00:00
some.js Revert "[Builtins] Array.prototype.forEach perf regression on dictionaries." 2018-09-06 11:00:15 +00:00
to-string.js [js-perf-test] Consistently use createSuite in all benchmarks 2018-05-29 15:06:48 +00:00