summaryrefslogtreecommitdiff
path: root/java/demo/Ice/latency/Client.java
diff options
context:
space:
mode:
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;