Skip to content

Commit

Permalink
[Squash] Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Feb 1, 2018
1 parent 8d947fa commit 61b67bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/es/rest-assign.js → benchmark/es/spread-assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const assert = require('assert');
const util = require('util');

const bench = common.createBenchmark(main, {
method: ['rest', 'assign', '_extend'],
method: ['spread', 'assign', '_extend'],
count: [5, 10, 20],
millions: [1]
});
Expand All @@ -23,7 +23,7 @@ function main({ millions, context, count, rest, method }) {
switch (method) {
case '':
// Empty string falls through to next line as default, mostly for tests.
case 'extend':
case '_extend':
bench.start();
for (i = 0; i < n; i++)
obj = util._extend({}, src);
Expand All @@ -35,7 +35,7 @@ function main({ millions, context, count, rest, method }) {
obj = Object.assign({}, src);
bench.end(n);
break;
case 'rest':
case 'spread':
bench.start();
for (i = 0; i < n; i++)
obj = { ...src };
Expand Down

0 comments on commit 61b67bc

Please sign in to comment.