Browse Source

benchmark: fix child-process-exec-stdout on win

This benchmark fails on Windows when trying to execute command which
is more than 32k in size. This commits skips this one case when running
under Windows.

PR-URL: https://github.com/nodejs/node/pull/7178
Reviewed-By: Trott - Rich Trott <rtrott@gmail.com>
Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
v6.x
Bartosz Sosnowski 9 years ago
committed by Evan Lucas
parent
commit
27ed7fc56c
  1. 7
      benchmark/child_process/child-process-exec-stdout.js

7
benchmark/child_process/child-process-exec-stdout.js

@ -1,7 +1,12 @@
'use strict';
const common = require('../common.js');
var messagesLength = [64, 256, 1024, 4096];
// Windows does not support that long arguments
if (process.platform !== 'win32')
messagesLength.push(32768);
const bench = common.createBenchmark(main, {
len: [64, 256, 1024, 4096, 32768],
len: messagesLength,
dur: [5]
});

Loading…
Cancel
Save