mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
Test benchmarks and Improve benchmark README.md (#1627)
This commit is contained in:
parent
fe36020890
commit
3bad04e9e8
3 changed files with 522 additions and 1 deletions
|
@ -17,4 +17,26 @@
|
|||
under the License.
|
||||
-->
|
||||
|
||||
Benchmarks for sqlparser. See [the main README](../README.md) for more information.
|
||||
Benchmarks for sqlparser. See [the main README](../README.md) 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
|
||||
|
||||
```shell
|
||||
cargo bench --bench sqlparser_bench
|
||||
```
|
||||
|
||||
# Profiling
|
||||
|
||||
Note you can generate a [flamegraph] using the following command:
|
||||
|
||||
```shell
|
||||
cargo flamegraph --bench sqlparser_bench
|
||||
```
|
||||
|
||||
[flamegraph]: https://crates.io/crates/flamegraph
|
||||
|
||||
Here is an example flamegraph:
|
||||

|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue