OK, I couldn't help myself: reran Java test code on JDK7. Wow: Java 8 Primitive test n=1.0e+06 completed in 0.108 seconds Java 8 ArrayList test n=1.0e+06 completed in 1.804 seconds
Java 7 Primitive test n=1.0e+06 completed in 0.165 seconds Java 7 ArrayList test n=1.0e+06 completed in 1.908 seconds C#/Mono Primitive test n=1000000 completed in 0.2528684 seconds C#/Mono ArrayList test n=1000000 completed in 1.0193116 seconds Scala Array Test and for loops. n=1.0e+06 completed in 0.961 seconds Scala Array Test and while loops. n=1.0e+06 completed in 0.130 seconds Two big surprises for me: Scala Array[Int] + JDK7 actually ran significantly *faster* than Java 7 int[] JDK8 int[] runs much faster than JDK7 int[]. I figured the big optimizations on simple tasks were already realized long ago. "Generally, if running Eclipse on top of IKVM on top of the CLR has lower memory consumption AND faster startup time than "the usual way" and this is not even raising the eye brow of the "Java community" I really wonder what can ..." This is absolutely raising my eyebrows. I am surprised to hear that. I would be interested into more specifics of what is causing the difference there. I feel the same sentiment though in reverse. Why are so many people, even in a Java group, pointing out how much faster C# is with integer arrays, when benchmarks indicate the exact opposite? BTW, from memory, Microsoft CLR on Windows which is much faster than the Mono CLR, but Java JDK is faster than both on these types of tests (int[] performance) -- You received this message because you are subscribed to the Google Groups "Java Posse" group. To view this discussion on the web visit https://groups.google.com/d/msg/javaposse/-/t_L_SXSOfTsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
