Ready-to-Use TPC-C Database Benchmark Tool
DBBench is a professional database performance testing tool that fully implements the TPC-C benchmark specification. It supports 12 major databases and provides a real-time web monitoring dashboard.
docker run -d -p 1929:1929 --name dbbench ninedata/dbbench:latest
Open http://localhost:1929 in your browser to start testing.


| Database | JDBC URL Format |
|---|---|
| MySQL | jdbc:mysql://host:3306/database |
| PostgreSQL | jdbc:postgresql://host:5432/database |
| Oracle | jdbc:oracle:thin:@host:1521:sid |
| SQL Server | jdbc:sqlserver://host:1433;databaseName=db |
| DB2 | jdbc:db2://host:50000/database |
| TiDB | jdbc:mysql://host:4000/database |
| OceanBase | jdbc:mysql://host:2881/database |
| Dameng | jdbc:dm://host:5236/database |
| SQLite | jdbc:sqlite:./tpcc.db |
| YashanDB | jdbc:yasdb://host:1688/database |
| Sybase | jdbc:jtds:sybase://host:5000/database |
| SAP HANA | jdbc:sap://host:30015/?currentschema=schemaName |
Each warehouse contains approximately:
Recommended Configurations:
| Port | Purpose |
|---|---|
| 1929 | Web UI and REST API |
| Endpoint | Method | Description |
|---|---|---|
/api/benchmark/config | GET/POST | Get/Update configuration |
/api/benchmark/test-connection | POST | Test database connection |
/api/benchmark/load | POST | Load test data |
/api/benchmark/start | POST | Start benchmark |
/api/benchmark/stop | POST | Stop benchmark |
/api/benchmark/status | GET | Get current status |
/api/metrics/current | GET | Get real-time metrics |
/api/metrics/history | GET | Get metrics history (up to 3600 snapshots) |
/api/metrics/tps-history | GET | Get TPS history data |
/api/report/markdown | GET | Get benchmark report (Markdown) |
In addition to the Web UI, CLI mode is also supported using configuration files:
# Enter container
docker exec -it dbbench bash
# Load data
java -jar /app/dbbench.jar -f /app/profiles/config.properties load
# Run benchmark
java -jar /app/dbbench.jar -f /app/profiles/config.properties run
# Combine actions: clean → load → run
java -jar /app/dbbench.jar -f /app/profiles/config.properties clean load run
# Override specific settings
java -jar /app/dbbench.jar -f /app/profiles/config.properties -w 20 -c 100 -d 300 run
Apache License 2.0
Content type
Image
Digest
sha256:5ab69864b…
Size
150.3 MB
Last updated
7 months ago
docker pull ninedata/dbbench