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
|`bun run test-node-demo`|`node --expose-gc node-run/run.js --demo --light`| Node.js demo tests only |
71
+
72
+
**Note:** The `--light` flag means the tests will only parse the SQL and not execute the queries. This is faster and useful for identifying SQL compilation issues.
73
+
74
+
### Configuration Options
75
+
76
+
You can customize test execution by passing flags to the run scripts:
77
+
78
+
| Flag | Description |
79
+
|------|-------------|
80
+
|`--light`| Only parse SQL, don't execute queries (faster) |
81
+
|`--demo`| Run demo tests only (quick validation during devleopment of test parser) |
82
+
|`--concurrency=N`| Set number of worker threads (Bun2 only) |
83
+
|`--include=PATTERN`| Only run test files matching regex pattern |
84
+
|`--exclude=PATTERN`| Skip test files matching regex pattern |
85
+
|`--printAllErrors`| Print all errors instead of sampling |
|`--mimic=DIALECTS`| Test against specific SQL dialects |
88
+
89
+
## Test Runners
90
+
91
+
This project includes three test runner implementations:
92
+
93
+
-**`bun2-run/`** - **(Recommended)** Bun implementation using persistent worker pool for true multi-threading across multiple CPU cores. Provides the best performance by utilizing all available CPU cores with parallel workers.
94
+
-**`bun-run/`** - Bun-optimized implementation leveraging Bun's native file I/O and faster runtime (single-threaded, 2-3x faster than Node.js)
95
+
-**`node-run/`** - Original Node.js implementation using paralleljs for multi-threading (legacy, slowest)
96
+
97
+
### Performance Comparison
98
+
99
+
| Runner | Threading | Performance | Use Case |
100
+
|--------|-----------|-------------|----------|
101
+
|**Bun2**| Multi-threaded workers |**Fastest**| Recommended for all testing |
102
+
| Bun | Single-threaded | Fast (2-3x vs Node) | Legacy Bun support |
0 commit comments