Skip to content

davidgruar/tsnode-perf-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo reproduces the performance issues raised in TypeStrong/ts-node#754.

npm test executes a test run using the same pattern as in a real project of mine. On my machine, loading just three test files takes c. 1,350 ms. This figure seems to scale at least linearly with the number of test files loaded, and possibly in proportion to the total number of modules imported.

npm run demo narrows the issue down to the use of require for each test file. This is basically how the Alsatian test framework works, and, given that other users have reported the issue with more popular frameworks, I presume it is a standard pattern.

About

Repro of a performance issue with ts-node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published