quarylabs / sqruff

Fast SQL formatter/linter
https://quary.dev/
Apache License 2.0
277 stars 6 forks source link

refactor: remove unnecessary alloc #532

Closed gvozdvmozgu closed 1 month ago

github-actions[bot] commented 1 month ago

Benchmark for 90fa2f7

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | 147.4±1.47µs | 146.7±3.22µs | -0.47% | | fix_complex_query | **12.6±0.17ms** | 14.9±0.18ms | **+18.25%** | | parse_complex_query | 4.3±0.06µs | **4.2±0.04µs** | **-2.33%** | | parse_expression_recursion | 7.3±0.11µs | **7.1±0.08µs** | **-2.74%** | | parse_simple_query | 1435.8±28.76ns | **1399.5±101.31ns** | **-2.53%** |
github-actions[bot] commented 1 month ago

Benchmark for 90fa2f7

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | **145.9±5.47µs** | 148.5±2.59µs | **+1.78%** | | fix_complex_query | **12.6±0.21ms** | 14.6±0.32ms | **+15.87%** | | parse_complex_query | 4.3±0.07µs | 4.3±0.07µs | 0.00% | | parse_expression_recursion | 7.3±0.12µs | 7.2±0.10µs | -1.37% | | parse_simple_query | 1416.6±25.27ns | **1372.3±51.06ns** | **-3.13%** |
github-actions[bot] commented 1 month ago

Benchmark for 2cc6e62

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | 146.9±1.87µs | 145.2±2.20µs | -1.16% | | fix_complex_query | 12.8±0.12ms | **11.6±0.17ms** | **-9.38%** | | parse_complex_query | 4.3±0.04µs | **4.2±0.06µs** | **-2.33%** | | parse_expression_recursion | 7.2±0.04µs | 7.2±0.13µs | 0.00% | | parse_simple_query | 1413.6±36.42ns | 1421.3±76.71ns | +0.54% |