Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Issue 1746383003: [js-perf-test] add microbenchmarks for Object.values(), Object.entries() (Closed)

Created:
4 years, 9 months ago by caitp (gmail)
Modified:
4 years, 9 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[esnext] add microbenchmarks for Object.values(), Object.entries() Add microbenchmark for these methods. BUG=v8:4663 LOG=N R=adamk@chromium.org, littledan@chrommium.org Committed: https://crrev.com/705cb7fb707acb89405ed42ba4cd4d16d5924189 Cr-Commit-Position: refs/heads/master@{#34556}

Patch Set 1 #

Patch Set 2 : Refactor tests for correctness + to take advantage of enum cache #

Patch Set 3 : Move lodash tests to a subdirectory + new JSON file, add test with ~25 Maps (I think...?) #

Patch Set 4 : rebased #

Total comments: 4

Patch Set 5 : Remove lodash tests :( and refactor tests #

Patch Set 6 : bugfix #

Patch Set 7 : Make the tests actually work #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -3 lines) Patch
M test/js-perf-test/JSTests.json View 1 2 3 4 5 6 1 chunk +12 lines, -3 lines 2 comments Download
A test/js-perf-test/Object/ObjectTests.json View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A test/js-perf-test/Object/entries.js View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 1 comment Download
M test/js-perf-test/Object/run.js View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A test/js-perf-test/Object/values.js View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (10 generated)
caitp (gmail)
ptal --- some microbenchmarks which might help to measure improvements for common cases. We should ...
4 years, 9 months ago (2016-03-01 17:23:22 UTC) #1
adamk
(fixed littledan's email) I can see how it's useful to compare to lodash, but I'm ...
4 years, 9 months ago (2016-03-03 01:59:37 UTC) #4
caitp (gmail)
On 2016/03/03 01:59:37, adamk wrote: > (fixed littledan's email) > > I can see how ...
4 years, 9 months ago (2016-03-03 19:32:37 UTC) #5
adamk
+machenbach who may have thoughts on the infrastructure part of this
4 years, 9 months ago (2016-03-03 20:33:51 UTC) #7
Michael Achenbach
Infrastructure lg
4 years, 9 months ago (2016-03-04 07:37:36 UTC) #8
Camillo Bruni
I tend to agree with adam on this. I think it would be enough to ...
4 years, 9 months ago (2016-03-04 09:53:39 UTC) #10
caitp (gmail)
On 2016/03/04 09:53:39, cbruni wrote: > I tend to agree with adam on this. > ...
4 years, 9 months ago (2016-03-04 16:37:16 UTC) #11
caitp (gmail)
https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Lodash/lodash.custom.js File test/js-perf-test/Lodash/lodash.custom.js (right): https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Lodash/lodash.custom.js#newcode2 test/js-perf-test/Lodash/lodash.custom.js:2: * @license The infra isn't happy about the lodash ...
4 years, 9 months ago (2016-03-04 16:50:17 UTC) #12
Camillo Bruni
ugh, I appreciate the effort but I fear this is very hard to maintain. So ...
4 years, 9 months ago (2016-03-04 17:15:25 UTC) #13
Camillo Bruni
https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Lodash/lodash.custom.js File test/js-perf-test/Lodash/lodash.custom.js (right): https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Lodash/lodash.custom.js#newcode2 test/js-perf-test/Lodash/lodash.custom.js:2: * @license On 2016/03/04 at 16:50:16, caitp wrote: > ...
4 years, 9 months ago (2016-03-04 17:18:37 UTC) #14
caitp (gmail)
https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js File test/js-perf-test/Object/values.js (right): https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js#newcode77 test/js-perf-test/Object/values.js:77: Object.values(object[24]), On 2016/03/04 17:15:25, cbruni wrote: > How about ...
4 years, 9 months ago (2016-03-04 17:19:30 UTC) #15
caitp (gmail)
On 2016/03/04 17:19:30, caitp wrote: > https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js > File test/js-perf-test/Object/values.js (right): > > https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js#newcode77 > ...
4 years, 9 months ago (2016-03-04 19:00:57 UTC) #16
caitp (gmail)
On 2016/03/04 17:19:30, caitp wrote: > https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js > File test/js-perf-test/Object/values.js (right): > > https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js#newcode77 > ...
4 years, 9 months ago (2016-03-04 19:00:58 UTC) #17
Camillo Bruni
On 2016/03/04 at 17:19:30, caitpotter88 wrote: > https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js > File test/js-perf-test/Object/values.js (right): > > https://codereview.chromium.org/1746383003/diff/60001/test/js-perf-test/Object/values.js#newcode77 ...
4 years, 9 months ago (2016-03-07 08:18:55 UTC) #18
Camillo Bruni
lgtm https://codereview.chromium.org/1746383003/diff/120001/test/js-perf-test/Object/entries.js File test/js-perf-test/Object/entries.js (right): https://codereview.chromium.org/1746383003/diff/120001/test/js-perf-test/Object/entries.js#newcode70 test/js-perf-test/Object/entries.js:70: if (JSON.stringify(expected) !== JSON.stringify(result)) { Right, this seems ...
4 years, 9 months ago (2016-03-07 08:21:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746383003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746383003/120001
4 years, 9 months ago (2016-03-07 13:51:54 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/11959)
4 years, 9 months ago (2016-03-07 14:03:20 UTC) #24
caitp (gmail)
On 2016/03/07 14:03:20, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 9 months ago (2016-03-07 14:11:26 UTC) #25
adamk
lgtm stamp for toplevel OWNERs
4 years, 9 months ago (2016-03-07 18:02:00 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746383003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746383003/120001
4 years, 9 months ago (2016-03-07 18:19:33 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-07 18:45:30 UTC) #30
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/705cb7fb707acb89405ed42ba4cd4d16d5924189 Cr-Commit-Position: refs/heads/master@{#34556}
4 years, 9 months ago (2016-03-07 18:47:17 UTC) #32
Michael Achenbach
Sorry for not seeing that immediately: https://codereview.chromium.org/1746383003/diff/120001/test/js-perf-test/JSTests.json File test/js-perf-test/JSTests.json (right): https://codereview.chromium.org/1746383003/diff/120001/test/js-perf-test/JSTests.json#newcode111 test/js-perf-test/JSTests.json:111: "path": ["."], This ...
4 years, 9 months ago (2016-03-09 08:22:54 UTC) #33
caitp (gmail)
4 years, 9 months ago (2016-03-09 11:49:37 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/1746383003/diff/120001/test/js-perf-test/JSTe...
File test/js-perf-test/JSTests.json (right):

https://codereview.chromium.org/1746383003/diff/120001/test/js-perf-test/JSTe...
test/js-perf-test/JSTests.json:111: "path": ["."],
On 2016/03/09 08:22:53, Michael Achenbach wrote:
> This fails on arm + android since it landed. I think the path needs to b
Object
> as it was before, since there is the run.js file.

oops, I'll fix that

Powered by Google App Engine
This is Rietveld 408576698