Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 499d764

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /