Skip to content

Instantly share code, notes, and snippets.

@exarkun
Forked from lukemarsden/gist:5404382
Created April 17, 2013 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/5404393 to your computer and use it in GitHub Desktop.
Save exarkun/5404393 to your computer and use it in GitHub Desktop.
>>> self._writeTimings
[0.03816699981689453,
0.0008051395416259766,
0.07694196701049805,
0.0007631778717041016,
0.0004780292510986328,
0.0005741119384765625,
0.0005929470062255859,
0.00044918060302734375,
0.0007309913635253906,
0.03702712059020996,
0.0006060600280761719,
0.0004620552062988281,
0.0009629726409912109,
0.0007619857788085938,
0.0005888938903808594,
0.00045490264892578125,
0.0009241104125976562,
0.07051801681518555,
0.00047016143798828125,
0.032781124114990234,
0.0005819797515869141,
0.0006890296936035156,
0.000492095947265625,
0.04671502113342285,
0.0007390975952148438,
0.0006239414215087891,
0.0009410381317138672,
0.0006120204925537109,
0.04368996620178223,
0.0005550384521484375,
0.10428404808044434,
0.07399201393127441,
0.036071062088012695]
@exarkun
Copy link
Author

exarkun commented Apr 17, 2013

sum(x) / len(x)
0.017425645481456409
sorted(x)[len(x) / 2]
0.00073909759521484375
sorted(x)[int(len(x) * 0.9)]
0.070518016815185547

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment