Slide 14
Slide 14 text
$ perf stat -r 10 /usr/bin/python3.7 /opt/py/add.py
Performance counter stats (10 runs):
9.146528 task-clock (msec) # 0.981 CPUs utilized
0 context-switches # 0.000 K/sec
0 cpu-migrations # 0.000 K/sec
804 page-faults # 0.088 M/sec
31,926,587 cycles # 3.491 GHz
39,586,183 instructions # 1.24 insn per cycle
8,926,391 branches # 975.932 M/sec
325,273 branch-misses # 3.64% of all branches
0.009324090 seconds time elapsed ( +- 0.25% )
Linux Performance Tool