You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line counts are included for readability, while token counts remain the more exact technical reference. Parser cost is driven more directly by token volume than by formatting style.
The mid-large and very large cases use benchmark-only analytics-style SQL workloads that approximate practical long-query classes. The current fixtures are about 531 lines / 4,893 tokens and 1,203 lines / 11,529 tokens respectively.
Small query, about 8 lines (70 tokens)
Method
Mean (ms)
Error (ms)
StdDev (ms)
Times slower vs rawsql-ts
rawsql-ts
0.040
0.0136
0.0069
-
node-sql-parser
0.687
0.3009
0.1535
17.0x
Medium query, about 12 lines (140 tokens)
Method
Mean (ms)
Error (ms)
StdDev (ms)
Times slower vs rawsql-ts
rawsql-ts
0.080
0.0461
0.0235
-
node-sql-parser
0.744
0.2732
0.1394
9.3x
Large query, about 20 lines (230 tokens)
Method
Mean (ms)
Error (ms)
StdDev (ms)
Times slower vs rawsql-ts
rawsql-ts
0.168
0.0242
0.0124
-
node-sql-parser
1.560
0.4159
0.2122
9.3x
Mid-large query, about 400-500 lines (5,000 tokens)
Method
Mean (ms)
Error (ms)
StdDev (ms)
Times slower vs rawsql-ts
rawsql-ts
4.438
1.6794
0.8568
-
node-sql-parser
36.520
21.5072
10.9730
8.2x
Very large query, about 1,000+ lines (~12,000 tokens)