Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
benchmark: use proxy object as target
  • Loading branch information
suryagh committed Jun 11, 2016
commit a3daa3b94757a9fa14a581600251465b532f5fd4
2 changes: 1 addition & 1 deletion benchmark/misc/util-extend-vs-object-assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(conf) {
v8.setFlagsFromString('--allow_natives_syntax');
eval(v8command);

var obj = {};
var obj = new Proxy({}, { set: function(a, b, c) { return true; } });

bench.start();
for (var j = 0; j < n; j += 1)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

j++?

Copy link
Copy Markdown
Contributor

@mscdex mscdex Jun 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A ton of benchmarks use += 1 for the main loop already, so I'm not sure it's worth changing as far as consistency goes?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var j = n:
while (j--) { ... }

Ok just kidding, it really doesn't matter though :P

Expand Down