Skip to content

Instantly share code, notes, and snippets.

@major
Last active November 2, 2016 05:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/00c283876120a8af904ffe75f893244e to your computer and use it in GitHub Desktop.
Save major/00c283876120a8af904ffe75f893244e to your computer and use it in GitHub Desktop.
perf and pyperformance
Before adjusting sysctl:
Performance counter stats for 'pyperformance run --python=python2 -o py2.json':
252671.067374 task-clock (msec) # 0.999 CPUs utilized
9,655 context-switches # 0.038 K/sec
2,529 cpu-migrations # 0.010 K/sec
2,866,845 page-faults # 0.011 M/sec
<not supported> cycles
<not supported> stalled-cycles-frontend
<not supported> stalled-cycles-backend
<not supported> instructions
<not supported> branches
<not supported> branch-misses
252.946154853 seconds time elapsed
After adjusting sysctl:
Performance counter stats for 'pyperformance run --python=python2 -o py2.json':
257911.691451 task-clock (msec) # 1.000 CPUs utilized
10,828 context-switches # 0.042 K/sec
2,515 cpu-migrations # 0.010 K/sec
3,045,755 page-faults # 0.012 M/sec
<not supported> cycles
<not supported> stalled-cycles-frontend
<not supported> stalled-cycles-backend
<not supported> instructions
<not supported> branches
<not supported> branch-misses
257.936018230 seconds time elapsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment