Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static vs Native vs FFI? #1

Open
tomByrer opened this issue Aug 4, 2022 · 2 comments
Open

Static vs Native vs FFI? #1

tomByrer opened this issue Aug 4, 2022 · 2 comments

Comments

@tomByrer
Copy link

tomByrer commented Aug 4, 2022

I can guess what WASM is, but I don't understand what the other just* tests are?
TIA :)

@billywhizz
Copy link
Contributor

hi tom! i'll be writing a blog post to discuss it in detail. there are 4 different tests for just-js

  • native - running the script using the just program as normal
  • static - a statically linked application with all dependencies bundled into it. this can be slightly faster than dynamically linked application in some situations and usually takes up less memory at runtime
  • FFI - using libffi to dynamically import the system libsqlite3 library at run time - this is usually pretty slow as a lot of extra overhead but is something folks use when there is no other option. interestingly, it is still faster than out of the box deno and node libraries.
  • WASM - this is just for comparison - i built SQLite using WASM and a custom VFS for another project and wanted to see how performance compared in a memory only test - interestingly, the deno library most commonly used is also based on WASM! very strange. 🤔

as i say, i'll put something up over next few days with more detail on the benchmark.

@tomByrer
Copy link
Author

tomByrer commented Aug 5, 2022

Nice; I'll hold off doing my blog post until yours is done.

BTW Blueboat is another new JS runtime. Closer to CloudFlare Workers, but OSS. Not sure if out-of-scope for your test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants