Add performance tests for Map/Set with String and Object keys
authoradamk@chromium.org <adamk@chromium.org>
Wed, 29 Oct 2014 10:18:16 +0000 (10:18 +0000)
committeradamk@chromium.org <adamk@chromium.org>
Wed, 29 Oct 2014 10:18:38 +0000 (10:18 +0000)
commit5b85911e5e6aec86c260c76df61d3aad725d02b4
tree2e78e85e933164051f0cca355074139eeb5b200c
parent486433415b65d9e79dad68490b9c02e35a3760c0
Add performance tests for Map/Set with String and Object keys

The big change here is to split out each key type into its own
benchmark suite, since optimizations for different key types
are likely to be disjoint. ForEach tests have also been split
into separate "Iteration" suites, again with the thought that
iteration performance is likely separable from key type.

As part of adding the new tests, rejiggered the existing tests:
  - Map.set and Set.add (along with their Weak variants) no longer
    include construction costs in their scores
  - Moved key logic into the shared common.js

R=arv@chromium.org, machenbach@chromium.org

Review URL: https://codereview.chromium.org/685753004

Cr-Commit-Position: refs/heads/master@{#24969}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24969 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
test/js-perf-test/Collections/Collections.json
test/js-perf-test/Collections/common.js [new file with mode: 0644]
test/js-perf-test/Collections/map.js
test/js-perf-test/Collections/run.js
test/js-perf-test/Collections/set.js
test/js-perf-test/Collections/weakmap.js
test/js-perf-test/Collections/weakset.js