Skip to content

Benchmark

salboaie edited this page Jul 25, 2012 · 9 revisions

Take 5 minutes to study the source code for the swarm for benchmarking here

How to start benchmark:

In an adaptor start "BenchMark.js" benchmark: startSwarm("BenchMark.js","ctor",48000);

In a SwarmClient: client.("BenchMark.js","ctor",48000);

Parameters: 48000 is the number of phases that will be started in parallel in 3 nodes (adaptors) and the end, the "printResults" phase will print the number of phases finished per second.

Something like: "Benchmark results: 30000 phases per second! Time spent: 1.2 seconds.

In above example, in 1.2 seconds, 48000 messages got executed.

Clone this wiki locally