GoSQLX vs The Competition
See how GoSQLX compares to other Go SQL parsing libraries
| Feature | GoSQLX | pg_query_go | vitess-sqlparser | sqlparser (xwb1989) |
|---|---|---|---|---|
| Language | Go | Go (C via CGo) | Go | Go |
| Ops/sec | 1.38M+ | ~340K | ~560K | ~220K |
| Memory/op | ~800B | ~12KB | ~4KB | ~2KB |
| Zero-copy | ||||
| Dialects | 8 | 1 (PostgreSQL) | 1 (MySQL) | 1 (MySQL) |
| CGo required | ||||
| WASM support | ||||
| SQL injection detection | ||||
| MCP server | ||||
| SQL formatting | ||||
| SQL linting (30 rules) | ||||
| LSP server | ||||
| Thread-safe | ||||
| Active maintenance |
Performance Comparison
Operations per second parsing a standard SELECT query (higher is better)
GoSQLX1.38M ops/sec
vitess-sqlparser560K ops/sec
pg_query_go340K ops/sec
sqlparser (xwb1989)220K ops/sec
Benchmarked on Apple Silicon with Go 1.26+, object pooling enabled, race detector off. Results averaged over 5 runs.