3 ms·
Interesting that creating a context in V8 is so slow. I use JavaScriptCore in a desktop application, and creating a new context using JSGlobalContextCreate() ta
by pavlov 15y ago
Interesting that creating a context in V8 is so slow. I use JavaScriptCore in a desktop application, and creating a new context using JSGlobalContextCreate() takes something on the order of 1-2 ms on a MacBook -- anyway small enough that I don't need to care about starting lots of contexts.
V8 is a great technical achievement, but sometimes I wonder if its reputation as "the fast JS runtime" isn't more due to Google's excellent Chrome marketing (remember the Scott McCloud comic?) than actual measurements. JavaScriptCore is no slouch either, and is easy to integrate into applications with its plain-C API.