Skip to content

Instantly share code, notes, and snippets.

@etki
Last active October 25, 2019 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etki/12624c56202855043c4d1cb9d97daaa0 to your computer and use it in GitHub Desktop.
Save etki/12624c56202855043c4d1cb9d97daaa0 to your computer and use it in GitHub Desktop.
# docker run --rm -ti -v $(pwd):/tmp/jmh-benchmark -w /tmp/jmh-benchmark ubuntu:18.04 bash
apt-get update
apt-get install curl -y
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
jabba install openjdk@1.13
jabba use openjdk@1.13
which java # /root/.jabba/jdk/openjdk@1.13.0/bin/java
java -jar target/benchmarks.jar BenchmarkLoop
# etki@wanderer:~$ cat /etc/issue
# Ubuntu 18.04.3 LTS \n \l
cd /tmp
git clone https://github.com/mkyong/jmh-benchmark
cd jmh-benchmark
mvn package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment