Increased number of iterations in SimpleHanoi benchmark.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 24 Sep 2014 21:38:39 +0100
changeset 219 9c7389ba66c5
parent 218 009fb133c3e3
child 220 95779e476a2d
Increased number of iterations in SimpleHanoi benchmark.
s/benchmarks/stx/BenchmarkSimpleHanoi.st
--- a/s/benchmarks/stx/BenchmarkSimpleHanoi.st	Wed Sep 24 21:37:40 2014 +0100
+++ b/s/benchmarks/stx/BenchmarkSimpleHanoi.st	Wed Sep 24 21:38:39 2014 +0100
@@ -70,18 +70,16 @@
 hanoi
     <benchmark: 'Simple Hanoi'>
 
-    self move:22 from:1 to:3 temp:3.
-    self move:22 from:1 to:3 temp:3.
-    self move:22 from:1 to:3 temp:3.
-    self move:22 from:1 to:3 temp:3.
-    self move:22 from:1 to:3 temp:3.
+    100 timesRepeat:[  
+        self move:22 from:1 to:3 temp:3.
+    ]
 
     "
     (BenchmarkInstance class: BenchmarkSimpleHanoi selector: #hanoi) run
     "
 
     "Modified: / 12-11-1997 / 17:07:06 / cg"
-    "Modified: / 11-03-2014 / 23:01:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 24-09-2014 / 20:33:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 move:n from:src to:dst temp:tmp
@@ -92,3 +90,10 @@
     "Created: / 12.11.1997 / 17:06:46 / cg"
 ! !
 
+!BenchmarkSimpleHanoi class methodsFor:'documentation'!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
+! !
+