made number of loops configurable
This commit is contained in:
parent
f7bc885823
commit
9310c6a09b
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ public class Benchmark implements Runnable {
|
||||||
XmlRpcClient client;
|
XmlRpcClient client;
|
||||||
static String url;
|
static String url;
|
||||||
static int clients = 8;
|
static int clients = 8;
|
||||||
|
static int loops = 200;
|
||||||
|
|
||||||
int gCalls = 0, gErrors = 0;
|
int gCalls = 0, gErrors = 0;
|
||||||
|
|
||||||
Date date;
|
Date date;
|
||||||
|
@ -47,7 +49,7 @@ public class Benchmark implements Runnable {
|
||||||
// ECHO DATE
|
// ECHO DATE
|
||||||
// args.addElement (date);
|
// args.addElement (date);
|
||||||
|
|
||||||
for (int i=0; i<100; i++) {
|
for (int i=0; i<loops; i++) {
|
||||||
|
|
||||||
// ABS INT
|
// ABS INT
|
||||||
Integer ret = (Integer) client.execute ("math.abs", args);
|
Integer ret = (Integer) client.execute ("math.abs", args);
|
||||||
|
|
Loading…
Add table
Reference in a new issue