datafusion-sqlparse/sqlparser_bench
2025-12-21 18:12:11 +01:00
..
benches Make benchmark statement valid 2025-12-21 18:12:11 +01:00
img Test benchmarks and Improve benchmark README.md (#1627) 2025-01-01 21:47:59 +01:00
Cargo.toml Update criterion requirement from 0.7 to 0.8 in /sqlparser_bench (#2111) 2025-12-01 14:59:03 +00:00
README.md Test benchmarks and Improve benchmark README.md (#1627) 2025-01-01 21:47:59 +01:00

Benchmarks for sqlparser. See the main README for more information.

Note: this is in a separate, non workspace crate to avoid adding a dependency on criterion to the main crate (which complicates testing without std).

Running Benchmarks

cargo bench --bench sqlparser_bench

Profiling

Note you can generate a flamegraph using the following command:

cargo flamegraph --bench sqlparser_bench

Here is an example flamegraph: flamegraph