mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
`test-benchmark-buffer` has been observed to timeout on CI on SmartOS. Move the test to `sequential` so it is not competing with other tests for resources. PR-URL: https://github.com/nodejs/node/pull/15373 Fixes: https://github.com/nodejs/node/issues/15372 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
// Minimal test for buffer benchmarks. This makes sure the benchmarks aren't
|
|
// completely broken but nothing more than that.
|
|
|
|
const assert = require('assert');
|
|
const fork = require('child_process').fork;
|
|
const path = require('path');
|
|
|
|
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
|
|
const argv = ['--set', 'aligned=true',
|
|
'--set', 'args=1',
|
|
'--set', 'buffer=fast',
|
|
'--set', 'encoding=utf8',
|
|
'--set', 'len=2',
|
|
'--set', 'method=',
|
|
'--set', 'n=1',
|
|
'--set', 'noAssert=true',
|
|
'--set', 'pieces=1',
|
|
'--set', 'pieceSize=1',
|
|
'--set', 'search=@',
|
|
'--set', 'size=1',
|
|
'--set', 'source=array',
|
|
'--set', 'type=',
|
|
'--set', 'withTotalLength=0',
|
|
'buffers'];
|
|
|
|
const child = fork(runjs, argv);
|
|
child.on('exit', (code, signal) => {
|
|
assert.strictEqual(code, 0);
|
|
assert.strictEqual(signal, null);
|
|
});
|