HammerDB
HammerDB is the industry-standard open-source database benchmarking tool used to evaluate performance across Oracle, Microsoft SQL Server, IBM Db2, PostgreSQL, MySQL, and MariaDB.
Publisher review
HammerDB is the industry-standard open-source database benchmarking tool used to evaluate performance across Oracle, Microsoft SQL Server, IBM Db2, PostgreSQL, MySQL, and MariaDB. Created and maintained by the TPC Council, it implements fair-use TPROC-C (transactional) and TPROC-H (analytical) workload standards to simulate real-world database behavior under load. The tool supports GUI, CLI, and web-based interfaces, making it accessible to DBAs and performance engineers regardless of their scripting expertise.
HammerDB generates virtual users that execute realistic transaction patterns, measuring throughput (transactions per minute), latency, and scalability limits. It's particularly valuable for stress-testing configurations, validating hardware capacity, and comparing database platforms objectively. The codebase is 94% Tcl with supporting components in Python, C, and Docker, and it remains fully free under GPLv3.
Recent 2025 work includes collaboration with MariaDB engineering on OLTP scalability analysis and modern chiplet-era topology-aware benchmarking. Key trade-off: while HammerDB excels at OLTP and OLAP workload simulation, network latency between client and database can skew results, requiring same-VPC deployment for accuracy. Proprietary databases like Oracle restrict result sharing (though not running), while open-source alternatives permit free publication.
How it works
-
Multi-database support
Benchmarks Oracle, SQL Server, IBM Db2, PostgreSQL, MySQL, and MariaDB with native drivers and workload tuning per platform.
-
TPC-C/TPC-H implementations
Fair-use implementations of Transaction Processing Council standards for OLTP and analytical workloads, sourced under TPC-OSS program.
-
Virtual user simulation
Non-blocking, multithreaded parallel execution stresses database concurrency control rather than client-side bottlenecks.
-
GUI, CLI, and web interfaces
Flexible interaction modes from desktop GUI to headless CLI to browser-based dashboards for CI/CD integration.
-
Latency and throughput metrics
Measures NOPM (database-agnostic new orders per minute) and TPM (database-specific), plus transaction response times and bottleneck identification.
-
Docker containerization
Official Docker images enable reproducible benchmarking in cloud and CI/CD environments with minimal setup.
-
Scalability testing
Tests performance across variable warehouse counts and user concurrency to expose architectural limits and capacity boundaries.
Strengths and trade-offs
Strengths
- Free and open-source under GPLv3 with full source transparency and community contributions
- Implements TPC Council standards ensuring results are comparable across tools and platforms
- Low overhead design with multithreaded execution stresses database locks rather than client resources, revealing real bottlenecks
Trade-offs
- Network latency between benchmark client and database skews results; requires same VPC/network deployment for accuracy
- Limited to OLTP and batch-analytical workloads (TPC-C/H); doesn't simulate ad-hoc analytics, batch ETL, or modern time-series patterns
- Proprietary database vendors restrict sharing of benchmark results publicly, limiting community knowledge-building vs. open-source peers
Pricing context
HammerDB is 100% free and open-source under GPLv3. There is no commercial licensing, per-seat fees, or premium tiers. The tool is downloadable from GitHub and SourceForge, with official Docker images available for container-based deployment. Supporting professional services (independent performance analysis and expert consultation) are available through hammerdb.com but are optional and not part of the core benchmarking tool.
User reviews
No user reviews yet. Be the first to write one.
Sources
Reporting on this tool draws on these publicly available sources.
- www.hammerdb.com — Official website, features, supported databases, Docker support, and availability of professional services
- github.com — Open-source GPL-3.0 licensing, 765 stars/147 forks, Tcl/Python/C/Docker stack, version 5.0 (April 2025), TPC-C/TPC-H implementations
- www.tessell.com — Practical strengths (latency/throughput metrics, real-world OLTP simulation), limitations (network dependency, VPC requirement), schema setup complexity
- docs.cloud.google.com — SQL Server benchmarking use case, cloud deployment patterns, industry adoption by Google Cloud