Guest User

Untitled

a guest
Oct 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. My answer:
  2.  
  3. 8588 function calls in 0.015 CPU seconds
  4.  
  5. Ordered by: standard name
  6.  
  7. ncalls tottime percall cumtime percall filename:lineno(function)
  8. 1 0.000 0.000 0.015 0.015 <string>:1(<module>)
  9. 1 0.000 0.000 0.000 0.000 __future__.py:48(<module>)
  10. 1 0.000 0.000 0.000 0.000 __future__.py:74(_Feature)
  11. 7 0.000 0.000 0.000 0.000 __future__.py:75(__init__)
  12. 49 0.004 0.000 0.010 0.000 portmanteau.py:103(natalie)
  13. 17 0.000 0.000 0.000 0.000 portmanteau.py:124(eq_)
  14. 1 0.000 0.000 0.003 0.003 portmanteau.py:132(test_natalie1)
  15. 1 0.000 0.000 0.007 0.007 portmanteau.py:195(test_natalie2)
  16. 1 0.001 0.001 0.011 0.011 portmanteau.py:2(<module>)
  17. 269 0.001 0.000 0.001 0.000 portmanteau.py:66(make_port)
  18. 270 0.003 0.000 0.004 0.000 portmanteau.py:76(break_up_word)
  19. 269 0.000 0.000 0.001 0.000 portmanteau.py:89(calculate_score)
  20. 269 0.000 0.000 0.000 0.000 portmanteau.py:97(sort_ports)
  21. 807 0.000 0.000 0.000 0.000 {abs}
  22. 1 0.003 0.003 0.015 0.015 {execfile}
  23. 1346 0.000 0.000 0.000 0.000 {len}
  24. 3878 0.001 0.000 0.001 0.000 {method 'add' of 'set' objects}
  25. 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
  26. 1080 0.000 0.000 0.000 0.000 {method 'discard' of 'set' objects}
  27. 270 0.000 0.000 0.000 0.000 {range}
  28. 49 0.000 0.000 0.001 0.000 {sorted}
  29.  
  30.  
  31. "Official answer"
  32.  
  33.  
  34. 4882 function calls in 0.016 CPU seconds
  35.  
  36. Ordered by: standard name
  37.  
  38. ncalls tottime percall cumtime percall filename:lineno(function)
  39. 1 0.000 0.000 0.016 0.016 <string>:1(<module>)
  40. 1 0.004 0.004 0.004 0.004 collections.py:1(<module>)
  41. 1 0.000 0.000 0.000 0.000 keyword.py:11(<module>)
  42. 49 0.002 0.000 0.007 0.000 portmanteau_official_answer.py:11(alltriples)
  43. 1 0.000 0.000 0.005 0.005 portmanteau_official_answer.py:114(test_natalie2)
  44. 1 0.001 0.001 0.013 0.013 portmanteau_official_answer.py:2(<module>)
  45. 540 0.002 0.000 0.003 0.000 portmanteau_official_answer.py:26(splits)
  46. 49 0.002 0.000 0.004 0.000 portmanteau_official_answer.py:30(compute_ends)
  47. 269 0.001 0.000 0.001 0.000 portmanteau_official_answer.py:38(portman_score)
  48. 49 0.001 0.000 0.009 0.000 portmanteau_official_answer.py:4(natalie)
  49. 17 0.000 0.000 0.000 0.000 portmanteau_official_answer.py:43(eq_)
  50. 1 0.000 0.000 0.004 0.004 portmanteau_official_answer.py:51(test_natalie1)
  51. 807 0.000 0.000 0.000 0.000 {abs}
  52. 1 0.003 0.003 0.016 0.016 {execfile}
  53. 540 0.000 0.000 0.000 0.000 {len}
  54. 269 0.000 0.000 0.000 0.000 {map}
  55. 37 0.000 0.000 0.001 0.000 {max}
  56. 1671 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects}
  57. 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
  58. 37 0.000 0.000 0.000 0.000 {method 'join' of 'str' objects}
  59. 540 0.001 0.000 0.001 0.000 {range}
Add Comment
Please, Sign In to add comment