Bug #8930

some benchmark programs are slow since r42822

Added by Narihiro Nakamura 7 months ago. Updated 7 months ago.

[ruby-core:57289]
Status:Closed
Priority:Normal
Assignee:Charlie Somerville
Category:core
Target version:2.1.0
ruby -v:ruby 2.1.0dev (2013-09-04 trunk r42822) [x86_64-linux] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

Hi.

I find some benchmark programs are slow since r42822.

% time ./miniruby -v benchmark/bmvm3clearmethodcache.rb
ruby 2.1.0dev (2013-09-04 trunk 42910) [x8664-linux]
./miniruby -v benchmark/bm
vm3_clearmethodcache.rb 0.42s user 0.00s system 98% cpu 0.451 total

% time ./miniruby -v benchmark/bmvm3clearmethodcache.rb
ruby 2.1.0dev (2013-09-04 trunk r42822) [x8664-linux]
./miniruby -v benchmark/bm
vm3_clearmethodcache.rb 0.48s user 0.01s system 98% cpu 0.495 total

In addition to the above:
* vm2polymethod
* vm2send
* so
object
* etc... (If you want to know all slow benchmark programs, please check this site http://www.narihiro.info/crubybenci/)

If this isn't intended, could you check it, charliesome or ko1?

Thanks

Associated revisions

Revision 43027
Added by Charlie Somerville 7 months ago

  • class.c (classalloc): remove mctbl

  • gc.c (obj_free): ditto

  • internal.h (struct rbclassextstruct): ditto

  • method.h (rbmethodentry): remove ent param

  • vm_method.c: restore the global method cache. Per class cache tables
    turned out to be far too slow.

    [Bug #8930]

History

#1 Updated by Charlie Somerville 7 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r43027.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • class.c (classalloc): remove mctbl

  • gc.c (obj_free): ditto

  • internal.h (struct rbclassextstruct): ditto

  • method.h (rbmethodentry): remove ent param

  • vm_method.c: restore the global method cache. Per class cache tables
    turned out to be far too slow.

    [Bug #8930]

Also available in: Atom PDF