Skip to content

Commit 499d764

Browse files
committed
Add load testing to functional example
1 parent 71a6547 commit 499d764

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

JavaScript/1-functional/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@ info('I have info for you');
2626
warning('Hello there!');
2727
error('World is not found');
2828
debug('Bye!');
29+
30+
/*
31+
const begin = process.hrtime.bigint();
32+
for (let i = 0; i < 1000000; i++) {
33+
info('Write more then 60Mb logs, line: ' + i);
34+
}
35+
const end = process.hrtime.bigint();
36+
const time = (end - begin) / 1000000n;
37+
console.log(`Time: ${time} milliseconds`);
38+
*/

0 commit comments

Comments
 (0)