Use of OOP in Java vs. C++ Benchmarks

Using OOP constructs in C++ versions of Java benchmarks that use primitive data types themselves is hardly a fair comparison in most cases and directly opposed to the original design ideas behind the two languages (Java strictly OOP, C++ as a superset of C where common use of primitive types is common, and supposed to be).

Of course, through the use of templates and other widely used coding practices, OOP C++ can often match C in performance, hence benchmarks like this can often produce faster code using C++ OOP constructs compared to a Java counterpart that 'drops right to the metal' to use primitives.


This website is hosted for free by free website - Webs.com. Get your own Free Website now!