commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Rossi <>
Subject FastMathTestPerformance results misleading
Date Fri, 01 Apr 2011 00:23:03 GMT

This test shows that Math.sin() is faster than FastMath.sin(), but this is 
misleading because the test operates over the domain 0 < x <1, whereas 
legal arguments to sin() are all finite numbers.   In particular, its when 
|x| is large that performance of the Math trig functions really drops off.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message