joshua-anderson
joshua-anderson

Reputation: 4466

Benchmark Nodejs Project

I am trying to build a nodejs web application. As I am adding more code, it would be nice to have a way to test the performance impact of such a change, and if possible what things my app is spending the most time on. I am currently using mocha for my test framework, and I can get some benchmarking information from that, since it reports out how much time each test takes. However, I end up editing the tests occasionally, invalidating all my previous benchmarks.

I was wondering if anybody has any suggestions on nodejs modules or approaches on how to accomplish this.

Upvotes: 2

Views: 704

Answers (1)

Anthony Hatzopoulos
Anthony Hatzopoulos

Reputation: 10557

You will probably want to setup tests for just benchmarking the speed and have your unit tests separate.

You could also use a load tester like Apache Jmeter or a service like BlazeMeter

And if you just want really good node compatible benchmarking library, there is Benchmark.js

Upvotes: 1

Related Questions