Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save SuperLlama88888/dbd98485120d7eb0dbc7df9ae45cb542 to your computer and use it in GitHub Desktop.

Select an option

Save SuperLlama88888/dbd98485120d7eb0dbc7df9ae45cb542 to your computer and use it in GitHub Desktop.
JavaScript Cache Api common timings (SpiderMonkey/Firefox)

JavaScript Cache Api common timings (SpiderMonkey/Firefox)

Operation Time
caches.keys() 0.15 - 0.3ms
caches.has() 0.25 - 0.5ms
caches.open() 0.2 - 0.35ms
caches.open() miss 0.25 - 0.5ms
caches.delete() free
cache.match() miss 0.2 - 0.3ms
cache.match() 39 - 40ms (regardless of response size)
cache.put() overwrite 58 - 60ms
cache.put() new key 10 - 11ms
cache.keys() 0.017 - 0.02ms per entry + 0.35ms
cache.delete() 0.7 - 1.05ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment