Skip to content

Instantly share code, notes, and snippets.

@hhatto
Created January 2, 2014 17:43
Show Gist options
  • Save hhatto/8223007 to your computer and use it in GitHub Desktop.
Save hhatto/8223007 to your computer and use it in GitHub Desktop.
replaced to CachedTokenizer
[no cached generate_tokenize]
$ make benchmark (git)-[master]
---> benchmark of autopep8.py test/example.py
1.34user 0.03system 0:01.42elapsed 96%CPU (0avgtext+0avgdata 9548maxresident)k
7240inputs+0outputs (24major+2916minor)pagefaults 0swaps
---> benchmark of test_unit
...........................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 331 tests in 44.265s
OK
43.02user 1.14system 0:44.49elapsed 99%CPU (0avgtext+0avgdata 29304maxresident)k
3584inputs+2192outputs (8major+98743minor)pagefaults 0swaps
---> benchmark of autopep8.py -d test/*.py
/home/hattori/.virtualenvs/autopep8.org/local/lib/python2.7/site-packages/pep8-1.4.6-py2.7.egg/pep8.py:1213: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
elif self.lines[0][:3] == '\xef\xbb\xbf':
14.43user 0.05system 0:14.51elapsed 99%CPU (0avgtext+0avgdata 21668maxresident)k
208inputs+0outputs (0major+8176minor)pagefaults 0swaps
[cached generate_tokenize]
$ make benchmark (git)-[cache_generate_tokens]
---> benchmark of autopep8.py test/example.py
1.21user 0.03system 0:01.27elapsed 98%CPU (0avgtext+0avgdata 9720maxresident)k
1624inputs+0outputs (9major+2784minor)pagefaults 0swaps
---> benchmark of test_unit
...........................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 331 tests in 36.471s
OK
35.14user 1.24system 0:36.69elapsed 99%CPU (0avgtext+0avgdata 29548maxresident)k
2688inputs+2192outputs (2major+91858minor)pagefaults 0swaps
---> benchmark of autopep8.py -d test/*.py
/home/hattori/.virtualenvs/py275new/local/lib/python2.7/site-packages/pep8.py:1213: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
elif self.lines[0][:3] == '\xef\xbb\xbf':
9.68user 0.10system 0:09.82elapsed 99%CPU (0avgtext+0avgdata 17848maxresident)k
1240inputs+0outputs (10major+5220minor)pagefaults 0swaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment