Skip to content

Startup penalty vs QuickJS/node.js #301

@richarddd

Description

@richarddd

I'm curious about the startup performance vs QuickJS and even Node.js.

For a super dummy test logging to console I'm getting significantly longer startup times vs QuickJS and Node.js

There is curl and libuv but any idea what might be the cause for the additional latency?

It's 2x longer than node and 23x longer than QuickJS

Btw, thanks for a great library :)

Txiki

time ./tjs -e "console.log(1)"
1
./tjs -e "console.log(1)"  0.10s user 0.01s system 96% cpu 0.115 total

QuickJS

time ./qjs -e "console.log(1)"
1
./qjs -e "console.log(1)"  0.00s user 0.00s system 63% cpu 0.005 total

Node.js

time node -e "console.log(1)"
1
node -e "console.log(1)"  0.04s user 0.01s system 94% cpu 0.054 total

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions