Re:Running PHP fast at the edge with WebAssembly
by tambourine_man on Friday May 24, 2024 @10:40AM
(#40466738)
But in this case, it's running PHP, which doesn't have a long-running model, it always cold starts, and it does so really fast natively. I can't see how it could be faster in WASM.
5 ms cold starts vs 500+ ms for containers
3 MB memory vs 35 MB for a similar container
No context switch between different tenants' code
No virtualization overhead
I'm sure these numbers would be different today, for instance with Firecracker, but there's probably still a memory and/or cold start advantage to V8 isolates.
https://blog.cloudflare.com/cloud-computing-without-containe...