--- a/s/stx/BenchmarkRunnerAdapterStX.st Wed May 21 12:32:17 2014 +0100
+++ b/s/stx/BenchmarkRunnerAdapterStX.st Wed May 21 13:11:23 2014 +0100
@@ -29,6 +29,25 @@
BenchmarkPlatformStX initialize.
"Modified: / 01-08-2013 / 18:42:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+initializeForPerformance
+ "Set's system for maximum performance"
+
+ "Set stack size to 16MB"
+ Processor activeProcess setMaximumStackSize: ((1024 * 1024 * 16) max: Process
+ defaultMaximumStackSize).
+
+ "Setup for performance"
+ JavaNativeMethod cacheNativeImplementation: true.
+
+ ObjectMemory justInTimeCompilation: true.
+ ObjectMemory javaNativeCodeOptimization: true.
+ ObjectMemory javaJustInTimeCompilation: true.
+
+ "ObjectMemory newSpaceSize: ObjectMemory newSpaceSize * 5."
+
+ "Created: / 21-05-2014 / 13:08:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!BenchmarkRunnerAdapterStX class methodsFor:'debugging'!
@@ -230,6 +249,7 @@
]
].
+ self initializeForPerformance.
BenchmarkRunner new main: argv
] on: Error do:[:ex|
@@ -251,7 +271,7 @@
Smalltalk exit: 0.
"Created: / 06-06-2013 / 10:07:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 01-08-2013 / 18:48:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 21-05-2014 / 13:08:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!BenchmarkRunnerAdapterStX class methodsFor:'documentation'!