3 ms·
I think you're timing the import in there, too. Plus, creating an object of a class rather than using a literal will always be slower.
by mapleoin 13y ago
I think you're timing the import in there, too. Plus, creating an object of a class rather than using a literal will always be slower.
- mjschultz 13y agoDoes the --setup statement really get timed? My reading of the docs[1] has always led me to believe that it doesn't. For example, "It is possible to provide a setup statement that is executed only once at the beginning" [1]: http://docs.python.org/2/library/timeit.html http://docs.python.org/2/library/timeit.html