quarylabs / sqruff

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

feat: small optimisations #501

Closed benfdking closed 1 month ago

github-actions[bot] commented 1 month ago

Benchmark for 26a07e5

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | 149.8±2.58µs | **148.4±1.36µs** | **-0.93%** | | fix_complex_query | 14.5±0.37ms | **14.4±0.07ms** | **-0.69%** | | parse_complex_query | **4.8±0.05µs** | 4.9±0.07µs | **+2.08%** | | parse_expression_recursion | **9.6±0.05µs** | 9.8±0.08µs | **+2.08%** | | parse_simple_query | 1432.9±26.38ns | 1442.0±70.03ns | +0.64% |
github-actions[bot] commented 1 month ago

Benchmark for eb56c82

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | **150.5±2.42µs** | 160.0±2.27µs | **+6.31%** | | fix_complex_query | 14.5±0.25ms | 14.3±0.37ms | -1.38% | | parse_complex_query | **4.8±0.03µs** | 4.9±0.06µs | **+2.08%** | | parse_expression_recursion | **9.7±0.09µs** | 9.8±0.08µs | **+1.03%** | | parse_simple_query | 1411.1±35.61ns | 1436.2±26.42ns | +1.78% |
github-actions[bot] commented 1 month ago

Benchmark for 8aff97d

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | 142.8±3.27µs | **140.5±1.79µs** | **-1.61%** | | fix_complex_query | 13.5±0.22ms | 13.5±0.10ms | 0.00% | | parse_complex_query | 4.4±0.07µs | **4.3±0.06µs** | **-2.27%** | | parse_expression_recursion | **7.2±0.20µs** | 7.3±0.08µs | **+1.39%** | | parse_simple_query | 1412.1±28.03ns | 1421.5±77.64ns | +0.67% |