benchmarks/JavaBenchmarkRunner.st
changeset 2678 c865275e48a7
parent 2396 fadc6d7a2f5b
child 2731 13f5be2bf83b
--- a/benchmarks/JavaBenchmarkRunner.st	Fri Aug 16 19:52:36 2013 +0200
+++ b/benchmarks/JavaBenchmarkRunner.st	Fri Sep 06 02:45:44 2013 +0200
@@ -7,11 +7,17 @@
 	category:'Benchmarks-Java-Framework'
 !
 
-JavaBenchmarkRunner class instanceVariableNames:'benchmark passes variant debugging profiler'"
+JavaBenchmarkRunner class instanceVariableNames:'benchmark passes variant debugging profiler jit'
+
+"
+ The following class instance variables are inherited by this class:
+
+	StandaloneStartup - MutexHandle
+	Object - 
+"
 !
 
 
-
 !JavaBenchmarkRunner class methodsFor:'initialization'!
 
 initialize
@@ -24,14 +30,12 @@
     "Modified: / 31-10-2012 / 23:42:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
 !JavaBenchmarkRunner class methodsFor:'accessing'!
 
 profiler
     ^ profiler
 ! !
 
-
 !JavaBenchmarkRunner class methodsFor:'command line options'!
 
 cmdlineOptionBenchmark
@@ -76,6 +80,32 @@
     "Modified: / 31-10-2012 / 23:41:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+cmdlineOptionJit
+
+    ^CmdLineOption new
+        short: $J;
+        long: 'jit';
+        description: 'turn on mcompiler';
+        action:[
+            jit := true
+        ]
+
+    "Created: / 01-05-2013 / 14:59:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+cmdlineOptionNoJit
+
+    ^CmdLineOption new
+        short: $N;
+        long: 'nojit';
+        description: 'turn off mcompiler';
+        action:[
+            jit := false
+        ]
+
+    "Created: / 01-05-2013 / 14:59:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 cmdlineOptionPasses
 
     ^CmdLineOption new
@@ -120,7 +150,6 @@
     "Created: / 31-10-2012 / 23:42:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
 !JavaBenchmarkRunner class methodsFor:'defaults'!
 
 allowCoverageMeasurementOption
@@ -138,7 +167,6 @@
     "Created: / 21-07-2011 / 09:48:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
 !JavaBenchmarkRunner class methodsFor:'startup'!
 
 setupToolsForDebug
@@ -187,7 +215,6 @@
     "Modified: / 31-10-2012 / 11:05:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
 !JavaBenchmarkRunner class methodsFor:'startup-to be redefined'!
 
 exit: code
@@ -203,6 +230,7 @@
     "Process command line arguments"
     | parser |
 
+    jit := true.
     parser := CmdLineParser new.
     [               
         parser parse: argv for: self.        
@@ -222,9 +250,12 @@
 
     "Setup for performance"
     JavaNativeMethod cacheNativeImplementation: true.
-    ObjectMemory justInTimeCompilation: true.
-    ObjectMemory javaNativeCodeOptimization:true.
-    ObjectMemory javaJustInTimeCompilation: true.        
+
+    ObjectMemory justInTimeCompilation: jit.
+    ObjectMemory javaNativeCodeOptimization:jit.
+    ObjectMemory javaJustInTimeCompilation: jit.    
+
+    ObjectMemory newSpaceSize: ObjectMemory newSpaceSize * 5.
 
     [
         | time |
@@ -252,14 +283,13 @@
         ]
     ]
 
-    "Modified: / 02-11-2012 / 02:26:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 01-05-2013 / 15:00:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
 !JavaBenchmarkRunner class methodsFor:'documentation'!
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libjava/benchmarks/JavaBenchmarkRunner.st,v 1.2 2013-02-25 11:15:32 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libjava/benchmarks/JavaBenchmarkRunner.st,v 1.3 2013-09-06 00:41:33 vrany Exp $'
 !
 
 version_HG