Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
##jruby -J-server test/bench/bench_sclass.rb Rehearsal ---------------------------------------------------------------------- control, create 10 objects 0.851000 0.000000 0.851000 ( 0.850000) control, reopen Object ten times 0.815000 0.000000 0.815000 ( 0.815000) create 10 objects and class << obj 1.295000 0.000000 1.295000 ( 1.295000) ------------------------------------------------------------- total: 2.960999sec user system total real control, create 10 objects 0.177000 0.000000 0.177000 ( 0.177000) control, reopen Object ten times 0.181000 0.000000 0.181000 ( 0.182000) create 10 objects and class << obj 0.733000 0.000000 0.733000 ( 0.734000) ##ruby test/bench/bench_sclass.rb Rehearsal ---------------------------------------------------------------------- control, create 10 objects 0.500000 0.000000 0.500000 ( 0.507079) control, reopen Object ten times 0.390000 0.000000 0.390000 ( 0.386548) create 10 objects and class << obj 7.170000 0.050000 7.220000 ( 7.489152) ------------------------------------------------------------- total: 8.110000sec user system total real control, create 10 objects 0.510000 0.000000 0.510000 ( 0.528142) control, reopen Object ten times 0.380000 0.000000 0.380000 ( 0.391508) create 10 objects and class << obj 7.190000 0.020000 7.210000 ( 7.460708) ##../rubinius/shotgun/rubinius test/bench/bench_sclass.rb Rehearsal ---------------------------------------------------------------------- control, create 10 objects 0.704172 0.000000 0.704172 ( 0.706050) control, reopen Object ten times 0.098856 0.000000 0.098856 ( 0.098849) create 10 objects and class << obj 1.474422 0.000000 1.474422 ( 1.474557) ------------------------------------------------------------- total: 2.277450sec user system total real control, create 10 objects 0.667921 0.000000 0.667921 ( 0.667917) control, reopen Object ten times 0.129874 0.000000 0.129874 ( 0.123153) create 10 objects and class << obj 1.574476 0.000000 1.574476 ( 1.574455) ##../ruby1.9/ruby -I ../ruby1.9/lib test/bench/bench_sclass.rb Rehearsal ---------------------------------------------------------------------- control, create 10 objects 0.410000 0.000000 0.410000 ( 0.415875) control, reopen Object ten times 0.270000 0.010000 0.280000 ( 0.270903) create 10 objects and class << obj 6.930000 0.030000 6.960000 ( 6.961294) ------------------------------------------------------------- total: 7.650000sec user system total real control, create 10 objects 0.410000 0.000000 0.410000 ( 0.408696) control, reopen Object ten times 0.270000 0.000000 0.270000 ( 0.268274) create 10 objects and class << obj 6.910000 0.040000 6.950000 ( 6.956030)
This paste will be private.
From the Design Piracy series on my blog: