Skip to content

Instantly share code, notes, and snippets.

@SamSaffron
Last active August 29, 2015 13:56
Show Gist options
  • Save SamSaffron/8996060 to your computer and use it in GitHub Desktop.
Save SamSaffron/8996060 to your computer and use it in GitHub Desktop.
Ruby 2.0 vs 2.1 after running Discourse bench
GC STATS:
count: 1191
heap_used: 1422
heap_length: 1422
heap_increment: 0
heap_live_num: 389339
heap_free_num: 189144
heap_final_num: 0
total_allocated_object: 133699466
total_freed_object: 133310127
Objects:
TOTAL: 578474
FREE: 189088
T_OBJECT: 21216
T_CLASS: 7328
T_MODULE: 1335
T_FLOAT: 11
T_STRING: 208227
T_REGEXP: 2988
T_ARRAY: 51365
T_HASH: 17209
T_STRUCT: 750
T_BIGNUM: 8
T_FILE: 5
T_DATA: 47166
T_MATCH: 20
T_COMPLEX: 1
T_RATIONAL: 59
T_NODE: 29541
T_ICLASS: 2157
GC STATS:
count: 285
heap_used: 3899
heap_length: 6219
heap_increment: 2241
heap_live_slot: 330425
heap_free_slot: 1258815
heap_final_slot: 0
heap_swept_slot: 602980
heap_eden_page_length: 1658
heap_tomb_page_length: 2241
total_allocated_object: 129595641
total_freed_object: 129265216
malloc_increase: 4232
malloc_limit: 16777216
minor_gc_count: 265
major_gc_count: 20
remembered_shady_object: 8448
remembered_shady_object_limit: 16896
old_object: 312034
old_object_limit: 624068
oldmalloc_increase: 4680
oldmalloc_limit: 19049351
Objects:
TOTAL: 1589240
FREE: 1258703
T_OBJECT: 18823
T_CLASS: 7397
T_MODULE: 1339
T_FLOAT: 11
T_STRING: 154368
T_REGEXP: 2937
T_ARRAY: 49178
T_HASH: 16395
T_STRUCT: 636
T_BIGNUM: 7
T_FILE: 5
T_DATA: 47237
T_MATCH: 20
T_COMPLEX: 1
T_RATIONAL: 59
T_NODE: 29956
T_ICLASS: 2168
RUBY_GC_HEAP_GROWTH_FACTOR=1.4 ruby script/bench.rb -m
GC STATS:
count: 257
heap_used: 3245
heap_length: 5103
heap_increment: 1849
heap_live_slot: 329783
heap_free_slot: 992879
heap_final_slot: 0
heap_swept_slot: 624849
heap_eden_page_length: 1396
heap_tomb_page_length: 1849
total_allocated_object: 129595370
total_freed_object: 129265587
malloc_increase: 4232
malloc_limit: 16777216
minor_gc_count: 236
major_gc_count: 21
remembered_shady_object: 8439
remembered_shady_object_limit: 16878
old_object: 311405
old_object_limit: 622810
oldmalloc_increase: 4680
oldmalloc_limit: 28539282
Objects:
TOTAL: 1322662
FREE: 992767
T_OBJECT: 18753
T_CLASS: 7396
T_MODULE: 1339
T_FLOAT: 11
T_STRING: 153932
T_REGEXP: 2937
T_ARRAY: 49120
T_HASH: 16335
T_STRUCT: 630
T_BIGNUM: 7
T_FILE: 5
T_DATA: 47225
T_MATCH: 20
T_COMPLEX: 1
T_RATIONAL: 59
T_NODE: 29957
T_ICLASS: 2168
Ruby Head with: http://www.atdot.net/sp/view/aw1z0n
GC STATS:
count: 788
heap_used: 1314
heap_length: 1314
heap_increment: 0
heap_live_slot: 332265
heap_free_slot: 203319
heap_final_slot: 0
heap_swept_slot: 203341
heap_eden_page_length: 1314
heap_tomb_page_length: 0
total_allocated_object: 128530663
total_freed_object: 128198398
malloc_increase: 4232
malloc_limit: 16777216
minor_gc_count: 554
major_gc_count: 234
remembered_shady_object: 8481
remembered_shady_object_limit: 16962
old_object: 313836
old_object_limit: 627672
oldmalloc_increase: 4680
oldmalloc_limit: 16777216
Objects:
TOTAL: 535584
FREE: 203207
T_OBJECT: 19771
T_CLASS: 7399
T_MODULE: 1339
T_FLOAT: 11
T_STRING: 154921
T_REGEXP: 2937
T_ARRAY: 49554
T_HASH: 16407
T_STRUCT: 534
T_BIGNUM: 7
T_FILE: 5
T_DATA: 47281
T_MATCH: 20
T_COMPLEX: 1
T_RATIONAL: 59
T_NODE: 29963
T_ICLASS: 2168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment