From 7887a922031915d8efcee06db26c7575cbb9dc30 Mon Sep 17 00:00:00 2001 From: Fredy Ballesteros <33910699+fredyballest@users.noreply.github.com> Date: Fri, 13 Aug 2021 23:03:21 -0500 Subject: [PATCH] Multithreads Add more threads --- threads.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/threads.js b/threads.js index 1aeacb5..92243b0 100644 --- a/threads.js +++ b/threads.js @@ -6,3 +6,14 @@ const start = Date.now(); crypto.pbkdf2('a', 'b', 100000, 512, 'sha512', () => { console.log('1:', Date.now() - start); }); + +crypto.pbkdf2('a', 'b', 100000, 512, 'sha512', () => { + console.log('2:', Date.now() - start); +}); +crypto.pbkdf2('a', 'b', 100000, 512, 'sha512', () => { + console.log('3:', Date.now() - start); +}); + +crypto.pbkdf2('a', 'b', 100000, 512, 'sha512', () => { + console.log('4:', Date.now() - start); +});