Skip to content

Instantly share code, notes, and snippets.

@njgibbon
Last active September 12, 2019 10:21
Show Gist options
  • Save njgibbon/9a58049dac0c1b3ed3a0d96807d7a5cc to your computer and use it in GitHub Desktop.
Save njgibbon/9a58049dac0c1b3ed3a0d96807d7a5cc to your computer and use it in GitHub Desktop.
Place Function Input Size Cycles Time (usec) Slowness
1 Slicing 10000 1000 11.7 x1
2 'List' 'reverse' and 'join' 10000 1000 118 x10.1
3 'Reversed' and 'join' 10000 1000 143 x12.2
4 Swap in 'list' and 'join' 10000 1000 745 x63.7
5 Traverse backwards 10000 1000 993 x84.9
6 Traverse forwards and append to front 10000 1000 1470 x125.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment