Skip to content

Instantly share code, notes, and snippets.

@gabeno
Created July 24, 2015 11:28
Show Gist options
  • Save gabeno/ea80e8aaf606c55c80a1 to your computer and use it in GitHub Desktop.
Save gabeno/ea80e8aaf606c55c80a1 to your computer and use it in GitHub Desktop.
List Timing Results
# tests done on an ubuntu vm
concat 1.65812611580 milliseconds
append 0.07023715973 milliseconds
list comprehension 0.03012800217 milliseconds
list range 0.00904202461 milliseconds
@gabeno
Copy link
Author

gabeno commented Jul 24, 2015

factor in time for calling a function, eliminate this overhead (https://github.com/gabeno/cs/commit/5f45810826a616767a9aedcbe596366c556a5f20):

time for calling a function 0.00007104874 milliseconds
concat 1.61438107491 milliseconds
append 0.07360911369 milliseconds
list comprehension 0.02981185913 milliseconds
list range 0.00812816620 milliseconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment