By running adding the following code, I'm able to benchmark this function call.
The below are benchmarks from real physical devices:
- Pixel 2 (Android 9.0; ARM64): 750ms
- Nexus 4 (Android 4.4; ARM32): 2500ms
The above eats about half the startup time on a simple "Hello World" project. It's unusually slow.
To be investigated:
- Supposedly, creating the Isolate with an empty snapshot created at build time should significantly improve the performance.
- We should double check that the v8 .a static library was not compiled in debug mode.