Java vs. C

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Re: Java vs. C

Postby Casper W. Berg » 11 Jan 2006, 22:54

There are lots of issues to be adressed when talking about the speed on languages. I've seen tests on primitive types that showed that Java and C++ were about equally fast. But when it's a complicated program like a chess engine things are different.
I saw that Dr. Oliver Brausch has source code to his engine OliThink in both C and Java on his homepage, if anyone would like to compare...

Java has an excellent profiling option:
e.g. -Xrunhprof:cpu=samples,heap=sites
that allows you to identify the bottlenecks of your Java program.
There are also programs available to organise the and view the often huge output file easy.
User avatar
Casper W. Berg
 
Posts: 27
Joined: 11 Jan 2006, 22:33

Previous

Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 49 guests