benchmarks/JavaBenchmarkRunner.st
branchdevelopment
changeset 2573 59aeefc96cf4
parent 2429 ebece4dcaab9
child 2579 147986458348
--- a/benchmarks/JavaBenchmarkRunner.st	Wed May 01 11:59:25 2013 +0100
+++ b/benchmarks/JavaBenchmarkRunner.st	Wed May 01 15:07:27 2013 +0100
@@ -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,10 @@
 
     "Setup for performance"
     JavaNativeMethod cacheNativeImplementation: true.
-    ObjectMemory justInTimeCompilation: true.
-    ObjectMemory javaNativeCodeOptimization:true.
-    ObjectMemory javaJustInTimeCompilation: true.        
+
+    ObjectMemory justInTimeCompilation: jit.
+    ObjectMemory javaNativeCodeOptimization:jit.
+    ObjectMemory javaJustInTimeCompilation: jit.        
 
     [
         | time |
@@ -252,10 +281,9 @@
         ]
     ]
 
-    "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