3 ms·
How does a cold start perform, I'm guessing with sandboxing of v8 vs a whole new container, and deserialization of a single script into a free sandbox v8 slot (
by sitepodmatt 9y ago
How does a cold start perform, I'm guessing with sandboxing of v8 vs a whole new container, and deserialization of a single script into a free sandbox v8 slot (perhaps they store the AST or preJITed code for even faster start? - not familar with v8 internals) it is much faster than cold starting nodejs on AWS lambda?
- kentonv 9y agoThis is one of those questions I love answering. :) It turns out V8 is very well-optimized for loading JavaScript quickly, since that's exactly what it needs to do when loading a web site with a user waiting. We're seeing average cold start times under 5ms.
- hashseed 9y agoThere are some features in V8 to make loading a script even faster. I'd be glad to connect over these features on twitter (same username). I implemented them.