SQLTraceBench

module
v0.0.0-...-b8497f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2025 License: Apache-2.0

README

SQLTraceBench

SQLTraceBench is a tool for benchmarking database performance using trace-based workload generation.

Features

  • Trace-Driven: Generates workloads based on real SQL traces.
  • Multi-Database Support: Architecture allows plugins for different databases (e.g., MySQL, ClickHouse, StarRocks).
  • Statistical Modeling: Uses statistical models to synthesize realistic parameter values.
  • Extensible: Easily add new database dialects and workload patterns.
  • Visual Reports: Generates comprehensive HTML validation reports with interactive charts.

Getting Started

Check out our Quick Start Guide to get up and running in minutes!

It covers:

  • Building the project
  • Preparing data
  • Running conversion, generation, and benchmarking commands
  • Using the automated examples/quickstart.sh script

Validation Reports

SQLTraceBench generates detailed validation reports to compare your benchmark results against a baseline.

Validation Report

Example of an HTML validation report showing QPS deviation and latency distribution.

See Report Interpretation Guide for details on how to read the reports.

Development

  1. Build: make build
  2. Test: make test

Architecture

See docs/architecture/architecture.md for details on the system design.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Directories

Path Synopsis
cmd
server command
sql_trace_bench command
internal
app
domain/models
Package models contains the core domain models for the SQLTraceBench application.
Package models contains the core domain models for the SQLTraceBench application.
domain/services
Package services contains the interfaces for the application's core services.
Package services contains the interfaces for the application's core services.
infrastructure/parsers
Package parsers contains the concrete implementations of the Parser interface.
Package parsers contains the concrete implementations of the Parser interface.
infrastructure/storage
Package storage provides in-memory storage implementations for the application's domain models.
Package storage provides in-memory storage implementations for the application's domain models.
pkg
types
Package types contains shared data structures and constants used across the application.
Package types contains shared data structures and constants used across the application.
starrocks/cmd command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL