How to load 100 million records into MongoDB with Scala for performance testing?

Some tips : Do not index your collection before inserting, as inserts modify the index which is an overhead. Insert everything, then create index . instead of “save” , use mongoDB “batchinsert” which can insert many records in 1 operation. So have around 5000 documents inserted per batch. You will see remarkable performance gain . … Read more

Is JUnit the right tool to write performance tests? [closed]

There may be better approaches, but there are also some frameworks that help implement benchmarking with JUnit. Some useful practices are warmup runs, statistical evaluations. Take a look at JUnitBenchmarks and JUnitPerf EDIT looks like JUnitBenchmarks has been deprecated since the question has been stated. The project’s maintainers recommend moving on to JMH. Thank you, … Read more

Why is the execution time of this function call changing?

V8 developer here. It’s not a bug, it’s just an optimization that V8 doesn’t do. It’s interesting to see that Firefox seems to do it… FWIW, I don’t see “ballooning to 400ms”; instead (similar to Jon Trent’s comment) I see about 2.5ms at first, and then around 11ms. Here’s the explanation: When you click only … Read more

Testing with JMeter: how to run N requests per second

You could use ConstantThroughputTimer. Quote from JMeter help files below: 18.6.4 Constant Throughput Timer This timer introduces variable pauses, calculated to keep the total throughput (in terms of samples per minute) as close as possible to a give figure. Of course the throughput will be lower if the server is not capable of handling it, … Read more

Entity Framework Vs Stored Procedures – Performance Measure

There are some things you can do to optimize your query. Here on MSDN you can find a nice overview. But to be honest, a stored procedure with manual mapping will always be faster in performance. But ask yourself, how important is performance? In most projects, development time is way more important then performance. What … Read more