summaryrefslogtreecommitdiff
path: root/java/demo/Ice/latency/Client.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /java/demo/Ice/latency/Client.java
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'java/demo/Ice/latency/Client.java')
-rw-r--r--java/demo/Ice/latency/Client.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/java/demo/Ice/latency/Client.java b/java/demo/Ice/latency/Client.java
index dba60c230b2..f82adedd9df 100644
--- a/java/demo/Ice/latency/Client.java
+++ b/java/demo/Ice/latency/Client.java
@@ -21,21 +21,21 @@ class Client extends Ice.Application
return 1;
}
- //
- // A method needs to be invoked thousands of times before the JIT compiler
- // will convert it to native code. To ensure an accurate latency measurement,
- // we need to "warm up" the JIT compiler.
- //
- {
- final int repetitions = 20000;
- System.out.print("warming up the JIT compiler...");
- System.out.flush();
- for(int i = 0; i < repetitions; i++)
- {
- ping.ice_ping();
- }
- System.out.println(" ok");
- }
+ //
+ // A method needs to be invoked thousands of times before the JIT compiler
+ // will convert it to native code. To ensure an accurate latency measurement,
+ // we need to "warm up" the JIT compiler.
+ //
+ {
+ final int repetitions = 20000;
+ System.out.print("warming up the JIT compiler...");
+ System.out.flush();
+ for(int i = 0; i < repetitions; i++)
+ {
+ ping.ice_ping();
+ }
+ System.out.println(" ok");
+ }
long tv1 = System.currentTimeMillis();
final int repetitions = 100000;