Skip to content

Instantly share code, notes, and snippets.

@yosiat
Last active October 17, 2020 10:10
Show Gist options
  • Save yosiat/16b83539748c781aee6db9e22fff2116 to your computer and use it in GitHub Desktop.
Save yosiat/16b83539748c781aee6db9e22fff2116 to your computer and use it in GitHub Desktop.

Running - https://github.com/dominictarr/bench-lru v12.13.1

First round is simple git clone && npm install and that's it, second round is upgraded all packages to their latest

First Round

name set get1 update get2 evict
mnemonist-object 14545 53908 44944 62112 9251
simple-lru-cache 6156 26846 23419 28369 7060
hashlru 14859 14620 16584 17153 7050
quick-lru 6127 4591 5690 4405 6081
tiny-lru 5724 45455 35778 42644 4508
lru-fast 6376 32103 25608 35461 4507
mnemonist-map 5004 15373 11614 16420 3565
hyperlru-object 3261 11998 12225 12407 3328
secondary-cache 3170 8319 5794 11919 2642
js-lru 3568 10582 9443 11955 1963
lru 3411 4572 4660 4520 1929
lru-cache 2856 7524 7052 7582 1716
hyperlru-map 2162 7952 6250 6824 1446
modern-lru 2058 3573 3119 3719 1233
mkc 1898 2908 1028 3310 930

Second Round

name set get1 update get2 evict
mnemonist-object 15038 53476 44843 63091 9662
simple-lru-cache 6863 26702 23895 28329 7527
hashlru 17391 15588 14388 15723 7057
quick-lru 6796 3541 6004 3621 6575
tiny-lru 7015 19380 21030 21231 4719
lru-fast 6161 22099 18832 23585 4243
mnemonist-map 5979 16653 11682 19048 3837
hyperlru-object 3100 11662 11306 12979 3470
secondary-cache 3280 9376 5718 11976 2715
js-lru 3681 12121 10005 12247 1964
lru-cache 2430 7984 6842 7816 1887
lru 3339 4398 4510 4570 1884
hyperlru-map 1960 6885 6750 6918 1500
modern-lru 2126 3554 3092 3553 1274
mkc 1954 2857 1024 3329 942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment