Started Dec 1RustApache-2.0 license

swc-project/swc-next

A fast JavaScript and TypeScript compiler in Rust, and the next major version of SWC.

github.com/swc-project/swc-next

Leaderboard

13 participants
Rank 1@mevlanayalcin×1.1014 subsLast submission 5 h ago
Rank 2@ammonwk×1.044 subsLast submission 11 h ago
Rank 3@justanotherinternetguy×1.011 subLast submission 17 h ago

Start the project

~/xmas/swc-next/startCodSpeedHQ/codspeed 395

The case for a faster swc-next

~/xmas/swc-next/why

SWC compiles the JavaScript and TypeScript of Next.js, Deno, Rspack and Parcel projects, on every save and every build. swc-next is set to become SWC's next major version, so the speedups made here reach those dev servers and builds.

What to make faster

~/xmas/swc-next/targets

Your speedup counts every frozen benchmark. Here is what each suite measures.

  1. tasks/benchmark/benches/parser.rs parserParsing speed: turns 11 real-world sources into an AST, from jQuery and Angular to TypeScript's own compiler, a TSX app and heavy type definitions.
  2. tasks/benchmark/benches/visit.rs visitAST traversal speed: walks the parsed TypeScript compiler and a TSX file with the read-only visitor, the mutable visitor and the traverser.
  3. tasks/benchmark/benches/semantic.rs semanticSemantic analysis speed: scopes, bindings and references over an already parsed AST. Parsing is not timed.
  4. tasks/benchmark/benches/type_strip.rs type_stripTypeScript type stripping speed, source text in, JavaScript out, on three type-heavy files (Astro config, Effect Schema, Hono types).
  5. tasks/benchmark/benches/minifier.rs minifierMinification speed on Underscore, Angular and the TypeScript compiler. Parsing is not timed.

How it is measured

~/xmas/swc-next/measure

CodSpeed runs the frozen benchmarks on every submission and measures walltime on CodSpeed Macro Runners Gen 2 ↗. Your score is the speedup of your best submission.