Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created June 1, 2019 11:38
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 AlexDaniel/481618bfc56f95ba89e86ec7efdb95f9 to your computer and use it in GitHub Desktop.
Save AlexDaniel/481618bfc56f95ba89e86ec7efdb95f9 to your computer and use it in GitHub Desktop.
tools/speedup.p6 10 6
1.67x as fast

Given:
old-time     = 10
new-time     = 6
old-overhead = 0
new-overhead = 0

old          = 10 (old-time - old-overhead)
new          = 6 (new-time - new-overhead)

All forms:
1.666667x as fast (old ÷ new)
0.666667x faster (old ÷ new - 1)
66.666667% faster ( (old ÷ new - 1) × 100 )
runs in 60% of the time it used to (new ÷ old × 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment