Skip to content

Instantly share code, notes, and snippets.

@shelajev
Created July 19, 2021 13:15
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 shelajev/e6febbf9d9de1380b8f4a4b8ef25339c to your computer and use it in GitHub Desktop.
Save shelajev/e6febbf9d9de1380b8f4a4b8ef25339c to your computer and use it in GitHub Desktop.
function lowUsage() {
for (i = 0; i < COMPILATION_THRESHOLD; i++) {
// Do something
}
}
function highUsage() {
for (i = 0; i < 100 * COMPILATION_THRESHOLD; i++) {
// Do something
}
}
while(true) {
lowUsage();
highUsage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment