made number of loops configurable

This commit is contained in:
hns 2001-01-24 14:30:31 +00:00
parent f7bc885823
commit 9310c6a09b

View file

@ -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);