diff --git a/src/helma/xmlrpc/Benchmark.java b/src/helma/xmlrpc/Benchmark.java deleted file mode 100644 index c64b3833..00000000 --- a/src/helma/xmlrpc/Benchmark.java +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Copyright 1999 Hannes Wallnoefer - */ - -package helma.xmlrpc; - -import java.util.*; -import java.io.IOException; - -public class Benchmark implements Runnable { - - XmlRpcClient client; - static String url; - static int clients = 16; - static int loops = 100; - - int gCalls = 0, gErrors = 0; - - Date date; - - public Benchmark () throws Exception { - client = new XmlRpcClientLite (url); - - Vector args = new Vector (); - // Some JITs (Symantec, IBM) have problems with several Threads - // starting all at the same time. - // This initial XML-RPC call seems to pacify them. - args.addElement (new Integer (123)); - client.execute ("math.abs", args); - date = new Date (); - date = new Date ((date.getTime()/1000)*1000); - - for (int i=0; i 0 && args.length < 3) { - url = args[0]; - XmlRpc.setKeepAlive (true); - if (args.length == 2) - XmlRpc.setDriver (args[1]); - new Benchmark (); - } else { - System.err.println ("Usage: java helma.xmlrpc.Benchmark URL [SAXDriver]"); - } - } - -}