[MacRuby] #1136: Array#pack performance w/ base64 strings
#1136: Array#pack performance w/ base64 strings ------------------------------------------+--------------------------------- Reporter: justin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.9 Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- It takes MacRuby over 13,000x longer to convert a 1MB string to Base64 than it does CRuby. Using MacRuby r5204 and CRuby 1.9.2. test.rb: {{{ require 'benchmark' str = "0" * 1024 * 1024 # 1MB string data ret = Benchmark.measure do [str].pack("m") end puts ret }}} benchmarks: {{{ ~ > ruby ./test.rb 0.000000 0.010000 0.010000 ( 0.006028) ~ > macruby ./test.rb 81.530000 25.220000 106.750000 ( 81.303252) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1136> MacRuby <http://macruby.org/>
#1136: Array#pack performance w/ base64 strings ------------------------------------------+--------------------------------- Reporter: justin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.9 => MacRuby 1.0 Comment: Looking in shark, looks like we spend most of our time reallocating the buffer. It should be easy to improve. -- Ticket URL: <http://www.macruby.org/trac/ticket/1136#comment:1> MacRuby <http://macruby.org/>
#1136: Array#pack performance w/ base64 strings ------------------------------------------+--------------------------------- Reporter: justin@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------------+--------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.9 Comment: Should be fixed in r5208. -- Ticket URL: <http://www.macruby.org/trac/ticket/1136#comment:2> MacRuby <http://macruby.org/>
#1136: Array#pack performance w/ base64 strings ------------------------------------------+--------------------------------- Reporter: justin@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------------+--------------------------------- Comment(by justin@…): Awesome improvement! Nearly the same performance as CRuby now! {{{ ~ > ruby ./test.rb 0.000000 0.000000 0.000000 ( 0.006377) ~ > macruby ./test.rb 0.010000 0.010000 0.020000 ( 0.008478) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1136#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby