Skip to content

Instantly share code, notes, and snippets.

@paulohrpinheiro
Created August 22, 2015 21:01
Show Gist options
  • Save paulohrpinheiro/ec2d17f4c4850efa8010 to your computer and use it in GitHub Desktop.
Save paulohrpinheiro/ec2d17f4c4850efa8010 to your computer and use it in GitHub Desktop.
Saída da primeira medição.
$ python3 -m cProfile distrincha.py < test.txt
Total of words: 42740
120568 function calls in 229.015 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
102 0.002 0.000 0.004 0.000 codecs.py:297(decode)
1 0.181 0.181 229.015 229.015 distrincha.py:1()
5000 0.184 0.000 0.325 0.000 distrincha.py:12()
5000 0.875 0.000 228.370 0.046 distrincha.py:19()
1 0.054 0.054 0.122 0.122 distrincha.py:8()
1 0.000 0.000 229.015 229.015 {built-in method exec}
1 0.000 0.000 0.000 0.000 {built-in method len}
1 0.000 0.000 0.000 0.000 {built-in method print}
102 0.003 0.000 0.003 0.000 {built-in method utf_8_decode}
47679 0.141 0.000 0.141 0.000 {method 'add' of 'set' objects}
5000 0.017 0.000 0.017 0.000 {method 'append' of 'list' objects}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
47679 227.495 0.005 227.495 0.005 {method 'index' of 'list' objects}
5000 0.047 0.000 0.047 0.000 {method 'split' of 'str' objects}
5000 0.017 0.000 0.017 0.000 {method 'strip' of 'str' objects}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment