Benchmark Results ----------------- Conformance ----------- Checking conformance on crucial corner values... stephan fails at -9,223,372,036,854,775,808 giving 0 sgn fails at 0 giving 1 Checking conformance on 20,000,000 random longs... Running timing tests with 200,000,000 iterations per candidate. Results from Roedys Machine --------------------------- "c:\sys\TestSignum.exe" "Athlon XP 2000+ 1.692GHz 512MB" "Win2K Jet 1.4" ---- Athlon XP 2000+ 1.692GHz 512MB : Win2K Jet 1.4 : Cold ---- nanoseconds : speed % : candidate 12,431,328,842 : 94.18 : wibble 12,773,450,257 : 91.66 : kobzda 13,293,107,084 : 88.07 : piotr 13,839,184,030 : 84.60 : signOf 28,073,022,968 : 41.70 : signHalf 34,089,750,792 : 34.34 : twoifs 67,061,169,506 : 17.46 : sgn 71,749,515,651 : 16.32 : Sun Long.signum 77,760,759,259 : 15.06 : stephan ---- Athlon XP 2000+ 1.692GHz 512MB : Win2K Jet 1.4 : Warm ---- nanoseconds : speed % : candidate 11,699,610,705 : 100.07 : piotr <<<<< best time 12,428,854,505 : 94.20 : wibble 12,793,574,323 : 91.51 : kobzda 13,842,304,260 : 84.58 : signOf 28,080,783,172 : 41.69 : signHalf 34,127,598,060 : 34.31 : twoifs 66,893,135,860 : 17.50 : sgn 71,781,103,743 : 16.31 : Sun Long.signum 77,759,617,214 : 15.06 : stephan "e:\program files\java\jdk1.5.0_06\jre\bin\java.exe" -server com.mindprod.exampl e.TestSignum "Athlon XP 2000+ 1.692GHz 512MB" "Win2K Sun Java1 1.5.0_06 -server " ---- Athlon XP 2000+ 1.692GHz 512MB : Win2K Sun Java1 1.5.0_06 -server : Cold -- nanoseconds : speed % : candidate 27,952,497,593 : 41.88 : piotr 28,830,766,759 : 40.61 : signOf 29,965,782,243 : 39.07 : kobzda 29,965,835,602 : 39.07 : wibble 34,944,613,351 : 33.50 : signHalf 35,368,053,482 : 33.10 : sgn 36,666,874,421 : 31.93 : Sun Long.signum 39,167,338,587 : 29.89 : twoifs 42,835,822,709 : 27.33 : stephan ---- Athlon XP 2000+ 1.692GHz 512MB : Win2K Sun Java1 1.5.0_06 -server : Warm -- nanoseconds : speed % : candidate 22,424,104,181 : 52.21 : signHalf <----- oddly worse on warm test. 28,508,049,766 : 41.07 : signOf 29,628,500,270 : 39.51 : piotr 31,226,297,755 : 37.49 : twoifs 32,873,705,177 : 35.61 : wibble 32,896,675,695 : 35.59 : kobzda 34,759,223,868 : 33.68 : sgn 40,633,409,833 : 28.81 : Sun Long.signum 41,268,530,777 : 28.37 : stephan "c:\program files\java\jre1.5.0_06\bin\java.exe" -client com.mindprod.example.Te stSignum "Athlon XP 2000+ 1.692GHz 512MB" "Win2K Sun Java1 1.5.0_06 -client" ---- Athlon XP 2000+ 1.692GHz 512MB : Win2K Sun Java1 1.5.0_06 -client : Cold -- nanoseconds : speed % : candidate 45,265,055,195 : 25.86 : kobzda 47,253,809,353 : 24.78 : piotr 53,159,737,620 : 22.02 : twoifs 54,309,284,001 : 21.56 : signOf 54,841,999,193 : 21.35 : wibble 62,579,537,064 : 18.71 : signHalf 66,126,816,397 : 17.70 : sgn 68,061,871,551 : 17.20 : Sun Long.signum 89,591,753,980 : 13.07 : stephan ---- Athlon XP 2000+ 1.692GHz 512MB : Win2K Sun Java1 1.5.0_06 -client : Warm -- nanoseconds : speed % : candidate 49,833,707,916 : 23.49 : piotr 49,901,906,527 : 23.46 : kobzda 49,960,364,516 : 23.43 : wibble 52,612,618,364 : 22.25 : twoifs 58,110,133,830 : 20.15 : signOf 59,777,137,597 : 19.59 : signHalf 65,470,678,536 : 17.88 : sgn 65,725,792,244 : 17.81 : Sun Long.signum 96,117,181,653 : 12.18 : stephan Under Eclipse 3.1 "Athlon XP 2000+ 1.692GHz 512MB" "Win2K Eclipse 3.1 JDK 1.5.0_06" nanoseconds : candidate ---- Athlon XP 2000+ 1.692 GHz 512MB : Win2K Eclipse 3.1 JDK 1.5.0_06 : Cold ---- nanoseconds : speed % : candidate 46,027,596,525 : 25.44 : kobzda 49,476,928,492 : 23.66 : piotr 49,788,839,643 : 23.51 : wibble 53,838,348,170 : 21.75 : twoifs 58,081,019,236 : 20.16 : signOf 59,423,185,908 : 19.70 : signHalf 62,806,778,235 : 18.64 : sgn 70,406,942,782 : 16.63 : Sun Long.signum 93,913,926,211 : 12.47 : stephan ---- Athlon XP 2000+ 1.692 GHz 512MB : Win2K Eclipse 3.1 JDK 1.5.0_06 : Warm ---- nanoseconds : speed % : candidate 46,314,284,357 : 25.28 : kobzda 49,009,173,792 : 23.89 : twoifs 49,444,584,158 : 23.68 : piotr 50,209,152,001 : 23.32 : wibble 52,938,597,783 : 22.12 : signOf 58,281,786,093 : 20.09 : signHalf 62,750,791,791 : 18.66 : sgn 70,401,461,918 : 16.63 : Sun Long.signum 94,704,955,239 : 12.36 : stephan