Skip to content

Instantly share code, notes, and snippets.

@pimiento
Created March 19, 2014 20:10
Show Gist options
  • Save pimiento/9650162 to your computer and use it in GitHub Desktop.
Save pimiento/9650162 to your computer and use it in GitHub Desktop.
# Тест при помощи прохода по элементам логина и с использованием c not in string.ascii_letters
280001 function calls in 1.709 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
280000 1.709 0.000 1.709 0.000 logineffcheck.py:52(cchecker)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
# Тест при помощи регулярных выражений
560001 function calls in 1.202 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
280000 0.680 0.000 1.202 0.000 logineffcheck.py:10(rchecker)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
280000 0.522 0.000 0.522 0.000 {method 'match' of '_sre.SRE_Pattern' objects}
# Попытка оптимизации. Очень странный результат, думаю разобраться почему так происходит
3450737 function calls in 8.599 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
280000 5.802 0.000 8.599 0.000 logineffcheck.py:14(occhecker)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
3170736 2.797 0.000 2.797 0.000 {ord}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment