Files
data-access-benchmark/README.md
T

75 lines
2.4 KiB
Markdown
Raw Normal View History

2026-04-05 14:31:17 +00:00
# data-access-benchmark
```bash
mvn package -q
java -jar target/benchmarks.jar
# optional: suppress JDK warning from the launcher JVM
java --sun-misc-unsafe-memory-access=allow -jar target/benchmarks.jar
2026-04-05 14:31:17 +00:00
```
## Benchmark Results (auto-updated)
This section is automatically refreshed by the app after each benchmark run.
Only the content between the markers below is rewritten, so the rest of this README stays untouched.
<!-- BENCHMARK_RESULTS_START -->
Last updated: 2026-04-05T21:50:27.465645035Z
### System info
- OS: `Linux 6.12.74+deb13+1-amd64` (amd64)
- Java: `25.0.2` (vendor: `Microsoft`)
- JVM: `OpenJDK 64-Bit Server VM` `25.0.2+10-LTS`
- CPU model: `AMD Ryzen 5 9600X 6-Core Processor`
- Total physical memory: `80078 MB`
- Available processors: `12`
- Max heap: `20032 MB`
### Run context
- Benchmark: `com.benchmark.benchmarks.DataAccessBenchmark.readSingleUser`
- Thread count: `12`
- Fixtures in this snapshot: `26`
### Results
#### Throughput
| Rank | Fixture | Score | Error | Unit |
|---:|---|---:|---:|---|
| 1 | `in-memory` | 1089.133 | 18.619 | `ops/us` |
| 2 | `memory-mapped-file` | 79.212 | 3.253 | `ops/us` |
| 3 | `datastore4j` | 61.317 | 8.837 | `ops/us` |
| 4 | `leveldb` | 40.735 | 3.376 | `ops/us` |
| 5 | `mapdb` | 21.572 | 0.850 | `ops/us` |
| 6 | `sqlite-jdbc-memory` | 4.074 | 0.386 | `ops/us` |
| 7 | `lmdb` | 3.133 | 0.948 | `ops/us` |
| 8 | `kryo` | 2.560 | 0.154 | `ops/us` |
| 9 | `gson` | 2.266 | 0.191 | `ops/us` |
| 10 | `sqlite-jdbc` | 2.026 | 0.090 | `ops/us` |
| 11 | `sqlite-ormlite-memory` | 1.202 | 0.046 | `ops/us` |
| 12 | `sqlite-ormlite` | 0.915 | 0.049 | `ops/us` |
| 13 | `duckdb-jdbc` | 0.053 | 0.002 | `ops/us` |
#### AverageTime
| Rank | Fixture | Score | Error | Unit |
|---:|---|---:|---:|---|
| 1 | `in-memory` | 0.011 | 0.000 | `us/op` |
| 2 | `memory-mapped-file` | 0.152 | 0.010 | `us/op` |
| 3 | `datastore4j` | 0.213 | 0.009 | `us/op` |
| 4 | `leveldb` | 0.291 | 0.007 | `us/op` |
| 5 | `mapdb` | 0.397 | 0.048 | `us/op` |
| 6 | `sqlite-jdbc-memory` | 2.989 | 0.441 | `us/op` |
| 7 | `lmdb` | 3.906 | 1.177 | `us/op` |
| 8 | `kryo` | 4.686 | 0.557 | `us/op` |
| 9 | `gson` | 5.310 | 0.319 | `us/op` |
| 10 | `sqlite-jdbc` | 5.984 | 0.313 | `us/op` |
| 11 | `sqlite-ormlite-memory` | 10.140 | 0.744 | `us/op` |
| 12 | `sqlite-ormlite` | 13.156 | 0.389 | `us/op` |
| 13 | `duckdb-jdbc` | 229.267 | 29.402 | `us/op` |
<!-- BENCHMARK_RESULTS_END -->