File tree 3 files changed +522
-1
lines changed
3 files changed +522
-1
lines changed Original file line number Diff line number Diff line change 37
37
uses : ./.github/actions/setup-builder
38
38
- run : cargo clippy --all-targets --all-features -- -D warnings
39
39
40
+ benchmark-lint :
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - name : Setup Rust Toolchain
45
+ uses : ./.github/actions/setup-builder
46
+ - run : cd sqlparser_bench && cargo clippy --all-targets --all-features -- -D warnings
47
+
40
48
compile :
41
49
runs-on : ubuntu-latest
42
50
steps :
Original file line number Diff line number Diff line change 17
17
under the License.
18
18
-->
19
19
20
- Benchmarks for sqlparser. See [ the main README] ( ../README.md ) for more information.
20
+ Benchmarks for sqlparser. See [ the main README] ( ../README.md ) for more information.
21
+
22
+ Note: this is in a separate, non workspace crate to avoid adding a dependency
23
+ on ` criterion ` to the main crate (which complicates testing without std).
24
+
25
+ # Running Benchmarks
26
+
27
+ ``` shell
28
+ cargo bench --bench sqlparser_bench
29
+ ```
30
+
31
+ # Profiling
32
+
33
+ Note you can generate a [ flamegraph] using the following command:
34
+
35
+ ``` shell
36
+ cargo flamegraph --bench sqlparser_bench
37
+ ```
38
+
39
+ [ flamegraph ] : https://crates.io/crates/flamegraph
40
+
41
+ Here is an example flamegraph:
42
+ ![ flamegraph] ( img/flamegraph.svg )
You can’t perform that action at this time.
0 commit comments