Skip to content

Instantly share code, notes, and snippets.

@photonstorm
Last active November 19, 2015 17:04
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 photonstorm/a55662424c5a45b999b6 to your computer and use it in GitHub Desktop.
Save photonstorm/a55662424c5a45b999b6 to your computer and use it in GitHub Desktop.
gc test
// The following code, on its own (with nothing else)
// generates ~500 KB of gc every ~2.5 seconds in 49.0.2568.0 canary (64-bit / Windows 7)
// Update: Appears it's an issue with Dev Tools: https://code.google.com/p/chromium/issues/detail?id=120186
// Using JS Profiler creates lots of garbage in the JS Heap. Wonderful.
function update (now) {
window.requestAnimationFrame(update);
}
window.requestAnimationFrame(update);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment