sqlbench
« Back to VersTracker
Description:
Measures and compares the execution time of one or more SQL queries
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: benchmarking sql performance database developer-tools
Install: brew install sqlbench
About:
Sqlbench is a command-line utility designed to measure and compare the execution time of SQL queries against a database. It allows developers to benchmark query performance, helping to identify slow queries and verify optimizations. The tool supports running multiple queries in sequence and provides detailed timing statistics for performance analysis.
Key Features:
  • Measures execution time for one or more SQL queries
  • Supports multiple database drivers (PostgreSQL, MySQL, SQLite)
  • Provides detailed statistical output (min, max, mean, median)
  • Simple command-line interface for easy integration
Use Cases:
  • Benchmarking query performance before and after optimization
  • Comparing the speed of different SQL query formulations
  • Automated performance regression testing in CI/CD pipelines
Alternatives:
  • hyperfine – A general-purpose command-line benchmarking tool that can be used to time database commands, but lacks SQL-specific features and database driver integration.
  • pgbench – PostgreSQL's built-in benchmarking tool, which is excellent for running standard TPC-B like workloads but is less flexible for ad-hoc, custom query comparison.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 12:25pm 0 VERSION_BUMP 034b5a99
Sep 13, 2024 5:02am 0 VERSION_BUMP 55110b1d