another runtime
Another JavaScript runtime
You can find the latest jstime binary on the release page
Alternatively, you can install it with Cargo:
$ cargo install jstime$ jstime
Welcome to jstime!
>>$ cat hello-world.js
console.log("hello world");
$ jstime hello-world.js
hello world
For benchmarking or performance-critical scripts, use the --warmup flag to allow V8's JIT compiler to optimize the code:
$ jstime --warmup 10 benchmark.jsThis runs the script 10 times before the actual execution, allowing TurboFan to profile and optimize hot code paths.
Check out the jstime_core README for instructions on how to embed jstime in your Rust application.
jstime provides a minimal and performant JavaScript runtime with essential APIs.
For detailed documentation on all supported features, see Documentation.
** Check out the examples/ directory for runnable code samples!**
console.log(), console.error(), etc.setTimeout(), setInterval(), and clearing functionsfetch(), Headers, Request, ResponseReadableStream, WritableStream, TransformStream for streaming data processingURL and URLSearchParams for URL manipulationperformance.now()Event and EventTarget for event handlingqueueMicrotask() for fine-grained async controlstructuredClone() for deep cloning of complex objectsatob() and btoa() for base64 encoding/decodingTextEncoder and TextDecoder for UTF-8 encoding/decodingcrypto.getRandomValues(), crypto.randomUUID(), crypto.subtle.* (digest, sign, verify, encrypt, decrypt)process.env, process.argv, process.cwd(), process.exit(), process.stdout, process.stderr, process.stdinfs/promises with readFile(), writeFile(), mkdir(), stat(), and moreBuffer for binary data operationsdgram module for UDP networkingimport/export with top-level await, dynamic import(), and Node.js-compatible node_modules resolutionjstime includes comprehensive test coverage including conformance tests for standard APIs:
Run all tests with:
cargo testFor more details on conformance testing, see core/tests/CONFORMANCE_TESTS.md.
No open issues yet, or sync has not completed.