Skip to content

Instantly share code, notes, and snippets.

@michael-grunder
Last active August 29, 2015 14:08
Show Gist options
  • Save michael-grunder/4bf697a1378d5a83cc20 to your computer and use it in GitHub Desktop.
Save michael-grunder/4bf697a1378d5a83cc20 to your computer and use it in GitHub Desktop.
CentOS -- Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
[top-secret@top-secret test]# cc -O2 pow2.c -o pow2
[top-secret@top-secret test]# ./pow2 36000000
1000000 => old=0.000000; new=0.010000 [old faster by 0.010000]
1500000 => old=0.020000; new=0.010000 [new faster by 0.010000]
2000000 => old=0.020000; new=0.010000 [new faster by 0.010000]
2500000 => old=0.030000; new=0.020000 [new faster by 0.010000]
3000000 => old=0.030000; new=0.030000 [old faster by 0.000000]
3500000 => old=0.030000; new=0.030000 [old faster by 0.000000]
4000000 => old=0.050000; new=0.030000 [new faster by 0.020000]
4500000 => old=0.050000; new=0.030000 [new faster by 0.020000]
5000000 => old=0.070000; new=0.040000 [new faster by 0.030000]
5500000 => old=0.070000; new=0.050000 [new faster by 0.020000]
6000000 => old=0.080000; new=0.050000 [new faster by 0.030000]
6500000 => old=0.080000; new=0.060000 [new faster by 0.020000]
7000000 => old=0.080000; new=0.060000 [new faster by 0.020000]
7500000 => old=0.100000; new=0.060000 [new faster by 0.040000]
8000000 => old=0.100000; new=0.070000 [new faster by 0.030000]
8500000 => old=0.100000; new=0.080000 [new faster by 0.020000]
9000000 => old=0.130000; new=0.070000 [new faster by 0.060000]
9500000 => old=0.140000; new=0.080000 [new faster by 0.060000]
10000000 => old=0.150000; new=0.090000 [new faster by 0.060000]
10500000 => old=0.150000; new=0.090000 [new faster by 0.060000]
11000000 => old=0.160000; new=0.090000 [new faster by 0.070000]
11500000 => old=0.170000; new=0.100000 [new faster by 0.070000]
12000000 => old=0.170000; new=0.100000 [new faster by 0.070000]
12500000 => old=0.180000; new=0.110000 [new faster by 0.070000]
13000000 => old=0.180000; new=0.120000 [new faster by 0.060000]
13500000 => old=0.190000; new=0.120000 [new faster by 0.070000]
14000000 => old=0.190000; new=0.130000 [new faster by 0.060000]
14500000 => old=0.200000; new=0.130000 [new faster by 0.070000]
15000000 => old=0.200000; new=0.130000 [new faster by 0.070000]
15500000 => old=0.220000; new=0.140000 [new faster by 0.080000]
16000000 => old=0.210000; new=0.150000 [new faster by 0.060000]
16500000 => old=0.220000; new=0.140000 [new faster by 0.080000]
17000000 => old=0.240000; new=0.150000 [new faster by 0.090000]
17500000 => old=0.270000; new=0.160000 [new faster by 0.110000]
18000000 => old=0.270000; new=0.160000 [new faster by 0.110000]
18500000 => old=0.290000; new=0.160000 [new faster by 0.130000]
19000000 => old=0.300000; new=0.160000 [new faster by 0.140000]
19500000 => old=0.300000; new=0.180000 [new faster by 0.120000]
20000000 => old=0.310000; new=0.170000 [new faster by 0.140000]
20500000 => old=0.310000; new=0.190000 [new faster by 0.120000]
21000000 => old=0.320000; new=0.190000 [new faster by 0.130000]
21500000 => old=0.320000; new=0.200000 [new faster by 0.120000]
22000000 => old=0.320000; new=0.200000 [new faster by 0.120000]
22500000 => old=0.340000; new=0.210000 [new faster by 0.130000]
23000000 => old=0.340000; new=0.210000 [new faster by 0.130000]
23500000 => old=0.350000; new=0.220000 [new faster by 0.130000]
24000000 => old=0.350000; new=0.220000 [new faster by 0.130000]
24500000 => old=0.370000; new=0.220000 [new faster by 0.150000]
25000000 => old=0.380000; new=0.220000 [new faster by 0.160000]
25500000 => old=0.380000; new=0.230000 [new faster by 0.150000]
26000000 => old=0.380000; new=0.240000 [new faster by 0.140000]
26500000 => old=0.390000; new=0.240000 [new faster by 0.150000]
27000000 => old=0.390000; new=0.250000 [new faster by 0.140000]
27500000 => old=0.400000; new=0.250000 [new faster by 0.150000]
28000000 => old=0.410000; new=0.260000 [new faster by 0.150000]
28500000 => old=0.420000; new=0.260000 [new faster by 0.160000]
29000000 => old=0.420000; new=0.260000 [new faster by 0.160000]
29500000 => old=0.430000; new=0.270000 [new faster by 0.160000]
30000000 => old=0.440000; new=0.270000 [new faster by 0.170000]
30500000 => old=0.440000; new=0.280000 [new faster by 0.160000]
31000000 => old=0.450000; new=0.280000 [new faster by 0.170000]
31500000 => old=0.450000; new=0.290000 [new faster by 0.160000]
32000000 => old=0.460000; new=0.290000 [new faster by 0.170000]
32500000 => old=0.470000; new=0.300000 [new faster by 0.170000]
33000000 => old=0.470000; new=0.300000 [new faster by 0.170000]
33500000 => old=0.480000; new=0.300000 [new faster by 0.180000]
34000000 => old=0.480000; new=0.310000 [new faster by 0.170000]
34500000 => old=0.500000; new=0.310000 [new faster by 0.190000]
35000000 => old=0.490000; new=0.320000 [new faster by 0.170000]
35500000 => old=0.510000; new=0.320000 [new faster by 0.190000]
36000000 => old=0.510000; new=0.330000 [new faster by 0.180000]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment