summaryrefslogtreecommitdiff
path: root/cs/demo/Ice/throughput/Client.cs
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-12-06 15:19:04 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-12-06 15:19:04 +0000
commit78f0741f68e22570c28092f68775be9004360e9a (patch)
treef5841c83e8c61f56365cb50dca0e0ea47726ef51 /cs/demo/Ice/throughput/Client.cs
parentAdded warmup (diff)
downloadice-78f0741f68e22570c28092f68775be9004360e9a.tar.bz2
ice-78f0741f68e22570c28092f68775be9004360e9a.tar.xz
ice-78f0741f68e22570c28092f68775be9004360e9a.zip
Added warmup
Diffstat (limited to 'cs/demo/Ice/throughput/Client.cs')
-rwxr-xr-xcs/demo/Ice/throughput/Client.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cs/demo/Ice/throughput/Client.cs b/cs/demo/Ice/throughput/Client.cs
index c9103fb8255..41f01586d98 100755
--- a/cs/demo/Ice/throughput/Client.cs
+++ b/cs/demo/Ice/throughput/Client.cs
@@ -76,10 +76,11 @@ public class Client : Ice.Application
// we need to "warm up" the JIT compiler.
//
{
- byte[] emptyBytes = new byte[0];
- string[] emptyStrings = new string[0];
- StringDouble[] emptyStructs = new StringDouble[0];
- Fixed[] emptyFixed = new Fixed[0];
+ byte[] emptyBytes = new byte[1];
+ string[] emptyStrings = new string[1];
+ StringDouble[] emptyStructs = new StringDouble[1];
+ emptyStructs[0] = new StringDouble();
+ Fixed[] emptyFixed = new Fixed[1];
int reps = 10000;
Console.Error.Write("warming up the JIT compiler...");