Testing & Benchmarking

16 resources — subcategories Testing & Benchmarking

DBCanvas

A visual canvas for designing a database topology and deploying it as real, disposable Docker nodes — with DNS, TLS, LDAP, replication, monitoring, and backups wired in — for testing, demos, training, and troubleshooting.

dbdeployer

Deploys single, replicated, or Galera MySQL/MariaDB/Percona Server sandboxes locally in seconds, for development and testing — no root access or Docker required.

dbsafe

A read-only command-line tool that performs pre-execution safety analysis on MySQL DDL and DML statements, classifying each as Safe, Caution, or Dangerous before you run it in production.

go-sqlmock

A mock library implementing Go's `sql/driver`, used to simulate database behavior in tests without a real MySQL connection.

go-tpc

go-tpc

A toolbox from PingCAP for running TPC workloads against TiDB, MySQL-compatible databases, and PostgreSQL-compatible databases.

Greenmask

Greenmask

A utility for logical database dumps, anonymization, and synthetic data generation, production-ready for PostgreSQL with MySQL support in beta.

HammerDB

An open-source database load-testing tool that runs industry-standard TPC-C and TPC-H style benchmarks against MySQL and MariaDB, with a GUI, CLI, and CI-friendly automation.

mysql_random_data_load

mysql_random_data_load

A command-line tool from Percona Lab that reads a MySQL table's structure and fills it with random rows — for reproducing bugs, seeding test environments, and generating data to benchmark against.

Scythe

Scythe

A SQL-first code generator that compiles annotated .sql files into type-safe database access code for MySQL, MariaDB, and other engines without needing a live database connection, with built-in formatting, linting, security auditing, and schema-drift detection.

SlowQL

SlowQL

An offline, Rust-built static analyzer for SQL files and application code, with MySQL-aware rules for SQL injection, missing indexes, unbounded queries, and compliance issues, run from the CLI or CI with no database connection.

SQLancer

SQLancer

An automated testing tool that finds logic and performance bugs in database engines, with dedicated support for MySQL, MariaDB, and TiDB.

SQLFluff

SQLFluff

A modular, open-source SQL linter and auto-formatter with a dedicated MySQL and MariaDB dialect, built to catch style and syntax issues in SQL (including templated SQL used with dbt/Jinja) before it ships.

sysbench

A scriptable, multi-threaded benchmark tool based on LuaJIT — the de facto standard for OLTP-style load testing and CPU/memory/file-IO benchmarking of MySQL servers.

sysbench-tpcc

A set of Lua scripts for sysbench that drives a TPC-C-like OLTP workload against MySQL, used to load-test and compare server configurations under realistic contention.

test_db (Employees Sample Database)

A sample MySQL database with an integrated test suite, used to test applications and database servers.

Testcontainers (MySQL module)

Testcontainers (MySQL module)

An open-source library for spinning up throwaway MySQL and MariaDB instances in Docker containers for integration tests, with official modules for Java, Go, Node.js, and Python.