Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
abraxas
· 3y ago · 0 comments
Typescript transpiles to JS with a bunch of runtime checks woven in resulting in much slower code than equivalent barebones JS. There are benchmarks that show this.
Comments
[–]
yokljo
3y ago
This is false. TypeScript does not add any run time checks, but it does encourage you to add some yourself.
[–]
fredrikholm
3y ago
Could you share some of these benchmarks? This is news to me; AFAIK TS transpiles into minimized JS and has 1:1 runtime characteristics.