diff options
author | Rich Trott <rtrott@gmail.com> | 2018-11-08 16:33:42 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-10 22:44:26 -0800 |
commit | b5420c9577be1f07da8c6ca8b46bb38195ba2529 (patch) | |
tree | cc8b1ac4d310dd998433a78bac8f900ee65b251d /test/sequential | |
parent | 1e0005eac91a9f1a14089d13109f0628ea29fa09 (diff) | |
download | android-node-v8-b5420c9577be1f07da8c6ca8b46bb38195ba2529.tar.gz android-node-v8-b5420c9577be1f07da8c6ca8b46bb38195ba2529.tar.bz2 android-node-v8-b5420c9577be1f07da8c6ca8b46bb38195ba2529.zip |
test: move benchmark tests out of main test suite
Move benchmark tests (which are slow) out of the main test suite. We can
hopefully add them to node-daily-master so that they are still run daily
on CI.
PR-URL: https://github.com/nodejs/node/pull/24265
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-benchmark-async-hooks.js | 18 | ||||
-rw-r--r-- | test/sequential/test-benchmark-buffer.js | 29 | ||||
-rw-r--r-- | test/sequential/test-benchmark-child-process.js | 15 | ||||
-rw-r--r-- | test/sequential/test-benchmark-dgram.js | 17 | ||||
-rw-r--r-- | test/sequential/test-benchmark-http.js | 34 | ||||
-rw-r--r-- | test/sequential/test-benchmark-http2.js | 29 | ||||
-rw-r--r-- | test/sequential/test-benchmark-napi.js | 24 | ||||
-rw-r--r-- | test/sequential/test-benchmark-net.js | 17 | ||||
-rw-r--r-- | test/sequential/test-benchmark-path.js | 14 | ||||
-rw-r--r-- | test/sequential/test-benchmark-tls.js | 29 | ||||
-rw-r--r-- | test/sequential/test-benchmark-worker.js | 23 |
11 files changed, 0 insertions, 249 deletions
diff --git a/test/sequential/test-benchmark-async-hooks.js b/test/sequential/test-benchmark-async-hooks.js deleted file mode 100644 index 4cb6f89a8c..0000000000 --- a/test/sequential/test-benchmark-async-hooks.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -const common = require('../common'); - -if (!common.hasCrypto) - common.skip('missing crypto'); - -if (!common.enoughTestMem) - common.skip('Insufficient memory for async_hooks benchmark test'); - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('async_hooks', - [ - 'method=trackingDisabled', - 'n=10' - ], - {}); diff --git a/test/sequential/test-benchmark-buffer.js b/test/sequential/test-benchmark-buffer.js deleted file mode 100644 index 171f755647..0000000000 --- a/test/sequential/test-benchmark-buffer.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -require('../common'); - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('buffers', - [ - 'aligned=true', - 'args=1', - 'buffer=fast', - 'byteLength=1', - 'charsPerLine=6', - 'encoding=utf8', - 'endian=BE', - 'len=2', - 'linesCount=1', - 'method=', - 'n=1', - 'pieces=1', - 'pieceSize=1', - 'search=@', - 'size=1', - 'source=array', - 'type=', - 'value=0', - 'withTotalLength=0' - ], - { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); diff --git a/test/sequential/test-benchmark-child-process.js b/test/sequential/test-benchmark-child-process.js deleted file mode 100644 index 365777069b..0000000000 --- a/test/sequential/test-benchmark-child-process.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -require('../common'); - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('child_process', - [ - 'dur=0', - 'n=1', - 'len=1', - 'params=1', - 'methodName=execSync', - ], - { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); diff --git a/test/sequential/test-benchmark-dgram.js b/test/sequential/test-benchmark-dgram.js deleted file mode 100644 index 8c93cd5a0c..0000000000 --- a/test/sequential/test-benchmark-dgram.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -require('../common'); - -const runBenchmark = require('../common/benchmark'); - -// Because the dgram benchmarks use hardcoded ports, this should be in -// sequential rather than parallel to make sure it does not conflict with -// tests that choose random available ports. - -runBenchmark('dgram', ['address=true', - 'chunks=2', - 'dur=0.1', - 'len=1', - 'n=1', - 'num=1', - 'type=send']); diff --git a/test/sequential/test-benchmark-http.js b/test/sequential/test-benchmark-http.js deleted file mode 100644 index 7255e655c0..0000000000 --- a/test/sequential/test-benchmark-http.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const common = require('../common'); - -if (!common.enoughTestMem) - common.skip('Insufficient memory for HTTP benchmark test'); - -// Because the http benchmarks use hardcoded ports, this should be in sequential -// rather than parallel to make sure it does not conflict with tests that choose -// random available ports. - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('http', - [ - 'benchmarker=test-double-http', - 'c=1', - 'chunkedEnc=true', - 'chunks=0', - 'dur=0.1', - 'duplicates=1', - 'input=keep-alive', - 'key=""', - 'len=1', - 'method=write', - 'n=1', - 'res=normal', - 'type=asc', - 'value=X-Powered-By' - ], - { - NODEJS_BENCHMARK_ZERO_ALLOWED: 1, - duration: 0 - }); diff --git a/test/sequential/test-benchmark-http2.js b/test/sequential/test-benchmark-http2.js deleted file mode 100644 index 1668a7b87f..0000000000 --- a/test/sequential/test-benchmark-http2.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -const common = require('../common'); -if (!common.hasCrypto) - common.skip('missing crypto'); - -if (!common.enoughTestMem) - common.skip('Insufficient memory for HTTP/2 benchmark test'); - -// Because the http benchmarks use hardcoded ports, this should be in sequential -// rather than parallel to make sure it does not conflict with tests that choose -// random available ports. - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('http2', - [ - 'benchmarker=test-double-http2', - 'clients=1', - 'length=65536', - 'n=1', - 'nheaders=0', - 'requests=1', - 'streams=1' - ], - { - NODEJS_BENCHMARK_ZERO_ALLOWED: 1, - duration: 0 - }); diff --git a/test/sequential/test-benchmark-napi.js b/test/sequential/test-benchmark-napi.js deleted file mode 100644 index 1a1ff23d60..0000000000 --- a/test/sequential/test-benchmark-napi.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -const common = require('../common'); - -if (common.isWindows) { - common.skip('vcbuild.bat doesn\'t build the n-api benchmarks yet'); -} - -if (!common.isMainThread) { - common.skip('addons are not supported in workers'); -} - -if (process.features.debug) { - common.skip('benchmark does not work with debug build yet'); -} -const runBenchmark = require('../common/benchmark'); - -runBenchmark('napi', - [ - 'n=1', - 'engine=v8', - 'type=String' - ], - { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); diff --git a/test/sequential/test-benchmark-net.js b/test/sequential/test-benchmark-net.js deleted file mode 100644 index 5d3d283fc7..0000000000 --- a/test/sequential/test-benchmark-net.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -require('../common'); - -// Because the net benchmarks use hardcoded ports, this should be in sequential -// rather than parallel to make sure it does not conflict with tests that choose -// random available ports. - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('net', - [ - 'dur=0', - 'len=1024', - 'type=buf' - ], - { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); diff --git a/test/sequential/test-benchmark-path.js b/test/sequential/test-benchmark-path.js deleted file mode 100644 index 890fd7ae41..0000000000 --- a/test/sequential/test-benchmark-path.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -require('../common'); - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('path', - [ - 'n=1', - 'path=', - 'pathext=', - 'paths=', - 'props=' - ], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); diff --git a/test/sequential/test-benchmark-tls.js b/test/sequential/test-benchmark-tls.js deleted file mode 100644 index 40c14af830..0000000000 --- a/test/sequential/test-benchmark-tls.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -const common = require('../common'); - -if (!common.hasCrypto) - common.skip('missing crypto'); - -if (!common.enoughTestMem) - common.skip('Insufficient memory for TLS benchmark test'); - -// Because the TLS benchmarks use hardcoded ports, this should be in sequential -// rather than parallel to make sure it does not conflict with tests that choose -// random available ports. - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('tls', - [ - 'concurrency=1', - 'dur=0.1', - 'n=1', - 'size=2', - 'securing=SecurePair', - 'type=asc' - ], - { - NODEJS_BENCHMARK_ZERO_ALLOWED: 1, - duration: 0 - }); diff --git a/test/sequential/test-benchmark-worker.js b/test/sequential/test-benchmark-worker.js deleted file mode 100644 index ae9a8a6701..0000000000 --- a/test/sequential/test-benchmark-worker.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -const common = require('../common'); - -if (!common.enoughTestMem) - common.skip('Insufficient memory for Worker benchmark test'); - -// Because the worker benchmarks can run on different threads, -// this should be in sequential rather than parallel to make sure -// it does not conflict with tests that choose random available ports. - -const runBenchmark = require('../common/benchmark'); - -runBenchmark('worker', - [ - 'n=1', - 'sendsPerBroadcast=1', - 'workers=1', - 'payload=string' - ], - { - NODEJS_BENCHMARK_ZERO_ALLOWED: 1 - }); |