Created
June 25, 2018 08:51
-
-
Save chnbohwr/ed862da796e4b6971edb07c513c1bdbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sha256 = require('sha256'); | |
| const arrayCount = 2000000; | |
| console.time('single thread'); | |
| Array.from(Array(arrayCount)).map(() => sha256(Math.random().toString())); | |
| console.timeEnd('single thread'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment