Date: 2026-02-20 | Tool: Apache Bench | Requests: 10,000 | Concurrency: 10
Tyk version: commit c0413c845222d413ae82d2ce68f805a8839efb23
Version ~ v5.12.0
ab -n 10000 -c 10 http://localhost:8091/gopl/hello/
ab -n 10000 -c 10 http://localhost:8091/jsvm/hello/| Metric | Go Plugin | JSVM | Difference |
|---|---|---|---|
| Requests/sec | 14,247 | 1,130 | Go is ~12.6x faster |
| Mean latency | 0.70 ms | 8.85 ms | Go is ~12.6x lower |
| Wall time | 0.70 s | 8.85 s | |
| CPU time consumed | 2.32 s | 21.51 s | Go uses ~9.3x less CPU |
| CPU utilization | ~331% | ~243% | Go saturates more cores |
The Go plugin middleware is roughly 13x faster than JSVM in throughput and uses ~9x less total CPU time for the same workload. JSVM adds ~8ms overhead per request from the JavaScript VM execution context. Go's higher CPU utilization (331% vs 243%) shows it effectively parallelizes across cores, while JSVM is bottlenecked by VM execution.