Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
dirkjan@mrkrabs ~/Documents/projects/rubinius-master $ ./shotgun/rubinius -p tree.rb 16 stretch tree of depth 17 check: -1 131072 trees of depth 4 check: -131072 32768 trees of depth 6 check: -32768 8192 trees of depth 8 check: -8192 2048 trees of depth 10 check: -2048 512 trees of depth 12 check: -512 128 trees of depth 14 check: -128 32 trees of depth 16 check: -32 long lived tree of depth 16 check: -1 Total slices: 9312, 387593817 clocks === FLAT PROFILE === % time slices name 1051.25 97892 VM.garbage_collection 41.10 3827 Object#bottom_up_tree 28.77 2679 Object#item_check 10.48 976 Kernel#respond_to? 9.40 875 Array#== 5.04 469 VM.primitive => array_aref 1.23 115 VM.primitive => opt_kind_of 1.18 110 VM.primitive => fixnum_mul 0.52 48 VM.primitive => opt_push_literal 0.48 45 Tuple#each 0.41 38 ObjectSpace.run_finalizers 0.27 25 VM.primitive => opt_push_self 0.24 22 Hash#each_pair 0.23 21 VM.primitive => channel_receive 0.21 20 ObjectSpace.after_loaded 0.14 13 main.__script__ 0.09 8 Integer#upto 0.06 6 VM.primitive => block_call 0.06 6 Proc#call 0.04 4 VM.primitive => allocate 0.03 3 VM.primitive => at 0.01 1 VM.primitive => fixnum_neg 0.01 1 VM.primitive => sampler_stop
This paste will be private.
From the Design Piracy series on my blog: