Upgrade to Pro — share decks privately, control downloads, hide ads and more …

@swc-node/jest を使って テストを高速化する/jsfes-2022

@swc-node/jest を使って テストを高速化する/jsfes-2022

Kenichiro Kishida

July 16, 2022
Tweet

More Decks by Kenichiro Kishida

Other Decks in Technology

Transcript

  1. transformSync : 
 esbuild x 510 ops/sec ±1.28% (88 runs

    sampled ) @swc-node/core x 438 ops/sec ±1.00% (88 runs sampled ) typescript x 28.83 ops/sec ±10.20% (52 runs sampled ) babel x 24.21 ops/sec ±10.66% (46 runs sampled ) Transform rxjs/AjaxObservable.ts benchmark bench suite: Fastest is esbuil d transform paralle l @swc-node/core x 1,253 ops/sec ±0.90% (75 runs sampled ) esbuild x 914 ops/sec ±1.31% (77 runs sampled ) Transform rxjs/AjaxObservable.ts parallel benchmark bench suite: Fastest is @swc-node/cor e yarn benc h @swc-node/core x 1,123 ops/sec ±0.95% (77 runs sampled ) esbuild x 847 ops/sec ±3.74% (71 runs sampled ) Transform rxjs/AjaxObservable.ts parallel benchmark bench suite: Fastest is @swc-node/cor https://github.com/swc-project/swc-node