Created
June 24, 2018 12:48
-
-
Save nairihar/032bc5f71f5d6a274e6a60efd6baaf49 to your computer and use it in GitHub Desktop.
JavaScript series, part 1, Set, medium
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
count | Array Test, usign includes | Array test, using indexOf | Set Test, using has | |
---|---|---|---|---|
10 | 0.23095703125ms | 0.188720703125ms | 0.409912109375ms | |
100 | 0.230712890625ms | 0.197998046875ms | 0.390869140625ms | |
1000 | 0.236083984375ms | 0.206787109375ms | 0.38916015625ms | |
10000 | 0.09033203125ms | 0.11083984375ms | 0.278076171875ms | |
100000 | 0.123046875ms | 0.134033203125ms | 0.166015625ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment