diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-12-06 15:22:27 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-12-06 15:22:27 +0000 |
commit | d95d555d66b46e234566de718fabb6fe060fff02 (patch) | |
tree | b7bbdaf2d9fc2b68d5699a34f332a83b9e516bb4 /java/demo/Ice/throughput/Client.java | |
parent | Added warmup (diff) | |
download | ice-d95d555d66b46e234566de718fabb6fe060fff02.tar.bz2 ice-d95d555d66b46e234566de718fabb6fe060fff02.tar.xz ice-d95d555d66b46e234566de718fabb6fe060fff02.zip |
Use arrays of length 1 for warmup
Diffstat (limited to 'java/demo/Ice/throughput/Client.java')
-rw-r--r-- | java/demo/Ice/throughput/Client.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/java/demo/Ice/throughput/Client.java b/java/demo/Ice/throughput/Client.java index fc051b075c9..99bfdcef97a 100644 --- a/java/demo/Ice/throughput/Client.java +++ b/java/demo/Ice/throughput/Client.java @@ -78,10 +78,12 @@ public class Client extends 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]; + emptyFixed[0] = new Fixed(); final int repetitions = 10000; System.out.print("warming up the JIT compiler..."); |