Project

General

Profile

« Previous | Next » 

Revision fba3e76e

Added by ko1 (Koichi Sasada) almost 5 years ago

fix debug counter for Hash counts.

Change debug_counters for Hash object counts:

  • obj_hash_under4 (1-3) -> obj_hash_1_4 (1-4)
  • obj_hash_ge4 (4-7) -> obj_hash_5_8 (5-8)
  • obj_hash_ge8 (>=8) -> obj_hash_g8 (> 8)

For example on rdoc benchmark:

[RUBY_DEBUG_COUNTER] obj_hash_empty 554,900
[RUBY_DEBUG_COUNTER] obj_hash_under4 572,998
[RUBY_DEBUG_COUNTER] obj_hash_ge4 1,825
[RUBY_DEBUG_COUNTER] obj_hash_ge8 2,344
[RUBY_DEBUG_COUNTER] obj_hash_empty 553,097
[RUBY_DEBUG_COUNTER] obj_hash_1_4 571,880
[RUBY_DEBUG_COUNTER] obj_hash_5_8 982
[RUBY_DEBUG_COUNTER] obj_hash_g8 2,189