Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 929 Bytes

README.md

File metadata and controls

41 lines (24 loc) · 929 Bytes

ava-compare


Base on this Blog, Ava seems have some performance issue, so I want to compare it with other framworks.

In this project we only run single assertion for 1000 times per each framework.

Mocha

npm run mocha:sync

output: 454ms


npm run mocha:async 
output: 2m

Ava

npm run ava:sync
output: 82ms

npm run ava:async
output: 294ms

Jest

npm run jest:sync
output: 1.406s

npm run jest:async
output: 104.334s

Conclusion

As we can see Ava is much faster than Mocha/Jest.

Especially in Async test case, Jest and mocha always run in serial, so it last minutes, but ava run all the async case in parallel. So it much faster.

Currently we only run very simple test case to compare the performance between these framwork, maybe we need more test cases get more details of the results.