Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Created December 7, 2011 07:18
Show Gist options
  • Save seanjensengrey/1441834 to your computer and use it in GitHub Desktop.
Save seanjensengrey/1441834 to your computer and use it in GitHub Desktop.
pypy profiler output
## profile output from, https://gist.github.com/1441828
pythonray zel$ pypy -m cProfile Ray.py --run 5 512
52623770 function calls (47268030 primitive calls) in 11.745 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.001 0.001 11.745 11.745 Ray.py:1(<module>)
341/1 0.004 0.000 0.007 0.007 Ray.py:112(create)
499784 0.033 0.000 0.033 0.000 Ray.py:12(add)
1 0.653 0.653 11.739 11.739 Ray.py:130(run)
8886435 0.407 0.000 0.407 0.000 Ray.py:16(sub)
1344223 0.071 0.000 0.071 0.000 Ray.py:20(scale)
18240855 0.593 0.000 0.593 0.000 Ray.py:24(dot)
728418 0.547 0.000 0.823 0.000 Ray.py:28(unitize)
1 0.000 0.000 0.000 0.000 Ray.py:32(Ray)
378165 0.021 0.000 0.021 0.000 Ray.py:33(__init__)
1 0.000 0.000 0.000 0.000 Ray.py:37(Hit)
1 0.000 0.000 0.000 0.000 Ray.py:45(Sphere)
426 0.001 0.000 0.001 0.000 Ray.py:46(__init__)
8682305 3.701 0.000 5.344 0.000 Ray.py:53(ray_sphere)
2948740 0.450 0.000 2.450 0.000 Ray.py:69(intersect)
1 0.000 0.000 0.000 0.000 Ray.py:77(Group)
85 0.000 0.000 0.000 0.000 Ray.py:78(__init__)
1164938 0.132 0.000 0.132 0.000 Ray.py:8(Vec)
5733565/378165 3.157 0.000 9.272 0.000 Ray.py:88(intersect)
262144 0.646 0.000 10.013 0.000 Ray.py:96(ray_trace)
1 0.000 0.000 0.000 0.000 bdb.py:1(<module>)
1 0.000 0.000 0.000 0.000 bdb.py:10(BdbQuit)
1 0.000 0.000 0.000 0.000 bdb.py:14(Bdb)
1 0.000 0.000 0.000 0.000 bdb.py:432(Breakpoint)
1 0.000 0.000 0.000 0.000 bdb.py:597(Tdb)
1 0.000 0.000 0.000 0.000 cmd.py:1(<module>)
1 0.000 0.000 0.000 0.000 cmd.py:55(Cmd)
1 0.000 0.000 0.000 0.000 fnmatch.py:1(<module>)
1 0.000 0.000 0.000 0.000 pdb.py:18(Restart)
1 0.004 0.004 0.005 0.005 pdb.py:3(<module>)
1 0.000 0.000 0.000 0.000 pdb.py:59(Pdb)
1 0.000 0.000 0.000 0.000 pprint.py:11(<module>)
1 0.000 0.000 0.000 0.000 pprint.py:81(PrettyPrinter)
1 0.000 0.000 0.000 0.000 repr.py:1(<module>)
2 0.000 0.000 0.000 0.000 repr.py:10(__init__)
1 0.000 0.000 0.000 0.000 repr.py:8(Repr)
1 0.000 0.000 0.000 0.000 traceback.py:1(<module>)
262144 0.051 0.000 0.051 0.000 {chr}
3227838 0.910 0.000 0.910 0.000 {math.sqrt}
425 0.001 0.000 0.001 0.000 {method 'append' of 'list' objects}
1 0.000 0.000 0.000 0.000 {method 'close' of 'file' objects}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
262145 0.361 0.000 0.361 0.000 {method 'write' of 'file' objects}
768 0.002 0.000 0.002 0.000 {range}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment