Talk:Comparison of C Sharp and Java: Difference between revisions

Content deleted Content added
Tbjablin (talk | contribs)
Tbjablin (talk | contribs)
Line 82:
 
Also, looking at your benchmarks they are quite clearly dominated by Java's slow startup time. You might consider benchmarks that run for atleast a minute. Compare your results with [[http://www.osnews.com/story.php?news_id=5602]] at that time Java was outprerforming C# in every area except trig performance, but things may have changed since then. [[User:Tbjablin|Tbjablin]] 01:33, 24 Apr 2005 (UTC)
 
So I tried to repeat your benchmark. Here's what I found:
cat Test.java
public class Test {
 
public static void main(String[] args) {
long time = System.currentTimeMillis();
for(int i = 1; i < 1000000000; i++) {
}
System.out.println((System.currentTimeMillis() - time));
}
}
 
java -hotspot Test
1612
java -server Test
3
 
 
[[User:Tbjablin|Tbjablin]] 03:05, 24 Apr 2005 (UTC)
 
== Event Handling? ==