Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

How fast is it compared to CoffeScript compile #5

Closed
basarat opened this issue Feb 24, 2015 · 2 comments
Closed

How fast is it compared to CoffeScript compile #5

basarat opened this issue Feb 24, 2015 · 2 comments

Comments

@basarat
Copy link
Collaborator

basarat commented Feb 24, 2015

Just curious if you've compared. Basically does it do semantic validation? Could we switch that off and just do the syntactic one (needed for valid emit).

@teppeis
Copy link
Owner

teppeis commented Feb 24, 2015

@basarat This is simple benchmark of typescript-simple vs. coffee-script
https://gist.github.com/teppeis/68baae014137778b76c4

For 200 times compilation of tiny equivalent code, typescript-simple is 60% slower than coffee-script.

  • typescript-simple 1264ms
  • coffee-script 798ms

but typescript-simple requires additional 500ms for warm up at first time.

Basically does it do semantic validation? Could we switch that off and just do the syntactic one (needed for valid emit).

Sure! typescript-simple checks semantics (static typing) and throws an error if it's invalid.
But I cannot find the way to switch that off in TypeScript 1.4 Compiler API.

@basarat
Copy link
Collaborator Author

basarat commented Mar 8, 2015

❤️

@basarat basarat closed this as completed Mar 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants