Skip to content

Instantly share code, notes, and snippets.

View djfroofy's full-sized avatar

Drew Smathers djfroofy

  • Pro Solutions Llc.
  • Seattle, WA
View GitHub Profile
@djfroofy
djfroofy / performance_results.txt
Created August 4, 2012 17:15
Lists vs. StringIO vs. Regular String Concat for building strings in Python
IPython 0.10.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [2]: from string_building_perf import *
In [3]: %timeit build_ul_list(100000)
10 loops, best of 3: 77.9 ms per loop