Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,25 @@
prefix benchmark
# To mark a test as flaky, list the test name in the appropriate section
# below, without ".js", followed by ": PASS,FLAKY". Example:
# sample-test : PASS,FLAKY
[true] # This section applies to all platforms
# https://github.com/nodejs/node/issues/52690
test-benchmark-crypto: PASS, FLAKY
[$system==win32]
[$system==linux]
[$system==macos]
[$system==solaris] # Also applies to SmartOS
[$system==freebsd]
[$system==aix]
[$arch==arm]

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('readline', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,10 @@
'use strict';
require('../common');
// Minimal test for assert benchmarks. This makes sure the benchmarks aren't
// completely broken but nothing more than that.
const runBenchmark = require('../common/benchmark');
runBenchmark('assert');

View File

@ -0,0 +1,13 @@
'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');

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('blob', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('buffers', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('child_process', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('cluster');

View File

@ -0,0 +1,16 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const { getFips } = require('crypto');
if (getFips()) {
common.skip('some benchmarks are FIPS-incompatible');
}
const runBenchmark = require('../common/benchmark');
runBenchmark('crypto', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,10 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
// Dgram benchmarks use hardcoded ports. Thus, this test can not be run in
// parallel with tests that choose random ports.
runBenchmark('dgram');

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('dns', { ...process.env, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('domain');

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('es', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('esm', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('events', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,9 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
runBenchmark('fs', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,14 @@
'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', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,16 @@
'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', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('mime', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('misc', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('module');

View File

@ -0,0 +1,20 @@
'use strict';
const common = require('../common');
if (common.isWindows) {
common.skip('vcbuild.bat doesn\'t build the n-api benchmarks yet');
}
const { isMainThread } = require('worker_threads');
if (!isMainThread) {
common.skip('addons are not supported in workers');
}
if (common.isDebug) {
common.skip('benchmark does not work with debug build yet');
}
const runBenchmark = require('../common/benchmark');
runBenchmark('napi', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,11 @@
'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', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('os');

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('path', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('process', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('querystring', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('streams', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('string_decoder');

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('timers', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,17 @@
'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', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('url', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('util', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('v8', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,9 @@
'use strict';
require('../common');
// Minimal test for assert benchmarks. This makes sure the benchmarks aren't
// completely broken but nothing more than that.
const runBenchmark = require('../common/benchmark');
runBenchmark('validators');

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('vm', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,9 @@
'use strict';
const common = require('../common');
if (!common.enoughTestMem)
common.skip('Insufficient memory for Websocket benchmark test');
const runBenchmark = require('../common/benchmark');
runBenchmark('websocket', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('webstreams', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,14 @@
'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', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,7 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('zlib', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -0,0 +1,6 @@
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import testpy
def GetConfiguration(context, root):
return testpy.SimpleTestConfiguration(context, root, 'benchmark')