Revision: 4474 http://trac.macosforge.org/projects/ruby/changeset/4474 Author: lsansonetti@apple.com Date: 2010-08-27 12:59:55 -0700 (Fri, 27 Aug 2010) Log Message: ----------- adding perf test covering symetric masgn Added Paths: ----------- MacRuby/trunk/perf/perf_masgn.rb Added: MacRuby/trunk/perf/perf_masgn.rb =================================================================== --- MacRuby/trunk/perf/perf_masgn.rb (rev 0) +++ MacRuby/trunk/perf/perf_masgn.rb 2010-08-27 19:59:55 UTC (rev 4474) @@ -0,0 +1,16 @@ +perf_test('symetric') do + i = 0 + x = 1 + y = 2 + while i < 200000 + x, y = y, x + y, x = x, y + x, y = y, x + y, x = x, y + x, y = y, x + y, x = x, y + x, y = y, x + y, x = x, y + i += 1 + end +end
participants (1)
-
source_changes@macosforge.org