- 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
How to run?
Requires JDK 1.7 or higher.
git clone https://github.com/jfaster/mango-benchmark.git
mvn clean package
sh benchmark.shfor Linux or
benchmark.cmd script is a wrapper around JMH execution.
A full run of the benchmark will take about 10 minutes for all frameworks.