You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FastMath utility often gives better performance than Java's standard Math class. These are the results of a benchmark on my PC of StrictMath, FastMath, and Math.
The integer number is the number of nanoseconds per operation (smaller is better) and the float number is the percentage of the time of the StrictMath class (smaller is better, < 1 is faster than StrictMath). As you can see, the exp() function is 2.3x faster in the FastMath class than standard.
The text was updated successfully, but these errors were encountered:
I will look into it, thanks for the overall benchmarking.
I guess most of the exponential functions aren't even needed with much accuracy in the mod so it may be worth to implement them with low-degree taylor polynomials and tweaked development points.
The FastMath utility often gives better performance than Java's standard Math class. These are the results of a benchmark on my PC of StrictMath, FastMath, and Math.
The integer number is the number of nanoseconds per operation (smaller is better) and the float number is the percentage of the time of the StrictMath class (smaller is better, < 1 is faster than StrictMath). As you can see, the exp() function is 2.3x faster in the FastMath class than standard.
The text was updated successfully, but these errors were encountered: