Skip to content

test(transpiler): kill scanSource byte-boundary mutants [W6-14] - #968

Merged
ajitpratap0 merged 2 commits into
mainfrom
perf/w6-14-scansource-mutants
Nov 15, 2026
Merged

ajitpratap0 merged 2 commits into
mainfrom
perf/w6-14-scansource-mutants

Conversation

@ajitpratap0

@ajitpratap0 ajitpratap0 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Test-only. Adds TestScanSourceByteBoundaries in pkg/transpiler/prefilter_test.go, pinning the non-ASCII byte boundary (\x7f, \x80, \x81) of scanSource. Kills the 3 surviving mutants (>0x80, >=0x81, >=0x7f). A 15-mutant go test -overlay pass leaves only M12 (equivalent mutant in the requoteIdentifiers gate, since FormatASTChecked restyles data types itself); M12 is handed to W7-05. No production code changes, no perf claim, no CHANGELOG fragment (test-only).

Test Plan

  • Overlay mutation pass: M01-M11, M13-M15 killed, M12 survives (expected).
  • task check: fmt, vet, lint pass; the only failure was scripts/perf/gate timing out at 2m under load, and it passes alone (go test -race ./scripts/perf/gate, 23s).
  • task test:cbinding, go test -count=1 ./pkg/compatibility/..., staticcheck on ./pkg/transpiler/: pass.
  • Perf gate: not applicable (test-only).

Breaking Changes

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2

Final gate before merge (merge train)

The perf gate ran on the final head b477daae5b18 merged with current main: REGRESSION on one flag only, LintParallel/rules allocs/op 68933 -> 68934 (+1 of 68933; time +0.03%, p 0.925). This PR changes only pkg/transpiler/prefilter_test.go, which no gated benchmark runs, and that parallel benchmark's allocation count varies by one or two with pool timing. Judged noise and merged. Report #968 (comment).

Add TestScanSourceByteBoundaries pinning the non-ASCII byte threshold
(0x7f/0x80/0x81) so the >0x80, >=0x81 and >=0x7f mutants die.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
gosqlx-website Ignored Ignored Preview Nov 15, 2026 1:04pm UTC

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Claude finished @ajitpratap0's task in 18s —— View job


Review of PR #968: TestScanSourceByteBoundaries

Verdict: looks good. I'm not approving, since I can't approve PRs. I found no blocking issues.

  • Read the diff and scanSource (pkg/transpiler/transpiler.go:134)
  • Checked that each claimed mutant is killed
  • I didn't run the tests or the overlay mutation pass. This review comes from reading the code.

Correctness

  • scanSource flags non-ASCII with c >= 0x80. Both test cases sit on that boundary.
  • "SELECT \x80" must set nonASCII and nothing else. This kills >0x80 and >=0x81, which would both miss 0x80.
  • "SELECT \x7f" must produce an empty sourceFeatures{}. This kills >=0x7f.
  • Comparing the whole struct also checks that no other flag (pipe, quote, typeDelim) gets set by accident.
  • The first case sets the byte through a Go string escape and gets an invalid UTF-8 byte. That is the right input here, because the scanner works on raw bytes.

Nits (optional)

  • The PR description mentions \x81, but there is no \x81 case. It isn't needed to kill the three mutants. A 0xff or 0x81 case would also guard against a signed-byte conversion, but that's a small extra.
  • A comment above the test would help, for example "pins the 0x7f/0x80 boundary; see W6-14". Other tests in the file may not have one, so follow the file's style.
  • A multi-byte UTF-8 case such as "é" is already covered elsewhere in the file (I didn't check). If it isn't, it's cheap to add.

Other points

  • There are no production changes, so there is no performance or security impact and no changelog fragment is needed. That fits the repo conventions for test-only PRs.
  • The PR body notes that M12 survives because it's an equivalent mutant, and that it was handed to W7-05. That is a reasonable thing to track.
  • The scripts/perf/gate timeout under load looks unrelated to this change, since it passed alone.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Perf gate: REGRESSION (shadow mode: report only, this check never fails)

Base 22dba65ef8a8, head 22fa06a1d724. 20 interleaved rounds, 20 randomized code layouts per arm (-randlayout seeds 437170042952..437170042971; A/A' 437170042972..437170042991), benchtime 100ms, -cpu 1, GOMEMLIMIT 64MiB, pinned to CPU 3 (SMT siblings 1,3) with taskset.

Runner CPU: Intel(R) Xeon(R) 6975P-C (x86_64). Base and head ran interleaved in this job, so the tables show their ratios only; absolute timings (raw files in the artifact) hold for this CPU and this job alone and are never compared across jobs.

  • allocs/op increased in 1 benchmark(s)

Rules: each arm runs 20 randomized code layouts (-ldflags=-randlayout); time regresses at >= +3% when significant at a false discovery rate of 0.01 over the suite (Benjamini-Hochberg on exact Mann-Whitney U p-values of the per-layout medians, so a regression must hold across layouts, not within one binary), or a suite geomean >= +1.5% (per-layout suite geomeans, same test); allocs/op must not increase; B/op must not rise more than 2%; instructions/op must not rise more than 1.5%. The A/A' control runs the base revision under a disjoint set of layout seeds; when more than 10% of benchmarks move over 3% in it, the run is noisy: re-run once, then inconclusive (neutral).

Gated suite (GOGC=off, GOMAXPROCS=1)

benchmark time p A/A' spread B/op allocs/op status
ParseE2E/simple_select -0.72% 0.133 -0.84% 1.31% +0.00% 3 → 3 ok
ParseE2E/select_where -0.82% 0.110 +0.05% 1.12% +0.00% 16 → 16 ok
ParseE2E/join -0.03% 0.968 -0.60% 1.42% +0.00% 15 → 15 ok
ParseE2E/aggregate -0.08% 0.925 -0.96% 0.90% +0.00% 13 → 13 ok
ParseE2E/subquery -0.27% 0.607 -0.70% 2.06% +0.00% 10 → 10 ok
ParseE2E/cte -0.53% 0.297 -0.77% 1.29% +0.00% 16 → 16 ok
ParseE2E/window -0.23% 0.636 -0.73% 2.07% +0.00% 9 → 9 ok
ParseE2E/complex -0.56% 0.383 -1.15% 1.45% +0.00% 43 → 43 ok
ParseE2E/insert -0.30% 0.675 -0.64% 1.10% +0.00% 17 → 17 ok
ParseE2E/update +0.08% 0.818 -0.07% 1.22% +0.00% 13 → 13 ok
ParseE2E/delete -0.30% 0.685 -0.21% 1.69% +0.00% 5 → 5 ok
ParseRW/postgresql/medium -0.34% 0.512 +0.31% 1.46% -0.00% 583 → 583 ok
ParseRW/mysql/medium -0.04% 0.925 +0.55% 1.13% +0.00% 334 → 334 ok
ParseRW/mariadb/medium -0.48% 0.369 -0.19% 1.38% -0.00% 470 → 470 ok
ParseRW/sqlserver/medium +0.44% 0.369 +0.57% 1.29% +0.00% 853 → 853 ok
ParseRW/oracle/medium -0.44% 0.383 +0.28% 0.68% -0.00% 962 → 962 ok
ParseRW/sqlite/medium -0.53% 0.242 -0.66% 1.17% +0.00% 318 → 318 ok
ParseRW/snowflake/medium -0.21% 0.718 -0.16% 0.67% +0.00% 630 → 630 ok
ParseRW/clickhouse/medium -1.08% 0.017 -0.16% 1.48% +0.00% 336 → 336 ok
ParseFresh/simple_select -0.58% 0.317 -0.20% 2.18% +0.00% 4 → 4 ok
ParseFresh/join -0.71% 0.058 -0.27% 0.98% +0.00% 16 → 16 ok
ParseFresh/complex -0.73% 0.117 -0.62% 1.06% +0.00% 44 → 44 ok
ParseFresh/insert -0.75% 0.185 -0.37% 1.81% +0.00% 18 → 18 ok
ParseFresh/update -0.39% 0.465 +0.19% 2.22% +0.00% 14 → 14 ok
ParseFresh/delete -0.20% 0.787 +0.26% 2.39% +0.00% 6 → 6 ok
PoolGetPut/serial -0.13% 0.507 -0.18% 0.79% +0.00% 0 → 0 ok
Tokenize/scratch/join -0.10% 0.756 +0.68% 2.51% +0.00% 0 → 0 ok
Tokenize/scratch/complex -0.19% 0.779 -0.36% 3.71% +0.00% 0 → 0 ok
Tokenize/scratch/insert +0.03% 0.989 +0.01% 3.55% +0.00% 0 → 0 ok
Normalize/simple_select +0.12% 0.839 +0.28% 2.22% +0.00% 5 → 5 ok
Normalize/join -0.06% 0.735 +0.18% 0.49% +0.00% 21 → 21 ok
Normalize/complex +0.00% 0.989 +0.39% 1.30% +0.00% 62 → 62 ok
TransformParse/simple_select +0.03% 0.935 -0.24% 1.47% +0.00% 3 → 3 ok
TransformParse/join +0.44% 0.449 +0.03% 1.96% +0.00% 15 → 15 ok
TransformParse/complex +0.17% 0.543 -0.34% 1.34% +0.00% 43 → 43 ok
LintParallel/rules +0.03% 0.925 +0.25% 1.57% +0.00% 68933 → 68934 +allocs
LintParallel/lint -0.00% 0.989 -0.05% 1.70% +0.00% 126677 → 126677 ok
LintRW/postgresql -0.92% 0.049 +0.21% 1.36% +0.00% 14129 → 14129 ok
LintRW/mysql -0.03% 0.989 +0.00% 0.52% -0.00% 17456 → 17456 ok
LintRW/mariadb -1.13% 0.010 -0.06% 0.79% +0.00% 15755 → 15755 ok
LintRW/sqlserver +0.69% 0.265 +0.18% 2.64% -0.00% 13870 → 13870 ok
LintRW/oracle +0.12% 0.883 -0.23% 1.26% +0.00% 16856 → 16857 ok
LintRW/sqlite +0.03% 0.968 +0.82% 1.04% -0.00% 15738 → 15738 ok
LintRW/snowflake +0.41% 0.529 +0.94% 1.56% -0.00% 15204 → 15204 ok
LintRW/clickhouse +0.46% 0.142 +0.38% 0.70% +0.00% 17660 → 17660 ok
LintRule/L007 -0.35% 0.718 -0.43% 2.21% +0.00% 1194 → 1194 ok
LintRule/L010 +0.13% 0.698 +0.85% 1.25% +0.00% 0 → 0 ok
ParseError/syntax_mid/parse +0.07% 0.957 +0.76% 1.84% +0.00% 11 → 11 ok
ParseError/syntax_mid/validate -0.07% 0.946 +0.96% 2.17% +0.00% 11 → 11 ok
ParseError/syntax_end/parse -0.06% 0.903 +0.12% 1.29% +0.00% 14 → 14 ok
ParseError/syntax_end/validate -0.63% 0.598 -1.05% 2.55% +0.00% 14 → 14 ok
ParseError/tokenize/parse +0.18% 0.598 +0.19% 1.08% +0.00% 4 → 4 ok
ParseError/tokenize/validate +0.00% 0.968 +0.63% 1.05% +0.00% 21 → 21 ok
ParseError/long_prefix/parse -0.03% 0.968 -0.49% 0.96% -0.00% 213 → 213 ok
ParseError/long_prefix/validate +0.25% 0.758 +0.92% 2.12% +0.00% 213 → 213 ok
DetectDialect/empty +0.08% 0.755 -0.08% 1.02% +0.00% 0 → 0 ok
DetectDialect/generic -0.11% 0.818 -0.25% 1.60% +0.00% 0 → 0 ok
DetectDialect/postgresql +0.06% 0.903 -0.34% 5.10% +0.00% 0 → 0 ok
DetectDialect/mysql -0.03% 0.935 -0.30% 6.56% +0.00% 0 → 0 ok
DetectDialect/sqlserver +0.03% 0.957 -0.33% 4.19% +0.00% 0 → 0 ok
DetectDialect/oracle -0.14% 0.914 -0.45% 2.57% +0.00% 0 → 0 ok
DetectDialect/snowflake -0.02% 0.925 -0.39% 0.71% +0.00% 0 → 0 ok
DetectDialect/mariadb +0.16% 0.705 -0.55% 3.93% +0.00% 0 → 0 ok
DetectDialect/mixed +0.03% 0.892 +0.11% 0.54% +0.00% 0 → 0 ok
DetectDialect/large_64KB +0.10% 0.738 -0.15% 2.12% +0.00% 0 → 0 ok
geomean -0.16% 0.512 -0.07%

time and A/A' are Hodges-Lehmann shifts over the per-layout medians. spread: the base arm's robust standard deviation across its layouts (1.4826 x MAD, relative), i.e. how much this benchmark moves between builds that differ only in function placement, plus run-to-run noise; a change much smaller than it cannot be resolved in one run.

A/A' control (base revision, disjoint layout seeds): 0 of 65 benchmarks moved more than 3%; 0 would have been flagged by the time rule; suite geomean -0.07%, p 0.640.

Low power

6 benchmark(s) have under 80% estimated power to be flagged on their own for a +5% slowdown (their spread across layouts is too wide for 20 layouts at the Benjamini-Hochberg level alpha/m = 0.000154). A slowdown below the last column usually goes unflagged there; instructions/op, allocs/op and the suite geomean still guard them.

benchmark spread power at +5% slowdown caught 80% of the time
DetectDialect/mysql 6.56% 7% +10.3%
DetectDialect/postgresql 5.10% 20% +7.9%
DetectDialect/sqlserver 4.19% 42% +6.5%
DetectDialect/mariadb 3.93% 52% +6.1%
Tokenize/scratch/complex 3.71% 61% +5.7%
Tokenize/scratch/insert 3.55% 68% +5.5%

Power is estimated with the normal approximation for the U test (Noether): power = Phi(ln(1+shift)/s * sqrt(K/2) * sqrt(3/pi) - z(1 - alpha/(2m))), with s the spread and K the layouts per arm.

Instructions per operation (cmd/perfdriver)

case instructions/op status
e2e/aggregate -0.03% ok
e2e/complex -5.42% ok
e2e/cte +0.01% ok
e2e/delete -0.02% ok
e2e/insert +0.03% ok
e2e/join -0.01% ok
e2e/select_where +0.02% ok
e2e/simple_select -0.04% ok
e2e/subquery +0.01% ok
e2e/update +0.00% ok
e2e/window +0.00% ok
rw/postgresql/medium +0.02% ok
Secondary metric: default GC, GOMAXPROCS=1 (informational)
benchmark time p
ParseE2E/simple_select +0.00% 0.970
ParseE2E/select_where -0.10% 0.762
ParseE2E/join +0.07% 0.970
ParseE2E/aggregate +0.16% 0.971
ParseE2E/subquery +0.15% 0.850
ParseE2E/cte -0.40% 0.272
ParseE2E/window -0.54% 0.481
ParseE2E/complex +0.57% 0.123
ParseE2E/insert +0.37% 0.623
ParseE2E/update -0.56% 0.495
ParseE2E/delete +0.09% 0.850
ParseRW/postgresql/medium -0.52% 0.393
ParseRW/mysql/medium -0.34% 0.353
ParseRW/mariadb/medium -0.48% 0.280
ParseRW/sqlserver/medium +0.04% 0.971
ParseRW/oracle/medium +0.11% 0.684
ParseRW/sqlite/medium +0.09% 0.739
ParseRW/snowflake/medium -0.14% 0.739
ParseRW/clickhouse/medium -0.13% 0.971
ParseFresh/simple_select -0.14% 0.650
ParseFresh/join -0.57% 0.226
ParseFresh/complex -0.47% 0.247
ParseFresh/insert +0.00% 1.000
ParseFresh/update +0.11% 0.910
ParseFresh/delete +0.09% 0.880
PoolGetPut/serial +0.28% 0.273
Tokenize/scratch/join -0.11% 0.912
Tokenize/scratch/complex +0.05% 1.000
Tokenize/scratch/insert +0.16% 0.684
Normalize/simple_select +0.27% 0.762
Normalize/join +0.19% 0.650
Normalize/complex +0.08% 0.850
TransformParse/simple_select +0.00% 0.970
TransformParse/join +0.09% 0.940
TransformParse/complex -0.20% 0.597
LintParallel/rules +0.77% 0.481
LintParallel/lint +0.18% 0.436
LintRW/postgresql +0.07% 0.684
LintRW/mysql +0.18% 0.529
LintRW/mariadb +0.12% 0.796
LintRW/sqlserver -0.08% 0.481
LintRW/oracle -0.08% 0.684
LintRW/sqlite +0.23% 0.739
LintRW/snowflake +0.82% 0.005
LintRW/clickhouse +0.26% 0.190
LintRule/L007 +0.88% 0.393
LintRule/L010 +0.25% 0.739
ParseError/syntax_mid/parse -0.95% 0.364
ParseError/syntax_mid/validate -0.31% 0.596
ParseError/syntax_end/parse -0.26% 0.853
ParseError/syntax_end/validate -0.54% 0.677
ParseError/tokenize/parse -0.48% 0.345
ParseError/tokenize/validate -0.59% 0.161
ParseError/long_prefix/parse +0.31% 0.579
ParseError/long_prefix/validate -0.36% 0.529
DetectDialect/empty +0.00% 0.970
DetectDialect/generic -0.07% 0.910
DetectDialect/postgresql +0.19% 0.796
DetectDialect/mysql -0.05% 0.970
DetectDialect/sqlserver -0.10% 0.762
DetectDialect/oracle +0.11% 0.684
DetectDialect/snowflake +0.00% 1.000
DetectDialect/mariadb +0.16% 0.910
DetectDialect/mixed -0.08% 0.850
DetectDialect/large_64KB -0.12% 0.853
geomean -0.02%
Environment
date:        2026-11-15T13:08:13Z
base:        22dba65ef8a8018773cd12519caa660efcf46f2b
head:        working tree of 22fa06a1d724a2c3d4bc415c827eda907f110dcb
cpu model:   Intel(R) Xeon(R) 6975P-C (x86_64)
go:          go version go1.26.9 linux/amd64
kernel:      Linux 7.0.0-1014-aws x86_64
layouts:     20 per arm, -ldflags=-randlayout seeds 437170042952..437170042971 (base, head), 437170042972..437170042991 (A/A')
pinning:     pinned to CPU 3 (SMT siblings 1,3) with taskset
gcoff env:   GOGC=off GOMEMLIMIT=64MiB
clocksource: tsc
load:        6.78, 2.58, 0.96
instr count: perf
perf probe:  205233,,instructions:u,303067,100.00,, 

Architecture:                            x86_64
CPU(s):                                  4
Model name:                              Intel(R) Xeon(R) 6975P-C
Thread(s) per core:                      2
Core(s) per socket:                      2
Socket(s):                               1
Hypervisor vendor:                       KVM
L1d cache:                               96 KiB (2 instances)
L1i cache:                               128 KiB (2 instances)
L2 cache:                                4 MiB (2 instances)
L3 cache:                                480 MiB (1 instance)
benchstat (primary metric, samples pooled across layouts: informational, the verdict uses the per-layout test)
goos: linux
goarch: amd64
pkg: github.com/ajitpratap0/GoSQLX/pkg/fingerprint
cpu: Intel(R) Xeon(R) 6975P-C
                        │    base     │                head                │
                        │   sec/op    │   sec/op     vs base               │
Normalize/simple_select   1.272µ ± 1%   1.276µ ± 2%       ~ (p=0.836 n=20)
Normalize/join            4.872µ ± 1%   4.882µ ± 1%       ~ (p=0.733 n=20)
Normalize/complex         13.05µ ± 1%   13.06µ ± 1%       ~ (p=0.984 n=20)
geomean                   4.324µ        4.333µ       +0.21%

                        │     base     │                 head                  │
                        │     B/op     │     B/op      vs base                 │
Normalize/simple_select     784.0 ± 0%     784.0 ± 0%       ~ (p=1.000 n=20) ¹
Normalize/join            2.164Ki ± 0%   2.164Ki ± 0%       ~ (p=1.000 n=20) ¹
Normalize/complex         5.977Ki ± 0%   5.977Ki ± 0%       ~ (p=1.000 n=20) ¹
geomean                   2.147Ki        2.147Ki       +0.00%
¹ all samples are equal

                        │    base    │                head                 │
                        │ allocs/op  │ allocs/op   vs base                 │
Normalize/simple_select   5.000 ± 0%   5.000 ± 0%       ~ (p=1.000 n=20) ¹
Normalize/join            21.00 ± 0%   21.00 ± 0%       ~ (p=1.000 n=20) ¹
Normalize/complex         62.00 ± 0%   62.00 ± 0%       ~ (p=1.000 n=20) ¹
geomean                   18.67        18.67       +0.00%
¹ all samples are equal

pkg: github.com/ajitpratap0/GoSQLX/pkg/gosqlx
                                │    base     │                head                │
                                │   sec/op    │   sec/op     vs base               │
ParseE2E/simple_select            853.2n ± 1%   846.5n ± 1%       ~ (p=0.133 n=20)
ParseE2E/select_where             2.190µ ± 1%   2.177µ ± 1%       ~ (p=0.110 n=20)
ParseE2E/join                     3.245µ ± 2%   3.251µ ± 1%       ~ (p=0.963 n=20)
ParseE2E/aggregate                2.376µ ± 1%   2.378µ ± 1%       ~ (p=0.920 n=20)
ParseE2E/subquery                 1.839µ ± 1%   1.833µ ± 1%       ~ (p=0.606 n=20)
ParseE2E/cte                      2.883µ ± 1%   2.867µ ± 1%       ~ (p=0.298 n=20)
ParseE2E/window                   1.791µ ± 1%   1.774µ ± 2%       ~ (p=0.635 n=20)
ParseE2E/complex                  8.024µ ± 1%   7.931µ ± 3%       ~ (p=0.383 n=20)
ParseE2E/insert                   1.556µ ± 1%   1.548µ ± 2%       ~ (p=0.673 n=20)
ParseE2E/update                   1.337µ ± 1%   1.341µ ± 1%       ~ (p=0.815 n=20)
ParseE2E/delete                   849.6n ± 1%   846.4n ± 4%       ~ (p=0.683 n=20)
ParseRW/postgresql/medium         96.97µ ± 1%   96.42µ ± 1%       ~ (p=0.512 n=20)
ParseRW/mysql/medium              59.45µ ± 1%   59.47µ ± 1%       ~ (p=0.925 n=20)
ParseRW/mariadb/medium            84.22µ ± 1%   83.79µ ± 1%       ~ (p=0.369 n=20)
ParseRW/sqlserver/medium          190.9µ ± 1%   192.8µ ± 1%       ~ (p=0.369 n=20)
ParseRW/oracle/medium             235.9µ ± 2%   236.7µ ± 3%       ~ (p=0.383 n=20)
ParseRW/sqlite/medium             50.64µ ± 1%   50.27µ ± 1%       ~ (p=0.242 n=20)
ParseRW/snowflake/medium          131.0µ ± 0%   130.7µ ± 1%       ~ (p=0.718 n=20)
ParseRW/clickhouse/medium         58.83µ ± 1%   58.20µ ± 1%       ~ (p=0.017 n=20)
ParseFresh/simple_select          1.803µ ± 2%   1.795µ ± 1%       ~ (p=0.317 n=20)
ParseFresh/join                   4.452µ ± 1%   4.420µ ± 1%       ~ (p=0.057 n=20)
ParseFresh/complex                10.45µ ± 1%   10.36µ ± 1%       ~ (p=0.116 n=20)
ParseFresh/insert                 2.576µ ± 1%   2.559µ ± 1%       ~ (p=0.185 n=20)
ParseFresh/update                 2.342µ ± 1%   2.330µ ± 1%       ~ (p=0.465 n=20)
ParseFresh/delete                 1.772µ ± 2%   1.770µ ± 2%       ~ (p=0.784 n=20)
PoolGetPut/serial                 71.88n ± 1%   71.61n ± 0%       ~ (p=0.507 n=20)
ParseError/syntax_mid/parse       1.451µ ± 2%   1.444µ ± 2%       ~ (p=0.952 n=20)
ParseError/syntax_mid/validate    1.332µ ± 2%   1.326µ ± 2%       ~ (p=0.941 n=20)
ParseError/syntax_end/parse       1.606µ ± 1%   1.605µ ± 1%       ~ (p=0.899 n=20)
ParseError/syntax_end/validate    1.597µ ± 2%   1.585µ ± 3%       ~ (p=0.597 n=20)
ParseError/tokenize/parse         684.9n ± 1%   684.8n ± 1%       ~ (p=0.597 n=20)
ParseError/tokenize/validate      1.761µ ± 1%   1.759µ ± 1%       ~ (p=0.963 n=20)
ParseError/long_prefix/parse      44.00µ ± 1%   43.96µ ± 1%       ~ (p=0.968 n=20)
ParseError/long_prefix/validate   40.97µ ± 1%   41.06µ ± 2%       ~ (p=0.758 n=20)
geomean                           5.458µ        5.439µ       -0.35%

                                │     base     │                head                 │
                                │     B/s      │     B/s       vs base               │
ParseE2E/simple_select            29.06Mi ± 1%   29.29Mi ± 1%       ~ (p=0.133 n=20)
ParseE2E/select_where             44.87Mi ± 1%   45.14Mi ± 1%       ~ (p=0.110 n=20)
ParseE2E/join                     37.03Mi ± 2%   36.96Mi ± 1%       ~ (p=0.952 n=20)
ParseE2E/aggregate                33.71Mi ± 1%   33.69Mi ± 1%       ~ (p=0.920 n=20)
ParseE2E/subquery                 42.53Mi ± 1%   42.67Mi ± 1%       ~ (p=0.625 n=20)
ParseE2E/cte                      41.02Mi ± 1%   41.25Mi ± 1%       ~ (p=0.304 n=20)
ParseE2E/window                   50.07Mi ± 1%   50.53Mi ± 2%       ~ (p=0.635 n=20)
ParseE2E/complex                  44.93Mi ± 1%   45.46Mi ± 3%       ~ (p=0.373 n=20)
ParseE2E/insert                   46.58Mi ± 1%   46.82Mi ± 2%       ~ (p=0.673 n=20)
ParseE2E/update                   39.23Mi ± 1%   39.13Mi ± 1%       ~ (p=0.815 n=20)
ParseE2E/delete                   58.37Mi ± 1%   58.58Mi ± 4%       ~ (p=0.703 n=20)
ParseRW/postgresql/medium         37.00Mi ± 1%   37.21Mi ± 1%       ~ (p=0.507 n=20)
ParseRW/mysql/medium              45.52Mi ± 1%   45.51Mi ± 1%       ~ (p=0.909 n=20)
ParseRW/mariadb/medium            42.10Mi ± 1%   42.32Mi ± 1%       ~ (p=0.372 n=20)
ParseRW/sqlserver/medium          34.85Mi ± 1%   34.52Mi ± 1%       ~ (p=0.344 n=20)
ParseRW/oracle/medium             35.53Mi ± 2%   35.42Mi ± 3%       ~ (p=0.365 n=20)
ParseRW/sqlite/medium             40.78Mi ± 1%   41.09Mi ± 1%       ~ (p=0.240 n=20)
ParseRW/snowflake/medium          38.81Mi ± 0%   38.91Mi ± 1%       ~ (p=0.713 n=20)
ParseRW/clickhouse/medium         38.31Mi ± 1%   38.72Mi ± 1%       ~ (p=0.016 n=20)
ParseError/syntax_mid/parse       31.55Mi ± 2%   31.70Mi ± 2%       ~ (p=0.963 n=20)
ParseError/syntax_mid/validate    34.36Mi ± 2%   34.52Mi ± 2%       ~ (p=0.920 n=20)
ParseError/syntax_end/parse       23.16Mi ± 1%   23.18Mi ± 1%       ~ (p=0.899 n=20)
ParseError/syntax_end/validate    23.29Mi ± 2%   23.47Mi ± 4%       ~ (p=0.606 n=20)
ParseError/tokenize/parse         64.05Mi ± 1%   64.06Mi ± 1%       ~ (p=0.597 n=20)
ParseError/tokenize/validate      24.92Mi ± 1%   24.95Mi ± 1%       ~ (p=0.941 n=20)
ParseError/long_prefix/parse      52.49Mi ± 1%   52.55Mi ± 1%       ~ (p=0.968 n=20)
ParseError/long_prefix/validate   56.38Mi ± 1%   56.25Mi ± 2%       ~ (p=0.758 n=20)
geomean                           39.14Mi        39.26Mi       +0.31%

                                │      base      │                 head                  │
                                │      B/op      │     B/op      vs base                 │
ParseE2E/simple_select              704.0 ± 0%       704.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/select_where             1.477Ki ± 0%     1.477Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/join                     1.789Ki ± 0%     1.789Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/aggregate                1.719Ki ± 0%     1.719Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/subquery                 1.609Ki ± 0%     1.609Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/cte                      2.070Ki ± 0%     2.070Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/window                   1.234Ki ± 0%     1.234Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/complex                  4.884Ki ± 0%     4.884Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/insert                     824.0 ± 0%       824.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/update                     736.0 ± 0%       736.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/delete                     400.0 ± 0%       400.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/postgresql/medium         64.40Ki ± 0%     64.40Ki ± 0%       ~ (p=0.235 n=20)
ParseRW/mysql/medium              40.70Ki ± 0%     40.70Ki ± 0%       ~ (p=1.000 n=20)
ParseRW/mariadb/medium            58.51Ki ± 0%     58.50Ki ± 0%       ~ (p=0.563 n=20)
ParseRW/sqlserver/medium          81.25Ki ± 0%     81.25Ki ± 0%       ~ (p=0.183 n=20)
ParseRW/oracle/medium             100.9Ki ± 0%     100.9Ki ± 0%       ~ (p=0.082 n=20)
ParseRW/sqlite/medium             37.30Ki ± 0%     37.30Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/snowflake/medium          73.29Ki ± 0%     73.29Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/clickhouse/medium         32.99Ki ± 0%     32.99Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/simple_select            784.0 ± 0%       784.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/join                   1.867Ki ± 0%     1.867Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/complex                4.961Ki ± 0%     4.961Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/insert                   904.0 ± 0%       904.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/update                   816.0 ± 0%       816.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/delete                   480.0 ± 0%       480.0 ± 0%       ~ (p=1.000 n=20) ¹
PoolGetPut/serial                   0.000 ± 0%       0.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_mid/parse         552.0 ± 0%       552.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_mid/validate      552.0 ± 0%       552.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_end/parse       1.320Ki ± 0%     1.320Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_end/validate    1.320Ki ± 0%     1.320Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseError/tokenize/parse           272.0 ± 0%       272.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/tokenize/validate      1.758Ki ± 0%     1.758Ki ± 0%       ~ (p=1.000 n=20) ¹
ParseError/long_prefix/parse      17.12Ki ± 0%     17.12Ki ± 0%       ~ (p=0.754 n=20)
ParseError/long_prefix/validate   17.07Ki ± 0%     17.07Ki ± 0%       ~ (p=1.000 n=20) ¹
geomean                                        ²                 -0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                                │     base     │                head                 │
                                │  allocs/op   │ allocs/op   vs base                 │
ParseE2E/simple_select            3.000 ± 0%     3.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/select_where             16.00 ± 0%     16.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/join                     15.00 ± 0%     15.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/aggregate                13.00 ± 0%     13.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/subquery                 10.00 ± 0%     10.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/cte                      16.00 ± 0%     16.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/window                   9.000 ± 0%     9.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/complex                  43.00 ± 0%     43.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/insert                   17.00 ± 0%     17.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/update                   13.00 ± 0%     13.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseE2E/delete                   5.000 ± 0%     5.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/postgresql/medium         583.0 ± 0%     583.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/mysql/medium              334.0 ± 0%     334.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/mariadb/medium            470.0 ± 0%     470.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/sqlserver/medium          853.0 ± 0%     853.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/oracle/medium             962.0 ± 0%     962.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/sqlite/medium             318.0 ± 0%     318.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/snowflake/medium          630.0 ± 0%     630.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseRW/clickhouse/medium         336.0 ± 0%     336.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/simple_select          4.000 ± 0%     4.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/join                   16.00 ± 0%     16.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/complex                44.00 ± 0%     44.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/insert                 18.00 ± 0%     18.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/update                 14.00 ± 0%     14.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseFresh/delete                 6.000 ± 0%     6.000 ± 0%       ~ (p=1.000 n=20) ¹
PoolGetPut/serial                 0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_mid/parse       11.00 ± 0%     11.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_mid/validate    11.00 ± 0%     11.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_end/parse       14.00 ± 0%     14.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/syntax_end/validate    14.00 ± 0%     14.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/tokenize/parse         4.000 ± 0%     4.000 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/tokenize/validate      21.00 ± 0%     21.00 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/long_prefix/parse      213.0 ± 0%     213.0 ± 0%       ~ (p=1.000 n=20) ¹
ParseError/long_prefix/validate   213.0 ± 0%     213.0 ± 0%       ~ (p=1.000 n=20) ¹
geomean                                      ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                          │    base     │                head                │
                          │  sec/stmt   │  sec/stmt    vs base               │
ParseRW/postgresql/medium   8.081µ ± 1%   8.035µ ± 1%       ~ (p=0.525 n=20)
ParseRW/mysql/medium        7.432µ ± 1%   7.434µ ± 1%       ~ (p=0.920 n=20)
ParseRW/mariadb/medium      9.358µ ± 1%   9.310µ ± 1%       ~ (p=0.372 n=20)
ParseRW/sqlserver/medium    9.093µ ± 1%   9.180µ ± 1%       ~ (p=0.358 n=20)
ParseRW/oracle/medium       9.829µ ± 2%   9.861µ ± 3%       ~ (p=0.373 n=20)
ParseRW/sqlite/medium       8.441µ ± 1%   8.378µ ± 1%       ~ (p=0.245 n=20)
ParseRW/snowflake/medium    10.08µ ± 0%   10.05µ ± 1%       ~ (p=0.718 n=20)
ParseRW/clickhouse/medium   8.404µ ± 1%   8.315µ ± 1%       ~ (p=0.016 n=20)
geomean                     8.798µ        8.778µ       -0.23%

pkg: github.com/ajitpratap0/GoSQLX/pkg/linter
                   │    base     │                head                │
                   │   sec/op    │   sec/op     vs base               │
LintParallel/rules   14.55m ± 2%   14.58m ± 1%       ~ (p=0.925 n=20)
LintParallel/lint    27.33m ± 1%   27.33m ± 1%       ~ (p=0.989 n=20)
LintRW/postgresql    3.323m ± 1%   3.295m ± 1%       ~ (p=0.049 n=20)
LintRW/mysql         3.800m ± 1%   3.794m ± 1%       ~ (p=0.989 n=20)
LintRW/mariadb       3.471m ± 1%   3.436m ± 1%       ~ (p=0.010 n=20)
LintRW/sqlserver     3.272m ± 2%   3.297m ± 1%       ~ (p=0.265 n=20)
LintRW/oracle        3.923m ± 1%   3.956m ± 1%       ~ (p=0.883 n=20)
LintRW/sqlite        3.233m ± 2%   3.223m ± 2%       ~ (p=0.968 n=20)
LintRW/snowflake     3.308m ± 1%   3.315m ± 1%       ~ (p=0.529 n=20)
LintRW/clickhouse    3.718m ± 0%   3.730m ± 1%       ~ (p=0.142 n=20)
LintRule/L007        2.205m ± 2%   2.207m ± 1%       ~ (p=0.718 n=20)
LintRule/L010        657.7µ ± 8%   658.0µ ± 9%       ~ (p=0.698 n=20)
geomean              3.913m        3.914m       +0.01%

                  │     base     │                head                 │
                  │     B/s      │     B/s       vs base               │
LintRW/postgresql   8.521Mi ± 1%   8.593Mi ± 1%       ~ (p=0.048 n=20)
LintRW/mysql        8.607Mi ± 1%   8.621Mi ± 1%       ~ (p=0.995 n=20)
LintRW/mariadb      8.788Mi ± 1%   8.879Mi ± 1%       ~ (p=0.010 n=20)
LintRW/sqlserver    9.470Mi ± 2%   9.394Mi ± 1%       ~ (p=0.256 n=20)
LintRW/oracle       10.12Mi ± 1%   10.04Mi ± 1%       ~ (p=0.899 n=20)
LintRW/sqlite       8.879Mi ± 2%   8.903Mi ± 2%       ~ (p=0.984 n=20)
LintRW/snowflake    9.427Mi ± 1%   9.408Mi ± 1%       ~ (p=0.507 n=20)
LintRW/clickhouse   8.731Mi ± 0%   8.702Mi ± 0%       ~ (p=0.118 n=20)
geomean             9.054Mi        9.056Mi       +0.02%

                   │      base      │                 head                  │
                   │      B/op      │     B/op      vs base                 │
LintParallel/rules   5.559Mi ± 0%     5.559Mi ± 0%       ~ (p=0.033 n=20)
LintParallel/lint    17.95Mi ± 0%     17.95Mi ± 0%       ~ (p=0.256 n=20)
LintRW/postgresql    1.966Mi ± 0%     1.966Mi ± 0%       ~ (p=0.409 n=20)
LintRW/mysql         2.508Mi ± 0%     2.508Mi ± 0%       ~ (p=0.239 n=20)
LintRW/mariadb       2.280Mi ± 0%     2.280Mi ± 0%       ~ (p=0.380 n=20)
LintRW/sqlserver     1.971Mi ± 0%     1.971Mi ± 0%       ~ (p=0.473 n=20)
LintRW/oracle        2.435Mi ± 0%     2.435Mi ± 0%       ~ (p=0.597 n=20)
LintRW/sqlite        2.173Mi ± 0%     2.173Mi ± 0%       ~ (p=0.542 n=20)
LintRW/snowflake     2.172Mi ± 0%     2.172Mi ± 0%       ~ (p=0.920 n=20)
LintRW/clickhouse    2.440Mi ± 0%     2.440Mi ± 0%       ~ (p=0.578 n=20)
LintRule/L007        92.98Ki ± 0%     92.98Ki ± 0%       ~ (p=1.000 n=20) ¹
LintRule/L010          0.000 ± 0%       0.000 ± 0%       ~ (p=1.000 n=20) ¹
geomean                           ²                 +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                   │     base      │                 head                 │
                   │   allocs/op   │  allocs/op   vs base                 │
LintParallel/rules   68.93k ± 0%     68.93k ± 0%  +0.00% (p=0.002 n=20)
LintParallel/lint    126.7k ± 0%     126.7k ± 0%       ~ (p=0.182 n=20)
LintRW/postgresql    14.13k ± 0%     14.13k ± 0%       ~ (p=1.000 n=20) ¹
LintRW/mysql         17.46k ± 0%     17.46k ± 0%       ~ (p=1.000 n=20) ¹
LintRW/mariadb       15.76k ± 0%     15.76k ± 0%       ~ (p=1.000 n=20) ¹
LintRW/sqlserver     13.87k ± 0%     13.87k ± 0%       ~ (p=0.487 n=20)
LintRW/oracle        16.86k ± 0%     16.86k ± 0%       ~ (p=0.111 n=20)
LintRW/sqlite        15.74k ± 0%     15.74k ± 0%       ~ (p=1.000 n=20) ¹
LintRW/snowflake     15.20k ± 0%     15.20k ± 0%       ~ (p=1.000 n=20) ¹
LintRW/clickhouse    17.66k ± 0%     17.66k ± 0%       ~ (p=1.000 n=20) ¹
LintRule/L007        1.194k ± 0%     1.194k ± 0%       ~ (p=1.000 n=20) ¹
LintRule/L010         0.000 ± 0%      0.000 ± 0%       ~ (p=1.000 n=20) ¹
geomean                          ²                +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                  │    base     │                head                │
                  │  sec/stmt   │  sec/stmt    vs base               │
LintRW/postgresql   10.89µ ± 1%   10.80µ ± 1%       ~ (p=0.049 n=20)
LintRW/mysql        9.179µ ± 1%   9.164µ ± 1%       ~ (p=0.984 n=20)
LintRW/mariadb      9.136µ ± 1%   9.041µ ± 1%       ~ (p=0.010 n=20)
LintRW/sqlserver    11.81µ ± 2%   11.90µ ± 1%       ~ (p=0.256 n=20)
LintRW/oracle       10.66µ ± 1%   10.75µ ± 1%       ~ (p=0.868 n=20)
LintRW/sqlite       9.291µ ± 2%   9.263µ ± 2%       ~ (p=0.963 n=20)
LintRW/snowflake    10.12µ ± 1%   10.14µ ± 1%       ~ (p=0.529 n=20)
LintRW/clickhouse   9.437µ ± 0%   9.467µ ± 1%       ~ (p=0.133 n=20)
LintRule/L007       783.9n ± 2%   784.4n ± 1%       ~ (p=0.713 n=20)
LintRule/L010       233.8n ± 8%   233.9n ± 9%       ~ (p=0.723 n=20)
geomean             5.336µ        5.335µ       -0.01%

pkg: github.com/ajitpratap0/GoSQLX/pkg/sql/keywords
                         │    base     │                head                │
                         │   sec/op    │   sec/op     vs base               │
DetectDialect/empty        1.312n ± 2%   1.312n ± 2%       ~ (p=0.753 n=20)
DetectDialect/generic      274.0n ± 1%   274.7n ± 2%       ~ (p=0.815 n=20)
DetectDialect/postgresql   333.1n ± 5%   334.4n ± 4%       ~ (p=0.899 n=20)
DetectDialect/mysql        298.4n ± 4%   297.9n ± 4%       ~ (p=0.931 n=20)
DetectDialect/sqlserver    344.6n ± 3%   344.9n ± 3%       ~ (p=0.952 n=20)
DetectDialect/oracle       314.2n ± 2%   314.2n ± 2%       ~ (p=0.909 n=20)
DetectDialect/snowflake    425.9n ± 1%   425.4n ± 1%       ~ (p=0.920 n=20)
DetectDialect/mariadb      243.4n ± 3%   243.5n ± 3%       ~ (p=0.703 n=20)
DetectDialect/mixed        368.1n ± 1%   367.9n ± 1%       ~ (p=0.888 n=20)
DetectDialect/large_64KB   418.6µ ± 2%   419.7µ ± 2%       ~ (p=0.738 n=20)
geomean                    379.4n        379.7n       +0.07%

                         │     base     │                head                 │
                         │     B/s      │     B/s       vs base               │
DetectDialect/generic      184.5Mi ± 1%   184.0Mi ± 2%       ~ (p=0.826 n=20)
DetectDialect/postgresql   191.9Mi ± 5%   191.2Mi ± 4%       ~ (p=0.883 n=20)
DetectDialect/mysql        185.6Mi ± 4%   185.8Mi ± 4%       ~ (p=0.952 n=20)
DetectDialect/sqlserver    179.9Mi ± 3%   179.8Mi ± 3%       ~ (p=0.974 n=20)
DetectDialect/oracle       185.1Mi ± 2%   185.2Mi ± 2%       ~ (p=0.947 n=20)
DetectDialect/snowflake    199.3Mi ± 1%   199.5Mi ± 1%       ~ (p=0.952 n=20)
DetectDialect/mariadb      184.2Mi ± 3%   184.2Mi ± 3%       ~ (p=0.698 n=20)
DetectDialect/mixed        191.7Mi ± 1%   191.8Mi ± 1%       ~ (p=0.909 n=20)
DetectDialect/large_64KB   149.5Mi ± 2%   149.1Mi ± 2%       ~ (p=0.738 n=20)
geomean                    183.0Mi        182.9Mi       -0.07%

                         │     base     │                head                 │
                         │     B/op     │    B/op     vs base                 │
DetectDialect/empty        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/generic      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/postgresql   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/mysql        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/sqlserver    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/oracle       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/snowflake    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/mariadb      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/mixed        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/large_64KB   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
geomean                               ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                         │     base     │                head                 │
                         │  allocs/op   │ allocs/op   vs base                 │
DetectDialect/empty        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/generic      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/postgresql   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/mysql        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/sqlserver    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/oracle       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/snowflake    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/mariadb      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/mixed        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
DetectDialect/large_64KB   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
geomean                               ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

pkg: github.com/ajitpratap0/GoSQLX/pkg/sql/tokenizer
                         │    base     │                head                │
                         │   sec/op    │   sec/op     vs base               │
Tokenize/scratch/join      1.033µ ± 3%   1.030µ ± 2%       ~ (p=0.753 n=20)
Tokenize/scratch/complex   2.756µ ± 3%   2.752µ ± 3%       ~ (p=0.779 n=20)
Tokenize/scratch/insert    536.2n ± 3%   533.9n ± 3%       ~ (p=0.989 n=20)
geomean                    1.151µ        1.148µ       -0.27%

                         │     base     │                head                 │
                         │     B/s      │     B/s       vs base               │
Tokenize/scratch/join      116.3Mi ± 3%   116.7Mi ± 2%       ~ (p=0.703 n=20)
Tokenize/scratch/complex   130.8Mi ± 3%   131.0Mi ± 3%       ~ (p=0.779 n=20)
Tokenize/scratch/insert    135.2Mi ± 3%   135.7Mi ± 3%       ~ (p=0.989 n=20)
geomean                    127.2Mi        127.5Mi       +0.28%

                         │     base     │                head                 │
                         │     B/op     │    B/op     vs base                 │
Tokenize/scratch/join      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
Tokenize/scratch/complex   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
Tokenize/scratch/insert    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
geomean                               ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                         │     base     │                head                 │
                         │  allocs/op   │ allocs/op   vs base                 │
Tokenize/scratch/join      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
Tokenize/scratch/complex   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
Tokenize/scratch/insert    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=20) ¹
geomean                               ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

pkg: github.com/ajitpratap0/GoSQLX/pkg/transform
                             │    base     │                head                │
                             │   sec/op    │   sec/op     vs base               │
TransformParse/simple_select   818.5n ± 1%   818.8n ± 1%       ~ (p=0.931 n=20)
TransformParse/join            3.288µ ± 1%   3.311µ ± 1%       ~ (p=0.449 n=20)
TransformParse/complex         8.824µ ± 1%   8.822µ ± 1%       ~ (p=0.542 n=20)
geomean                        2.874µ        2.881µ       +0.23%

                             │     base     │                 head                  │
                             │     B/op     │     B/op      vs base                 │
TransformParse/simple_select     704.0 ± 0%     704.0 ± 0%       ~ (p=1.000 n=20) ¹
TransformParse/join            1.789Ki ± 0%   1.789Ki ± 0%       ~ (p=1.000 n=20) ¹
TransformParse/complex         4.883Ki ± 0%   4.883Ki ± 0%       ~ (p=1.000 n=20) ¹
geomean                        1.818Ki        1.818Ki       +0.00%
¹ all samples are equal

                             │    base    │                head                 │
                             │ allocs/op  │ allocs/op   vs base                 │
TransformParse/simple_select   3.000 ± 0%   3.000 ± 0%       ~ (p=1.000 n=20) ¹
TransformParse/join            15.00 ± 0%   15.00 ± 0%       ~ (p=1.000 n=20) ¹
TransformParse/complex         43.00 ± 0%   43.00 ± 0%       ~ (p=1.000 n=20) ¹
geomean                        12.46        12.46       +0.00%
¹ all samples are equal

Run, raw data and benchstat

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Claude finished @ajitpratap0's task in 14s —— View job


Review of PR #968: TestScanSourceByteBoundaries

Verdict: looks good, with one small gap. I'm not approving, since I can't approve PRs. I read the diff and scanSource, but I didn't run the tests or the mutation pass.

Correction to the earlier review: scanSource doesn't use a c >= 0x80 comparison. It reads a lookup table, srcClass, which is built at pkg/transpiler/transpiler.go:170 with for c := 0x80; c < 256; c++ { t[c] = srcNonASCII }. The mutants therefore change the loop's start value, but the analysis still holds.

Lower boundary

  • "SELECT \x80" must produce only nonASCII. This kills >0x80 and >=0x81, which would both leave 0x80 unclassified.
  • "SELECT \x7f" must produce an empty sourceFeatures{}. This kills >=0x7f.
  • Comparing the whole struct also catches any stray flag being set.
  • The test works because the scanner reads raw bytes, so the invalid UTF-8 input is the right choice.

Upper boundary (optional)

  • The loop's upper bound, c < 256, is not pinned. A mutant such as c < 255 would leave 0xff unclassified, and no case in this test would fail.
  • I'd add one case, {"0xff is non-ASCII", "SELECT \xff", sourceFeatures{nonASCII: true}}. The PR description mentions \x81, but there is no \x81 case. \xff covers the upper end instead.
  • Your 15-mutant list may not include this mutant. If it does, it must be killed elsewhere.

Other points

  • It is test-only, so there is no performance or security impact. Skipping the changelog fragment fits the repo conventions.
  • Treating M12 as an equivalent mutant and handing it to W7-05 seems reasonable.
  • The perf gate shows no regression, which is expected for a test-only change.

@ajitpratap0
ajitpratap0 merged commit 198751b into main Nov 15, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant