Revision
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

Diff

Added: MacRuby/trunk/perf/perf_masgn.rb (0 => 4474)


--- 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