0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00
nodejs/test/fixtures/linux-perf-logger.js
Luke Albao 9c714d8232
test: v8: Add test-linux-perf-logger test suite
PR-URL: https://github.com/nodejs/node/pull/50352
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
2023-10-25 23:37:54 +00:00

18 lines
277 B
JavaScript

'use strict';
process.stdout.write(`${process.pid}`);
const testRegex = /test-regex/gi;
function functionOne() {
for (let i = 0; i < 100; i++) {
const match = testRegex.exec(Math.random().toString());
}
}
function functionTwo() {
functionOne();
}
functionTwo();