Boa spends a large proportion of time in realm creation comparitive to actually running the code.
It seems a lot of this is due to building out the global objects on the heap and storing them causing the GC to do multiple collections before the program has even started.
We may wish to look at some sort of snapshot for built-ins or staticlly storing them somewhere (switch of GC for built-ins)
You can load the below profiler into ui.perfetto.dev or chrome developer tools and take a look.

chrome_profiler.json
Boa spends a large proportion of time in realm creation comparitive to actually running the code.
It seems a lot of this is due to building out the global objects on the heap and storing them causing the GC to do multiple collections before the program has even started.
We may wish to look at some sort of snapshot for built-ins or staticlly storing them somewhere (switch of GC for built-ins)
You can load the below profiler into ui.perfetto.dev or chrome developer tools and take a look.

chrome_profiler.json