#424: performance regression from ruby 1.8 and 1.9
-------------------------------------+--------------------------------------
Reporter: jordan.breed...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------------+--------------------------------------
Comment(by martinlagarde...@…):
With the new strings:
ruby 1.9
{{{
Test 001 -- String character swap, 2500000 times
Test 001: 4.7923 seconds
Overall: 9.3636 seconds
Test 002 -- String character swap (alternate), 2500000 times
Test 002: 4.1403 seconds
Overall: 8.8592 seconds
Test 003 and 004 -- Insert 500000 nodes into a priority queue using
pop/push (003), plus Set calls (004)
Test 003: 10.0445 seconds
Test 004: 0.4814 seconds
Overall: 13.3296 seconds
Test 005 and 006 -- Insert 500000 nodes into a priority queue using
pop/pushObjects (005), plus Set calls (006)
Test 005: 10.9869 seconds
Test 006: 0.5723 seconds
Overall: 11.6866 seconds
}}}
MacRuby
{{{
Test 001 -- String character swap, 2500000 times
Test 001: 13.6413 seconds
Overall: 17.3031 seconds
Test 002 -- String character swap (alternate), 2500000 times
Test 002: 11.3426 seconds
Overall: 15.7529 seconds
Test 003 and 004 -- Insert 500000 nodes into a priority queue using
pop/push (003), plus Set calls (004)
Test 003: 12.6970 seconds
Test 004: 1.1502 seconds
Overall: 15.9674 seconds
Test 005 and 006 -- Insert 500000 nodes into a priority queue using
pop/pushObjects (005), plus Set calls (006)
Test 005: 16.4765 seconds
Test 006: 1.2515 seconds
Overall: 16.1109 seconds
}}}
Maybe still not as fast as ruby19, but still much faster than before :-)
--
Ticket URL: <http://www.macruby.org/trac/ticket/424#comment:16>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel