Benchmark suite comparing two JSON Language Server implementations. Measures latency, throughput, and memory across 8 LSP scenarios.
- light-json-lsp — Rust
- vscode-json-languageservice — Node.js (Microsoft)
startup · open+diagnostics · completion · hover · formatting · documentSymbol · edit+diagnostics · memory
Each scenario runs against three fixture sizes (1KB, 50KB, 500KB).
bun run bench # 20 iterations, 5 warmup
bun run bench:quick # 5 iterations, 2 warmup
bun run bench:full # 50 iterations, 10 warmup-n, --iterations <n> Measured iterations (default: 20)
-w, --warmup <n> Warmup iterations (default: 5)
-s, --scenario <name> Run a single scenario
-f, --fixture <size> small | medium | large | all
-o, --output <path> JSON output path
- Console tables with p50/p95/mean latencies per server
- Side-by-side comparison with speedup ratios
- Memory (RSS) comparison
- JSON export to
results/