From 61b67bcde486152bc01760716b9b61607f4d9853 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 1 Feb 2018 07:04:35 -0800 Subject: [PATCH] [Squash] Nits --- benchmark/es/{rest-assign.js => spread-assign.js} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename benchmark/es/{rest-assign.js => spread-assign.js} (91%) diff --git a/benchmark/es/rest-assign.js b/benchmark/es/spread-assign.js similarity index 91% rename from benchmark/es/rest-assign.js rename to benchmark/es/spread-assign.js index 1b3b984de7e3af..f33fde9395d6f1 100644 --- a/benchmark/es/rest-assign.js +++ b/benchmark/es/spread-assign.js @@ -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] }); @@ -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); @@ -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 };