microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.03k stars 12.49k forks source link

Performance Microbenchmark Infrastructure #31864

Open RyanCavanaugh opened 5 years ago

RyanCavanaugh commented 5 years ago

(Ron to provide details on scenarios to support)

rbuckton commented 5 years ago

There are two kinds of microbenchmarks we would like to capture:

  1. Benchmarking compiler code directly - For example, benchmarking the performance of our ts.filter implementation.
  2. Benchmarking the compiler functionality given a snippet of TypeScript source - This would be similar to benchmarking a fourslash test.

I've been speaking with the C# team about the performance test infrastructure they use:

There are also a few open concerns to address: