Created
January 16, 2016 19:18
-
-
Save oakmac/588352a395c2e721c031 to your computer and use it in GitHub Desktop.
parinfer.py v0.4.0 perf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing file with 2864 lines | |
Indent Mode: 0.93783 s | |
Paren Mode: 0.967327 s | |
7491416 function calls in 2.092 seconds | |
Ordered by: standard name | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.000 0.000 2.092 2.092 <string>:1(<module>) | |
1270904 0.316 0.000 0.663 0.000 parinfer.py:100(getPrevCh) | |
743653 0.176 0.000 0.570 0.000 parinfer.py:106(isEscaping) | |
518789 0.203 0.000 0.855 0.000 parinfer.py:109(prevNonEscCh) | |
268688 0.069 0.000 0.520 0.000 parinfer.py:115(isInStr) | |
250101 0.063 0.000 0.468 0.000 parinfer.py:118(isInComment) | |
265228 0.114 0.000 1.088 0.000 parinfer.py:121(isInCode) | |
8462 0.003 0.000 0.007 0.000 parinfer.py:124(isValidCloser) | |
4274 0.004 0.000 0.026 0.000 parinfer.py:131(pushOpen) | |
4274 0.006 0.000 0.032 0.000 parinfer.py:143(pushClose) | |
126 0.000 0.000 0.001 0.000 parinfer.py:164(pushSemicolon) | |
2865 0.002 0.000 0.009 0.000 parinfer.py:175(pushNewline) | |
15 0.000 0.000 0.000 0.000 parinfer.py:183(pushEscape) | |
610 0.001 0.000 0.003 0.000 parinfer.py:193(pushQuote) | |
100268 0.026 0.000 0.108 0.000 parinfer.py:207(pushDefault) | |
112432 0.089 0.000 0.298 0.000 parinfer.py:212(pushChar) | |
2510 0.006 0.000 0.009 0.000 parinfer.py:242(closeParens) | |
112432 0.158 0.000 0.741 0.000 parinfer.py:263(updateParenTrail) | |
2865 0.002 0.000 0.002 0.000 parinfer.py:297(blockParenTrail) | |
2865 0.008 0.000 0.011 0.000 parinfer.py:318(removeParenTrail) | |
112432 0.111 0.000 0.596 0.000 parinfer.py:343(updateInsertionPt) | |
1 0.000 0.000 0.000 0.000 parinfer.py:36(initialResult) | |
2509 0.001 0.000 0.010 0.000 parinfer.py:362(processIndentTrigger) | |
112432 0.055 0.000 0.204 0.000 parinfer.py:366(processIndent) | |
112432 0.018 0.000 0.019 0.000 parinfer.py:383(updateLine) | |
112432 0.171 0.000 2.037 0.000 parinfer.py:390(processChar) | |
2865 0.033 0.000 2.091 0.001 parinfer.py:409(processLine) | |
1 0.000 0.000 0.000 0.000 parinfer.py:430(finalizeResult) | |
1 0.001 0.001 2.092 2.092 parinfer.py:437(processText) | |
1 0.000 0.000 2.092 2.092 parinfer.py:455(formatText) | |
2510 0.001 0.000 0.001 0.000 parinfer.py:64(insertString) | |
1 0.000 0.000 2.092 2.092 parinfer.py:662(indent_mode) | |
2874 0.001 0.000 0.001 0.000 parinfer.py:67(replaceStringRange) | |
1807 0.001 0.000 0.001 0.000 parinfer.py:70(removeStringRange) | |
112432 0.017 0.000 0.017 0.000 parinfer.py:77(isOpenParen) | |
289801 0.039 0.000 0.039 0.000 parinfer.py:80(isCloseParen) | |
239319 0.035 0.000 0.035 0.000 parinfer.py:83(isWhitespace) | |
1276837 0.290 0.000 0.349 0.000 parinfer.py:91(peek) | |
1 0.000 0.000 0.000 0.000 {isinstance} | |
1408458 0.067 0.000 0.067 0.000 {len} | |
15360 0.002 0.000 0.002 0.000 {method 'append' of 'list' objects} | |
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} | |
1 0.000 0.000 0.000 0.000 {method 'join' of 'str' objects} | |
11931 0.002 0.000 0.002 0.000 {method 'pop' of 'list' objects} | |
1 0.000 0.000 0.000 0.000 {method 'split' of 'str' objects} | |
1807 0.000 0.000 0.000 0.000 {min} | |
1807 0.001 0.000 0.001 0.000 {range} | |
7693616 function calls in 2.183 seconds | |
Ordered by: standard name | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.000 0.000 2.183 2.183 <string>:1(<module>) | |
1273254 0.318 0.000 0.669 0.000 parinfer.py:100(getPrevCh) | |
744828 0.175 0.000 0.573 0.000 parinfer.py:106(isEscaping) | |
519964 0.201 0.000 0.856 0.000 parinfer.py:109(prevNonEscCh) | |
269281 0.069 0.000 0.521 0.000 parinfer.py:115(isInStr) | |
250683 0.063 0.000 0.467 0.000 parinfer.py:118(isInComment) | |
265810 0.115 0.000 1.089 0.000 parinfer.py:121(isInCode) | |
8462 0.003 0.000 0.007 0.000 parinfer.py:124(isValidCloser) | |
4274 0.004 0.000 0.026 0.000 parinfer.py:131(pushOpen) | |
4274 0.006 0.000 0.032 0.000 parinfer.py:143(pushClose) | |
126 0.000 0.000 0.001 0.000 parinfer.py:164(pushSemicolon) | |
2865 0.002 0.000 0.009 0.000 parinfer.py:175(pushNewline) | |
15 0.000 0.000 0.000 0.000 parinfer.py:183(pushEscape) | |
610 0.001 0.000 0.003 0.000 parinfer.py:193(pushQuote) | |
100268 0.026 0.000 0.107 0.000 parinfer.py:207(pushDefault) | |
112432 0.090 0.000 0.298 0.000 parinfer.py:212(pushChar) | |
112432 0.160 0.000 0.745 0.000 parinfer.py:263(updateParenTrail) | |
112432 0.113 0.000 0.596 0.000 parinfer.py:343(updateInsertionPt) | |
1 0.000 0.000 0.000 0.000 parinfer.py:36(initialResult) | |
112432 0.018 0.000 0.019 0.000 parinfer.py:383(updateLine) | |
2510 0.002 0.000 0.003 0.000 parinfer.py:479(minIndent) | |
2510 0.001 0.000 0.001 0.000 parinfer.py:486(minDedent) | |
2510 0.004 0.000 0.009 0.000 parinfer.py:491(correctIndent) | |
112432 0.021 0.000 0.021 0.000 parinfer.py:515(handleCursorDelta) | |
112432 0.111 0.000 0.298 0.000 parinfer.py:522(processIndent_paren) | |
112432 0.174 0.000 2.137 0.000 parinfer.py:564(processChar_paren) | |
2865 0.004 0.000 0.005 0.000 parinfer.py:582(formatParenTrail) | |
2865 0.033 0.000 2.182 0.001 parinfer.py:605(processLine_paren) | |
1 0.000 0.000 0.000 0.000 parinfer.py:624(finalizeResult_paren) | |
1 0.001 0.001 2.183 2.183 parinfer.py:628(processText_paren) | |
1 0.000 0.000 2.183 2.183 parinfer.py:648(formatText_paren) | |
1 0.000 0.000 2.183 2.183 parinfer.py:665(paren_mode) | |
2955 0.001 0.000 0.001 0.000 parinfer.py:67(replaceStringRange) | |
112432 0.017 0.000 0.017 0.000 parinfer.py:77(isOpenParen) | |
399742 0.054 0.000 0.054 0.000 parinfer.py:80(isCloseParen) | |
239340 0.035 0.000 0.035 0.000 parinfer.py:83(isWhitespace) | |
1278274 0.293 0.000 0.352 0.000 parinfer.py:91(peek) | |
1 0.000 0.000 0.000 0.000 {isinstance} | |
1393572 0.068 0.000 0.068 0.000 {len} | |
2266 0.001 0.000 0.001 0.000 {max} | |
11711 0.001 0.000 0.001 0.000 {method 'append' of 'list' objects} | |
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} | |
1 0.000 0.000 0.000 0.000 {method 'join' of 'str' objects} | |
4615 0.001 0.000 0.001 0.000 {method 'pop' of 'list' objects} | |
1 0.000 0.000 0.000 0.000 {method 'split' of 'str' objects} | |
1806 0.000 0.000 0.000 0.000 {min} | |
1895 0.001 0.000 0.001 0.000 {range} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment