8 ms·
There's a section in the README about speed: https://github.com/eslint/eslint#how-does-eslint-performance-compare-to-jshint https://github.com/eslint/eslint#how
by jstayton 12y ago
There's a section in the README about speed: https://github.com/eslint/eslint#how-does-eslint-performance-compare-to-jshint https://github.com/eslint/eslint#how-does-eslint-performance...
"ESLint is slower than JSHint, usually 2-3x slower on a single file. This is because ESLint uses Espree to construct an AST before it can evaluate your code whereas JSHint evaluates your code as it's being parsed. The speed is also based on the number of rules you enable; the more rules you enable, the slower the process.
Despite being slower, we believe that ESLint is fast enough to replace JSHint without causing significant pain."
- antouank 12y agoOh, I see, thanks for pointing it out. Still, speed is not such an important factor for using a linter. I prefer being able to have custom rules and up-to-date stuff like ES6 and JSX.
- mmgutz 12y agoI do javascript full stack and use eslint + vim for many hours/day. I don't notice the slowness. It may be one of those benchmarks that doesn't translate to real world productivity. Eslint has more rules than JSHint, easier to configure (errors display the rule name) and more accurate. The real competition is JSCS.