Skip to content

Commit

Permalink
test: reduce run time for misc benchmark tests
Browse files Browse the repository at this point in the history
Run only one benchmark for each benchmark file tested by
test-benchmark-misc.js.

PR-URL: #16120
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Nov 28, 2017
1 parent 8da3b51 commit dabdb2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/misc/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ function runUsingArgumentsAndApply(n, concat) {
function main(conf) {
const n = +conf.n;
switch (conf.method) {
// '' is a default case for tests
case '':
case 'restAndSpread':
runUsingRestAndSpread(n, conf.concat);
break;
Expand Down
2 changes: 2 additions & 0 deletions benchmark/misc/object-property-bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ function main(conf) {
const n = +conf.millions * 1e6;

switch (conf.method) {
// '' is a default case for tests
case '':
case 'property':
runProperty(n);
break;
Expand Down
2 changes: 2 additions & 0 deletions benchmark/misc/punycode.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ function main(conf) {
const n = +conf.n;
const val = conf.val;
switch (conf.method) {
// '' is a default case for tests
case '':
case 'punycode':
runPunycode(n, val);
break;
Expand Down

0 comments on commit dabdb2d

Please sign in to comment.