Skip to content

Instantly share code, notes, and snippets.

@tistaharahap
Created August 28, 2016 12:13
Show Gist options
  • Save tistaharahap/2f8150e4628e1605e578a61529448de7 to your computer and use it in GitHub Desktop.
Save tistaharahap/2f8150e4628e1605e578a61529448de7 to your computer and use it in GitHub Desktop.
from cpuload import load
import time
if __name__ == '__main__':
max = 100000000
_start = time.time()
load(10, max)
_end = time.time()
elapsed_time = float(_end) - float(_start)
print 'Elapsed Time: %.2f second' % elapsed_time
print 'Ops/second: %.2f' % (float(max) / elapsed_time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment