Files

79 lines
2.5 KiB
Markdown
Raw Permalink 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-06T06:39:34.312411714Z
### 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` | 1093.921 | 12.329 | `ops/us` |
| 2 | `memory-mapped-file` | 80.113 | 1.513 | `ops/us` |
| 3 | `datastore4j` | 59.887 | 2.537 | `ops/us` |
| 4 | `leveldb` | 35.927 | 0.868 | `ops/us` |
| 5 | `mapdb` | 31.251 | 1.159 | `ops/us` |
| 6 | `sqlite-jdbc-memory` | 4.285 | 0.286 | `ops/us` |
| 7 | `lmdb` | 3.372 | 2.250 | `ops/us` |
| 8 | `kryo` | 2.722 | 0.171 | `ops/us` |
| 9 | `gson` | 2.342 | 0.077 | `ops/us` |
| 10 | `sqlite-jdbc` | 2.061 | 0.052 | `ops/us` |
| 11 | `sqlite-ormlite-memory` | 1.229 | 0.034 | `ops/us` |
| 12 | `sqlite-ormlite` | 0.948 | 0.036 | `ops/us` |
| 13 | `duckdb-jdbc` | 0.054 | 0.005 | `ops/us` |
| - | `ikv-store` | FAILED | - | `n/a` |
| - | `chronicle-map` | FAILED | - | `n/a` |
#### AverageTime
| Rank | Fixture | Score | Error | Unit |
|---:|---|---:|---:|---|
| 1 | `in-memory` | 0.011 | 0.000 | `us/op` |
| 2 | `memory-mapped-file` | 0.149 | 0.004 | `us/op` |
| 3 | `datastore4j` | 0.194 | 0.003 | `us/op` |
| 4 | `leveldb` | 0.357 | 0.015 | `us/op` |
| 5 | `mapdb` | 0.557 | 0.014 | `us/op` |
| 6 | `sqlite-jdbc-memory` | 2.820 | 0.056 | `us/op` |
| 7 | `lmdb` | 3.752 | 1.071 | `us/op` |
| 8 | `kryo` | 4.420 | 0.336 | `us/op` |
| 9 | `gson` | 5.168 | 0.582 | `us/op` |
| 10 | `sqlite-jdbc` | 5.783 | 0.145 | `us/op` |
| 11 | `sqlite-ormlite-memory` | 9.801 | 0.351 | `us/op` |
| 12 | `sqlite-ormlite` | 12.611 | 0.307 | `us/op` |
| 13 | `duckdb-jdbc` | 222.187 | 5.408 | `us/op` |
| - | `ikv-store` | FAILED | - | `n/a` |
| - | `chronicle-map` | FAILED | - | `n/a` |
<!-- BENCHMARK_RESULTS_END -->