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>
v7.x
Bartosz Sosnowski 9 years ago
committed by Alexis Campailla
parent
commit
5386b23f64
  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