mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
ci(codechecks): add logs to the benchmark pipeline
This commit is contained in:
@@ -23,7 +23,13 @@ async function runBenchmarkOfLib(lib: string): Promise<WrkResults> {
|
||||
const libPath = join(BENCHMARK_PATH, `${lib}.js`);
|
||||
const process = spawn('node', [libPath], {
|
||||
detached: true,
|
||||
stdio: 'ignore',
|
||||
});
|
||||
|
||||
process.stdout!.on('data', data => {
|
||||
console.log(`stdout: ${data}`);
|
||||
});
|
||||
process.stderr!.on('data', data => {
|
||||
console.log(`stderr: ${data}`);
|
||||
});
|
||||
|
||||
process.unref();
|
||||
@@ -34,7 +40,7 @@ async function runBenchmarkOfLib(lib: string): Promise<WrkResults> {
|
||||
threads: 8,
|
||||
duraton: '10s',
|
||||
connections: 1024,
|
||||
url: 'http://0.0.0.0:3000',
|
||||
url: 'http://localhost:3000',
|
||||
});
|
||||
console.log(lib);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user