diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-12-06 15:19:04 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-12-06 15:19:04 +0000 |
commit | 78f0741f68e22570c28092f68775be9004360e9a (patch) | |
tree | f5841c83e8c61f56365cb50dca0e0ea47726ef51 /cs/demo/Ice/throughput/Client.cs | |
parent | Added warmup (diff) | |
download | ice-78f0741f68e22570c28092f68775be9004360e9a.tar.bz2 ice-78f0741f68e22570c28092f68775be9004360e9a.tar.xz ice-78f0741f68e22570c28092f68775be9004360e9a.zip |
Added warmup
Diffstat (limited to 'cs/demo/Ice/throughput/Client.cs')
-rwxr-xr-x | cs/demo/Ice/throughput/Client.cs | 9 |
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..."); |