Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
Multiple assignment benchmark JRuby 1.2 user system total real control, 1m while loop 0.056000 0.000000 0.056000 ( 0.055758) near closure, 1m x10 a,a=a,a 0.053000 0.000000 0.053000 ( 0.052777) in closure, 1m x10 a,a=a,a 0.055000 0.000000 0.055000 ( 0.055649) near closure, 5 vars, 1m * x10 a,a=a,a 0.054000 0.000000 0.054000 ( 0.053275) in closure, 5 vars, 1m x10 a,a=a,a 0.086000 0.000000 0.086000 ( 0.085936) normal heapless, 1m x 100 a,a=a,a 0.052000 0.000000 0.052000 ( 0.051858) normal heapless, 1m x 100 10-var masgn 0.053000 0.000000 0.053000 ( 0.053305) Ruby 1.9 user system total real control, 1m while loop 1.490000 0.010000 1.500000 ( 1.507535) near closure, 1m x10 a,a=a,a 1.480000 0.010000 1.490000 ( 1.522416) in closure, 1m x10 a,a=a,a 1.590000 0.010000 1.600000 ( 1.629239) near closure, 5 vars, 1m * x10 a,a=a,a 1.460000 0.010000 1.470000 ( 1.491770) in closure, 5 vars, 1m x10 a,a=a,a 1.610000 0.000000 1.610000 ( 1.642060) normal heapless, 1m x 100 a,a=a,a 1.490000 0.010000 1.500000 ( 1.525706) normal heapless, 1m x 100 10-var masgn 1.500000 0.010000 1.510000 ( 1.523531)
This paste will be private.
From the Design Piracy series on my blog: