Engineering / Gray
Gray’s architecture
Grayworth develops Gray’s language, bytecode, native compiler, networking, database continuations, and browser delivery tools.
Execution path
Implemented surface
Platform components
Language, runtime, native execution, I/O, data, and tooling move together instead of arriving as separate infrastructure decisions.
Runtime qualification
Runtime benchmarks
Gray is shown beside the same-host runtimes it was actually measured against: PHP-FPM, Node.js, Go, and Gray under the published plaintext qualification rule.
The claim is deliberately narrow: one fixture, one host class, exact responses, corrected latency, and a fixed acceptance boundary. It is evidence for this runtime path, not a universal language ranking.
Throughput ceiling
2× Gohighest qualifying requested rate before either delivery or corrected-p99 exits the acceptance band
| Runtime | Requested | Achieved | p99 |
|---|---|---|---|
| PHP-FPM | 8k req/s | 7,961 req/s | 48.03 ms |
| Node.js | 12k req/s | 11,940 req/s | 10.04 ms |
| Go | 30k req/s | 29,844 req/s | 5.68 ms |
| Gray | 60k req/s | 59,260 req/s | 85.76 ms |
p99 acceptance boundary
<100 ms at 60k/sGray remains inside the published corrected-p99 acceptance boundary
| Runtime | p99 at 8k/s | p99 at qualifying point |
|---|---|---|
| PHP-FPM | 48.03 ms | 48.03 ms at 8k/s |
| Node.js | 6.46 ms | 10.04 ms at 12k/s |
| Go | 2.84 ms | 5.68 ms at 30k/s |
| Gray | 3.13 ms | 85.76 ms at 60k/s |
Performance work
Profiling and latency
Latency profiles turn architecture choices into visible operating constraints.

Database architecture
802.82 ms
became 4.60 ms.
Synchronous PostgreSQL exposed the blocked-reactor queue. Readiness-driven libpq removed the architectural bottleneck. Compiler-hidden continuations then restored ordinary-looking handler code without assigning waits to general task workers.
PostgreSQL continuation path
174× lower p99from the original synchronous path to compiler-hidden continuation
| Architecture | p99 latency |
|---|---|
| Synchronous | 802.82 ms |
| Readiness-driven | 32.80 ms |
| Compiler continuation | 4.60 ms |
Separate qualification runs documenting the architectural progression. Not a controlled causal A/B.