Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created February 11, 2021 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbe/7d5bbcfa0ce330b9934949222b8fdbea to your computer and use it in GitHub Desktop.
Save peterbe/7d5bbcfa0ce330b9934949222b8fdbea to your computer and use it in GitHub Desktop.
Different memoization techniques in Yari yarn build
Map 10,000
Built 11,599 pages in 7.6 minutes, at a rate of 25.4 documents per second.
Peak heap memory usage: 2.57 GB
22482 DISTINCT KEYS
34190 COLD HITS
FAILURES: 1.5x
Map 5,000
Built 11,599 pages in 7.6 minutes, at a rate of 25.4 documents per second.
Peak heap memory usage: 2.61 GB
22482 DISTINCT KEYS
50841 COLD HITS
FAILURES: 2.3x
Map 1,000
Built 11,599 pages in 7.8 minutes, at a rate of 24.9 documents per second.
Peak heap memory usage: 2.59 GB
22482 DISTINCT KEYS
78521 COLD HITS
FAILURES: 3.5x
LRU 10,000
Built 11,599 pages in 7.6 minutes, at a rate of 25.3 documents per second.
Peak heap memory usage: 2.58 GB
22482 DISTINCT KEYS
29233 COLD HITS
FAILURES: 1.3x
LRU 5,000
Built 11,599 pages in 7.5 minutes, at a rate of 25.7 documents per second.
Peak heap memory usage: 2.57 GB
22482 DISTINCT KEYS
41069 COLD HITS
FAILURES: 1.8x
LRU 1,000
Built 11,599 pages in 7.6 minutes, at a rate of 25.3 documents per second.
Peak heap memory usage: 2.57 GB
22482 DISTINCT KEYS
61817 COLD HITS
FAILURES: 2.7x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment