ci(codechecks): add logs to the benchmark pipeline

This commit is contained in:
Kamil Myśliwiec
2022-07-07 10:37:02 +02:00
parent cf0a3d2eec
commit d44a647969

View File

@@ -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);