This project contains several micro-benchmarks to stress specific points of the Golo compilation and runtime strategies. It also contains some comparison elements with some other JVM dynamic languages.
Copyright 2012-2016 Institut National des Sciences Appliquées de Lyon (INSA-Lyon)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Micro-benchmarks results must always be interpreted and carefully balanced.
Do not draw any expedite conclusion from raw data without first understanding what a micro-benchmark does, what are its assumptions and what are its limiting factors.
This Maven project builds a self-contained executable Jar file in target/
:
$ mvn clean package
It uses the OpenJDK JMH benchmark harness.
We tend to be on the bleeding-edge of JMH, so you may need to build yourself a local copy from a Mercurial checkout:
$ hg clone http://hg.openjdk.java.net/code-tools/jmh/ jmh
$ cd jmh/
$ mvn clean install -DskipTests=true
JMH-produced executable Jars support many options, so list them all:
$ java -jar target/microbenchmarks-golo-(version).jar --help
A typical execution could look as follows:
$ java -jar target/microbenchmarks-golo-(version).jar -f 3 -w 5s -r 5s -rf scsv -rff results.csv