Typescript project build time performance comparison (tsc vs esbuild)
Lets have a simple Typescript Express base API to test the build time differences:
- Install typescript, esbuild dependencies and add build config files.
- Setup package.json build, start commands.
Now let’s check the build time for: tsc
Build
Output:
Now let’s check the build time for: esbuild
Build
Output:
Run
Output:
Performance comparison
As per the build time result it’s clear that esbuild perform much better than default Typescript built in tsc in terms of build timing.
For more Benchmark details,fallow the Link