Replies: 2 comments
-
It looks like Bun has similar build-ins. More info here https://github.com/oven-sh/bun/blob/1da75791dae29ec10209c76e71b4f604471dabc8/packages/bun-types/jsc.d.ts#L1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm gonna leave this tweet here https://twitter.com/jarredsumner/status/1654948110911815681 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the library works in NodeJS (=>18.0.0) which means we get to benchmark our code only against the V8 engine which NodeJS uses.
Since this library is CLI-first we cannot really target browser environment so Firefox is out of the question.
But as of right now there are 3 major non-browser JS environments: NodeJS (V8), Deno (V8), Bun (JavaScriptCode).
Since Deno uses V8 behind the scenes we shouldn't have any problems running
isitfast
in Deno. But since it uses V8 just like NodeJS there is no added benefit in doing so.But when it comes to Bun it could be very interesting to see the difference in performance characteristics since for example JavaScriptCore has a very different speculative optimization process than V8 and I believe GC also works differently.
However we heavily depend on V8 build-ins such as
%PrepareFunctionForOptimization
/%OptimizeFunctionOnNextCall
/%NeverOptimizeFunction
/%CollectGarbage
which are not present in Bun (at least not to my knowledge).Beta Was this translation helpful? Give feedback.
All reactions