**DONOTDELETE**
(Unregistered)
10/15/03 05:23 AM
Re: JNI performance

I tried using the JNI, Math and StrictMath to calculate a loop of 1000 runs of cos( 0.133 ). This is how long the 1000 runs took, in seconds:
JNI (2.293), Math (2.160), StrictMath (2.160) using j2sdk1.4.2_01 and Visual C++ for the dll.
May be sun has managed to improve the speed of its Math/StrictMath classes, as the JNI looked a little slower than the others.
Does anybody know what's going on?
Thanx,
Fabricio.



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.