Created
June 11, 2011 08:44
-
-
Save postmodern/1020374 to your computer and use it in GitHub Desktop.
rbx -Xprofile benchmarks/hexdump.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cumulative self self total | |
time seconds seconds calls ms/call ms/call name | |
------------------------------------------------------------ | |
10.98 277.26 104.33 30721151 0.00 0.01 Hash#find_entry | |
9.58 116.29 91.02 36303266 0.00 0.00 Hash::Entry#match? | |
9.51 141.50 90.35 29760101 0.00 0.00 String#<< | |
5.52 501.94 52.41 9920000 0.01 0.05 Hexdump::Dumper::print<330> {} | |
4.72 949.77 44.83 12 3735.59 79147.48 String#each_byte | |
4.70 345.50 44.70 9920000 0.00 0.03 Hexdump::Dumper::each<279> {} | |
4.18 321.67 39.69 30721093 0.00 0.01 Hash#[] | |
4.13 174.27 39.26 5291548 0.01 0.03 Kernel#sprintf | |
4.10 299.55 39.01 15360000 0.00 0.02 Hexdump::Dumper::each_word<225> {} | |
3.36 38.47 31.93 30723601 0.00 0.00 Hash#key_index | |
2.79 82.22 26.53 6101548 0.00 0.01 String#justify | |
2.65 286.09 25.16 19840000 0.00 0.01 Hexdump::Dumper#format_numeric | |
2.64 225.85 25.10 19840000 0.00 0.01 Hexdump::Dumper#format_char | |
2.10 26.63 19.91 19848386 0.00 0.00 Array#<< | |
1.62 21.02 15.40 5291596 0.00 0.00 Rubinius::Sprinter.get | |
1.50 18.67 14.23 14384784 0.00 0.00 Rubinius::Type.coerce_to | |
1.43 25.92 13.62 29760101 0.00 0.00 String#modify! | |
1.14 22.14 10.84 8282066 0.00 0.00 Kernel#StringValue | |
1.13 9.66 10.70 29760902 0.00 0.00 String#append | |
1.12 9.21 10.65 41312891 0.00 0.00 Rubinius::Tuple#[] | |
1.11 9.08 10.52 40904607 0.00 0.00 Kernel#kind_of? | |
0.98 8.02 9.27 38487734 0.00 0.00 Kernel#equal? | |
0.95 7.61 9.05 36300779 0.00 0.00 Fixnum.=== | |
0.93 7.66 8.86 36303404 0.00 0.00 Symbol.=== | |
0.87 10.44 8.30 4480000 0.00 0.00 String#<=> | |
0.86 6.89 8.15 30723779 0.00 0.00 Kernel#hash | |
0.84 6.76 7.97 30726263 0.00 0.00 Fixnum#& | |
0.83 6.72 7.90 35200001 0.00 0.00 Fixnum#>= | |
0.80 6.81 7.64 19848386 0.00 0.00 Array#set_index | |
0.78 22.96 7.42 4480011 0.00 0.01 Comparable#> | |
0.77 6.17 7.32 33030974 0.00 0.00 Kernel#tainted? | |
0.74 5.94 7.01 30720000 0.00 0.00 Rubinius::ByteArray#get_byte | |
0.60 13.51 5.68 1620002 0.00 0.01 Rubinius::ByteArray#dup | |
0.56 5.05 5.35 4811752 0.00 0.00 Fixnum#to_s | |
0.55 81.62 5.24 5291536 0.00 0.02 String#rjust | |
0.52 4.51 4.94 14385426 0.00 0.00 Rubinius::Type.object_kind_of? | |
0.51 6.60 4.80 2710107 0.00 0.00 Rubinius::ByteArray.new | |
0.50 4.49 4.72 9662466 0.00 0.00 Hash#default | |
0.44 6.35 4.17 1090109 0.00 0.01 String#* | |
0.44 7.70 4.14 1090153 0.00 0.01 String#replace | |
0.43 4.91 4.08 4480011 0.00 0.00 Comparable.compare_int | |
0.39 3.26 3.67 15360000 0.00 0.00 Fixnum#<< | |
0.38 3.23 3.65 15360001 0.00 0.00 Fixnum#| | |
0.34 6.56 3.27 1090105 0.00 0.01 String.allocate | |
0.32 18.23 3.01 1280000 0.00 0.01 #<Rubinius::Sprinter:0xd4>.call | |
143 methods omitted | |
188 methods called a total of 871,419,542 times |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment