[MacRuby-devel] [MacRuby] #424: performance regression from ruby 1.8 and 1.9
MacRuby
ruby-noreply at macosforge.org
Tue Nov 10 20:35:02 PST 2009
#424: performance regression from ruby 1.8 and 1.9
-------------------------------------+--------------------------------------
Reporter: jordan.breeding@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------------+--------------------------------------
Comment(by jordan.breeding@…):
Just tried a new version that generates 300000 nodes.
ruby and ruby1.9 end up slowing down significantly, memory usage is way
up, cpu is down, macruby doesn't even finish running:
{{{
60 jordan at thetourist ~/priority_queue_bug > for LOOP in ruby ruby1.9
macruby; do eval time "${LOOP}" ./speed_test_300.pqueue; done
ruby ./speed_test_300.pqueue 124.68s user 5.30s system 56% cpu 3:50.52
total
ruby1.9 ./speed_test_300.pqueue 80.61s user 7.13s system 47% cpu 3:05.52
total
macruby(1524,0x7fff70940be0) malloc: *** auto malloc[1524]: agc error: Can
not allocate new region
2009-11-10 22:30:32.742 macruby[1524:903] -[Bignum message]: unrecognized
selector sent to instance 0x200088220
2009-11-10 22:30:34.888 macruby[1524:903] *** Terminating app due to
uncaught exception 'NoMethodError', reason: 'undefined method `message'
for #<Bignum:0x200088220>'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff80849444
__exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff881a60f3
objc_exception_throw + 45
2 libmacruby.dylib 0x000000010017aef5
rb_vm_raise + 437
3 libmacruby.dylib 0x0000000100040f79
rb_exc_raise + 9
4 libmacruby.dylib 0x000000010017a350
rb_vm_method_missing + 560
5 libmacruby.dylib 0x000000010015fbcc
rb_vm_call_with_cache2 + 5740
6 libmacruby.dylib 0x0000000100161a34
_ZL14method_missingmP13objc_selectorP11rb_vm_blockiPKm29rb_vm_method_missing_reason_t
+ 324
7 libmacruby.dylib 0x00000001001623cd
rb_vm_call + 2125
8 libmacruby.dylib 0x00000001001796c3
rb_vm_print_current_exception + 99
9 macruby 0x0000000100000dec main +
172
10 macruby 0x0000000100000d34 start +
52
)
terminate called after throwing an instance of 'NSException'
zsh: abort macruby ./speed_test_300.pqueue
macruby ./speed_test_300.pqueue 69.00s user 15.48s system 27% cpu 5:03.12
total
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/424#comment:7>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list