node/test/benchmark/test-benchmark-websocket.js
Chenyu Yang 212a9724d5
benchmark: add undici websocket benchmark
Refs: https://github.com/nodejs/performance/issues/114
PR-URL: https://github.com/nodejs/node/pull/50586
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
2023-12-06 20:05:38 +00:00

10 lines
266 B
JavaScript

'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 });