Created
June 17, 2014 14:02
-
-
Save sublee/8ba5741eef00f96301a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0: 278ms | |
1: 293ms | |
2: 279ms | |
3: 273ms | |
4: 280ms | |
5: 272ms | |
6: 278ms | |
7: 280ms | |
8: 275ms | |
9: 275ms | |
10: 277ms | |
11: 299ms | |
12: 321ms | |
13: 284ms | |
14: 276ms | |
15: 278ms | |
16: 276ms | |
17: 274ms | |
18: 290ms | |
19: 270ms | |
20: 267ms | |
21: 269ms | |
22: 277ms | |
23: 271ms | |
24: 274ms | |
25: 272ms | |
26: 269ms | |
27: 271ms | |
28: 276ms | |
29: 274ms | |
30: 281ms | |
31: 272ms | |
32: 285ms | |
33: 282ms | |
34: 279ms | |
35: 276ms | |
36: 278ms | |
37: 274ms | |
38: 274ms | |
39: 275ms | |
40: 282ms | |
41: 277ms | |
42: 278ms | |
43: 284ms | |
44: 305ms | |
45: 281ms | |
46: 293ms | |
47: 284ms | |
48: 288ms | |
49: 292ms | |
Total: 14026ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0: 680ms | |
1: 297ms | |
2: 295ms | |
3: 212ms | |
4: 179ms | |
5: 168ms | |
6: 148ms | |
7: 93ms | |
8: 148ms | |
9: 107ms | |
10: 137ms | |
11: 89ms | |
12: 116ms | |
13: 85ms | |
14: 104ms | |
15: 75ms | |
16: 77ms | |
17: 86ms | |
18: 94ms | |
19: 81ms | |
20: 159ms | |
21: 83ms | |
22: 118ms | |
23: 101ms | |
24: 130ms | |
25: 90ms | |
26: 87ms | |
27: 80ms | |
28: 79ms | |
29: 88ms | |
30: 77ms | |
31: 66ms | |
32: 70ms | |
33: 66ms | |
34: 67ms | |
35: 75ms | |
36: 75ms | |
37: 91ms | |
38: 80ms | |
39: 70ms | |
40: 67ms | |
41: 71ms | |
42: 76ms | |
43: 65ms | |
44: 62ms | |
45: 62ms | |
46: 59ms | |
47: 57ms | |
48: 57ms | |
49: 57ms | |
Total: 5703ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from trueskill import Rating, rate, quality | |
total_t = time.time() | |
for y in xrange(50): | |
t = time.time() | |
for x in xrange(10): | |
quality([(Rating(),)] * 10) | |
rate([(Rating(),)] * 10) | |
print '{0}: {1:.0f}ms'.format(y, (time.time() - t) * 1000) | |
print 'Total: {0:.0f}ms'.format((time.time() - total_t) * 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment