🚀 Help me to become a full-time open-source developer by sponsoring me on Github
Fast TypeScript/JavaScript
transformer without node-gyp
and postinstall script.
node10 | node12 | node14 | node15 | |
---|---|---|---|---|
Windows x64 | ✓ | ✓ | ✓ | ✓ |
Windows x32 | ✓ | ✓ | ✓ | ✓ |
macOS x64 | ✓ | ✓ | ✓ | ✓ |
macOS arm64 | ✓ | ✓ | ✓ | ✓ |
Linux x64 gnu | ✓ | ✓ | ✓ | ✓ |
Linux x64 musl | ✓ | ✓ | ✓ | ✓ |
Linux arm gnueabihf | ✓ | ✓ | ✓ | ✓ |
Linux arm64 gnu | ✓ | ✓ | ✓ | ✓ |
Android arm64 | ✓ | ✓ | ✓ | ✓ |
Fastest TypeScript
transformer.
Detail: @swc-node/core
transform RxJS
AjaxObservable.ts
to ES2015 & CommonJSJavaScript
. Benchmark code: bench
Hardware info:
Model Name: MacBook Pro
Model Identifier: MacBookPro15,1
Processor Name: 6-Core Intel Core i7
Processor Speed: 2.6 GHz
Number of Processors: 1
Total Number of Cores: 6
L2 Cache (per Core): 256 KB
L3 Cache: 12 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB
@swc-node/core x 434 ops/sec ±0.48% (90 runs sampled)
esbuild x 51.82 ops/sec ±3.89% (66 runs sampled)
typescript x 23.91 ops/sec ±12.38% (49 runs sampled)
babel x 22.93 ops/sec ±9.21% (45 runs sampled)
Transform rxjs/AjaxObservable.ts benchmark bench suite: Fastest is @swc-node/core
@swc-node/core x 1,032 ops/sec ±2.68% (72 runs sampled)
esbuild x 928 ops/sec ±1.48% (78 runs sampled)
Transform rxjs/AjaxObservable.ts parallel benchmark bench suite: Fastest is @swc-node/core
Fastest jest TypeScript
transformer.
Detail: @swc-node/jest
Testing in pure
TypeScript
project, compile target isES2018
. Running withnpx jest --no-cache
,ts-jest
was configured withisolatedModules: true
Test Suites: 49 passed, 49 total
Tests: 254 passed, 254 total
Snapshots: 53 passed, 53 total
Time: 54.631 s
Ran all test suites.
✨ Done in 62.71s.
Test Suites: 49 passed, 49 total
Tests: 254 passed, 254 total
Snapshots: 53 passed, 53 total
Time: 10.511 s
Ran all test suites.
✨ Done in 14.34s.
Faster ts-node/register/transpile-only
alternative.
Detail: @swc-node/register
[email protected]
latestrust@nightly
latest
yarn
cargo build --release && yarn build
yarn test