quarylabs / sqruff

Fast SQL formatter/linter
https://playground.quary.dev/?secondary=Format
Apache License 2.0
353 stars 14 forks source link

feat: web playground with WASM #729

Closed gvozdvmozgu closed 1 month ago

github-actions[bot] commented 1 month ago

Benchmark for bf05e1c

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | **40.7±0.55µs** | 43.9±0.30µs | **+7.86%** | | fix_complex_query | 11.5±1.12ms | **11.1±0.09ms** | **-3.48%** | | parse_complex_query | 2.8±0.02µs | 2.8±0.02µs | 0.00% | | parse_expression_recursion | 5.1±0.02µs | **5.0±0.06µs** | **-1.96%** | | parse_simple_query | **814.8±13.67ns** | 835.8±31.75ns | **+2.58%** |
github-actions[bot] commented 1 month ago

Benchmark for 4842652

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | **41.4±0.47µs** | 41.8±0.17µs | **+0.97%** | | fix_complex_query | **11.2±0.09ms** | 11.3±0.07ms | **+0.89%** | | parse_complex_query | 2.8±0.04µs | 2.8±0.05µs | 0.00% | | parse_expression_recursion | **5.0±0.08µs** | 5.1±0.06µs | **+2.00%** | | parse_simple_query | 803.0±10.84ns | **789.0±4.73ns** | **-1.74%** |
github-actions[bot] commented 1 month ago

Benchmark for 244fcfd

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | 42.3±0.28µs | **41.4±0.35µs** | **-2.13%** | | fix_complex_query | 11.5±0.15ms | 11.4±0.19ms | -0.87% | | parse_complex_query | 2.9±0.14µs | 2.9±0.02µs | 0.00% | | parse_expression_recursion | 5.2±0.03µs | 5.2±0.04µs | 0.00% | | parse_simple_query | **868.9±6.17ns** | 879.6±33.40ns | **+1.23%** |
github-actions[bot] commented 1 month ago

Benchmark for 5d4b447

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | **41.2±0.39µs** | 42.5±0.65µs | **+3.16%** | | fix_complex_query | 11.5±0.20ms | **11.2±0.15ms** | **-2.61%** | | parse_complex_query | 2.8±0.04µs | 2.8±0.04µs | 0.00% | | parse_expression_recursion | **5.0±0.04µs** | 5.2±0.29µs | **+4.00%** | | parse_simple_query | **798.9±16.16ns** | 815.6±19.14ns | **+2.09%** |
benfdking commented 1 month ago

I can't seem to get this running

image image

On M1 and node v20.17.0

Steps I did:

  1. Checkout
  2. Npm install
  3. npm run dev:wasm
  4. npm run dev

Am I missing something?

gvozdvmozgu commented 1 month ago

Oh, looks like I accidentally installed classnames locally in the project root, and it was working perfectly fine for me! :) Added the dependency to the local project, and now everything works.

github-actions[bot] commented 1 month ago

Benchmark for 92a90c9

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | DepthMap::from_parent | **41.0±0.25µs** | 41.3±0.31µs | **+0.73%** | | fix_complex_query | 11.2±0.15ms | 11.2±0.15ms | 0.00% | | parse_complex_query | 2.8±0.04µs | 2.8±0.03µs | 0.00% | | parse_expression_recursion | 5.0±0.04µs | 5.0±0.04µs | 0.00% | | parse_simple_query | 811.0±6.14ns | 806.0±21.46ns | -0.62% |