Skip to content

Instantly share code, notes, and snippets.

@asumagic
Created August 15, 2017 08:48
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 asumagic/c6a99b5956ceab841e7fe4730bfe9ca5 to your computer and use it in GitHub Desktop.
Save asumagic/c6a99b5956ceab841e7fe4730bfe9ca5 to your computer and use it in GitHub Desktop.
[10:40:44] Benchmark: Running 'naive translation (string concat)' (50000000 samples)
[10:43:07] Benchmark: Done in 143 seconds (~0.00286ms per sample)
[10:43:07] Benchmark: Running 'replace() translation' (50000000 samples)
[10:46:11] Benchmark: Done in 184 seconds (~0.00368ms per sample)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment