Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 8, 2010 23:25
Show Gist options
  • Save methodmissing/514686 to your computer and use it in GitHub Desktop.
Save methodmissing/514686 to your computer and use it in GitHub Desktop.
methodmissing:mysql2 lourens$ rake bench:allocations
(in /Users/lourens/projects/mysql2)
/Users/lourens/.rvm/rubies/ruby-1.9.2-rc1/bin/ruby benchmark/allocations.rb
GC overhead for coercion
GC 33 invokes.
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)
1 0.488 2372720 4063232 101432 10.68299999999999805311
2 0.524 3207680 4063232 101432 9.44599999999995532107
3 0.555 3449680 4079616 101841 10.75899999999996303757
4 0.677 2868520 7307264 182414 17.51800000000003265654
5 0.809 2937080 7307264 182414 16.96200000000003171863
6 0.938 2967240 7307264 182414 17.58200000000009666223
7 1.080 2984040 7307264 182414 16.66599999999984760279
8 1.209 2992760 7307264 182414 15.86100000000012499868
9 1.337 2996880 7307264 182414 15.86599999999993571009
10 1.464 2999160 7307264 182414 16.80600000000009686119
11 1.594 3000640 7307264 182414 16.99999999999990407673
12 1.724 3000920 7307264 182414 17.09300000000002484057
methodmissing:mysql2 lourens$ rake bench:allocations
(in /Users/lourens/projects/mysql2)
/Users/lourens/.rvm/rubies/ruby-1.9.2-rc1/bin/ruby benchmark/allocations.rb
GC overhead for coercion
GC 51 invokes.
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)
1 0.513 2373320 4063232 101432 10.82000000000005179857
2 0.557 3048400 4063232 101432 9.21600000000000108002
3 0.592 3103120 4063232 101432 10.44799999999990092192
4 0.641 3187840 4063232 101432 11.25399999999998712497
5 0.674 2388360 4063232 101432 12.44299999999998185274
6 0.720 3110960 4063232 101432 10.40400000000007985079
7 0.771 3195120 4063232 101432 11.80900000000006855316
8 0.802 2426640 4063232 101432 12.43199999999999860734
9 0.847 3114600 4063232 101432 10.35000000000008135714
10 0.896 3198200 4063232 101432 12.07400000000003004175
11 0.927 2443200 4063232 101432 13.46900000000006514256
12 0.974 3116040 4063232 101432 10.47299999999995456790
13 1.023 3199720 4063232 101432 11.85400000000003117862
14 1.053 2448800 4063232 101432 15.14100000000007106848
15 1.117 3116560 4063232 101432 14.71399999999989383070
16 1.184 3200040 4063232 101432 14.42999999999994287236
17 1.222 2452120 4063232 101432 13.53099999999995972644
18 1.280 3116760 4063232 101432 14.59399999999999586464
19 1.353 3200320 4063232 101432 19.11099999999987630872
20 1.401 2453040 4063232 101432 15.16399999999995529265
21 1.462 3117120 4063232 101432 13.70999999999988894217
22 1.528 3200680 4063232 101432 14.90700000000000358114
23 1.565 2453400 4063232 101432 14.83900000000026864200
24 1.620 3117400 4063232 101432 10.92599999999999127454
25 1.670 3200920 4063232 101432 11.87599999999999766942
26 1.699 2453400 4063232 101432 13.08599999999993102051
27 1.745 3117360 4063232 101432 10.41600000000020287416
28 1.795 3200880 4063232 101432 11.83699999999987539923
29 1.825 2453120 4063232 101432 12.34000000000001762146
30 1.872 3117000 4063232 101432 10.78899999999993752908
31 1.922 3200520 4063232 101432 12.13600000000014667023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment