|
|
|
[
Permlink
| « Hide
]
Charles Oliver Nutter - 27/Feb/08 10:44 PM
I read these numbers wrong; the compiled local break performance is 0.046, around 5 times faster than MRI. The non-local break performance is still slower, however, so I'll look into that.
We'll look to fix this after 1.1, since it's not really a huge issue.
Here's updated numbers; still slower than MRI for non-local breaks, but it has improved in the compiled case. Interpreted still seems to have some performance issues:
jruby compiled:
user system total real
control, five short while loops 0.023000 0.000000 0.023000 ( 0.022774)
control, five whiles with blocks 0.276000 0.000000 0.276000 ( 0.276131)
five whiles that break 0.025000 0.000000 0.025000 ( 0.024213)
five whiles with blocks that break 0.593000 0.000000 0.593000 ( 0.593634)
jruby interpreted:
user system total real
control, five short while loops 0.078000 0.000000 0.078000 ( 0.077959)
control, five whiles with blocks 0.256000 0.000000 0.256000 ( 0.255260)
five whiles that break 0.299000 0.000000 0.299000 ( 0.299437)
five whiles with blocks that break 1.112000 0.000000 1.112000 ( 1.112932)
MRI:
user system total real
control, five short while loops 0.150000 0.000000 0.150000 ( 0.162975)
control, five whiles with blocks 0.350000 0.010000 0.360000 ( 0.353873)
five whiles that break 0.230000 0.000000 0.230000 ( 0.234755)
five whiles with blocks that break 0.460000 0.000000 0.460000 ( 0.481575)
The bad case at this point is really just the while loop with a breaking block. Still an issue, but better. |
||||||||||||||||||||||||||||||||||||||||||