- Jdbc means using only native jdbc API, do not use any ORM frameworks.
- One Query Cycle is defined as single
select id, name, age from user where id = ?
. - One Update Cycle is defined as single
update user set age = ? where id = ?
.
2 Java options: -server -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms1096m -Xmx1096m
Requires JDK 1.7 or higher.
git clone https://github.com/jfaster/mango-benchmark.git
cd mango-benchmark
mvn clean package
sh benchmark.sh
for Linux orbenchmark.cmd
for Windows
The benchmark.sh
and benchmark.cmd
script is a wrapper around JMH execution.
A full run of the benchmark will take about 10 minutes for all frameworks.