CPU Optimizations


Recommended Posts

3.141592653589793238462643383279502884197169399375105820974944592307\

81640628620899862803482534211706798214808651328230664709384460955058\

22317253594081284811174502841027019385211055596446229489549303819644\

28810975665933446128475648233786783165271201909145648566923460348610\

45432664821339360726024914127372458700660631558817488152092096282925\

40917153643678925903600113305305488204665213841469519415116094330572\

70365759591953092186117381932611793105118548074462379962749567351885\

75272489122793818301194912983367336244065664308602139494639522473719\

07021798609437027705392171762931767523846748184676694051320005681271\

45263560827785771342757789609173637178721468440901224953430146549585\

37105079227968925892354201995611212902196086403441815981362977477130\

99605187072113499999983729780499510597317328160963185950244594553469\

08302642522308253344685035261931188171010003137838752886587533208381\

42061717766914730359825349042875546873115956286388235378759375195778\

18577805321712268066130019278766111959092164201989380952572010654858\

63278865936153381827968230301952035301852968995773622599413891249721\

77528347913151557485724245415069595082953311686172785588907509838175\

46374649393192550604009277016711390098488240128583616035637076601047\

10181942955596198946767837449448255379774726847104047534646208046684\

25906949129331367702898915210475216205696602405803815019351125338243\

00355876402474964732639141992726042699227967823547816360093417216412\

19924586315030286182974555706749838505494588586926995690927210797509\

30295532116534498720275596023648066549911988183479775356636980742654\

25278625518184175746728909777727938000816470600161452491921732172147\

72350141441973568548161361157352552133475741849468438523323907394143\

33454776241686251898356948556209921922218427255025425688767179049460\

16534668049886272327917860857843838279679766814541009538837863609506\

80064225125205117392984896084128488626945604241965285022210661186306\

74427862203919494504712371378696095636437191728746776465757396241389\

08658326459958133904780275900994657640789512694683983525957098258226\

20522489407726719478268482601476990902640136394437455305068203496252\

45174939965143142980919065925093722169646151570985838741059788595977\

29754989301617539284681382686838689427741559918559252459539594310499\

72524680845987273644695848653836736222626099124608051243884390451244\

13654976278079771569143599770012961608944169486855584840635342207222\

58284886481584560285060168427394522674676788952521385225499546667278\

23986456596116354886230577456498035593634568174324112515076069479451\

09659609402522887971089314566913686722874894056010150330861792868092\

08747609178249385890097149096759852613655497818931297848216829989487\

22658804857564014270477555132379641451523746234364542858444795265867\

82105114135473573952311342716610213596953623144295248493718711014576\

54035902799344037420073105785390621983874478084784896833214457138687\

51943506430218453191048481005370614680674919278191197939952061419663\

42875444064374512371819217999839101591956181467514269123974894090718\

64942319615679452080951465502252316038819301420937621378559566389377\

87083039069792077346722182562599661501421503068038447734549202605414\

66592520149744285073251866600213243408819071048633173464965145390579\

62685610055081066587969981635747363840525714591028970641401109712062\

80439039759515677157700420337869936007230558763176359421873125147120\

53292819182618612586732157919841484882916447060957527069572209175671\

16722910981690915280173506712748583222871835209353965725121083579151\

36988209144421006751033467110314126711136990865851639831501970165151\

16851714376576183515565088490998985998238734552833163550764791853589\

32261854896321329330898570642046752590709154814165498594616371802709\

81994309924488957571282890592323326097299712084433573265489382391193\

25974636673058360414281388303203824903758985243744170291327656180937\

73444030707469211201913020330380197621101100449293215160842444859637\

66983895228684783123552658213144957685726243344189303968642624341077\

32269780280731891544110104468232527162010526522721116603966655730925\

47110557853763466820653109896526918620564769312570586356620185581007\

29360659876486117910453348850346113657686753249441668039626579787718\

55608455296541266540853061434443185867697514566140680070023787765913\

44017127494704205622305389945613140711270004078547332699390814546646\

45880797270826683063432858785698305235808933065757406795457163775254\

20211495576158140025012622859413021647155097925923099079654737612551\

76567513575178296664547791745011299614890304639947132962107340437518\

95735961458901938971311179042978285647503203198691514028708085990480\

10941214722131794764777262241425485454033215718530614228813758504306\

33217518297986622371721591607716692547487389866549494501146540628433\

66393790039769265672146385306736096571209180763832716641627488880078\

69256029022847210403172118608204190004229661711963779213375751149595\

01566049631862947265473642523081770367515906735023507283540567040386\

74351362222477158915049530984448933309634087807693259939780541934144\

73774418426312986080998886874132604720

real 0m35.209s

user 0m34.574s

sys 0m0.125s

CPU (x2 because it's a Duo):

vendor_id : GenuineIntel

cpu family : 6

model : 15

model name : Intel® Core2 Duo CPU T7500 @ 2.20GHz

stepping : 10

microcode : 0x95

cpu MHz : 2201.000

cache size : 4096 KB

physical id : 0

siblings : 2

core id : 0

cpu cores : 2

apicid : 0

initial apicid : 0

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 10

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida dtherm tpr_shadow vnmi flexpriority

bogomips : 4388.90

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

RAM: 2064444 kB

Kernel: GNU/Linux 3.8.4-102.fc17.i686.PAE #1 SMP

I definitely can shave seconds off with my Kernel customizations. Its like F1 lol Shaving seconds off is rock hard. I imagine it will depend on what else is running on the machine at the time. It might be better to drop to a root prompt and run it from there before the OS has change to load anything else. See if that makes much difference.

We have covered a good set of results, I was thinking that someone working on some deep research military facility or from a super computer would post times over under 1sec lol! No such luck

That would be awesome! We are still missing MIPS, Alpha, and PowerPC results too, though. It seems like there isn't much variation within the same architecture, but there is much more variance between architectures. That might be partially due to the limited results we have for everything other than x86; I'm not quite sure.

Off Topic: Why is there no "Like This" button on any of your posts? It doesn't show up for any of your posts in this thread or your compiling upstream kernel guide thread, but I can see it for everyone else (other than myself, of course).

Thanks for the extra information! Are you running the armel Debian image or the armhf Raspbian variant? Your Raspberry Pi results are very similar to the result I posted of Debian running on an old smartphone. If you are running the armel version, then that comparison makes sense, because the processor and clock speed are almost identical between the two devices. If you are running the armhf variant, then it makes less sense, because the Raspberry Pi's hardware floating unit should be much faster than the software floating point emulation used to obtain my result.

I'm using the Raspbian image. If I had another SD card I'd pop the armel image on it and post the result. Any other takers for that? :)

Off Topic: Why is there no "Like This" button on any of your posts? It doesn't show up for any of your posts in this thread or your compiling upstream kernel guide thread, but I can see it for everyone else (other than myself, of course).

He doesn't have the 'Member' badge under his avatar either, I wonder if this has something to do with his group being set to 'Restricted (Profile)'?

So I went back to compiling the latest 3.8.8 Stable kernel last night and there is a significant performance decrease, With this test and overall system performance. I am getting >30Seconds with this test and the 3.8 Kernel compared with the 3.9RCx Kernel.

I got a warning once about a million years ago for posting a link to something so I think that's when my profile became restricted :-( I thought that got cleared though along with the warning...

MIPS here.

root@OpenWrt:~# echo "scale=5000; a(1)*4" | time bc -l
3.141592653589793238462643383279502884197169399375105820974944592307\
81640628620899862803482534211706798214808651328230664709384460955058\
22317253594081284811174502841027019385211055596446229489549303819644\
28810975665933446128475648233786783165271201909145648566923460348610\
45432664821339360726024914127372458700660631558817488152092096282925\
40917153643678925903600113305305488204665213841469519415116094330572\
70365759591953092186117381932611793105118548074462379962749567351885\
75272489122793818301194912983367336244065664308602139494639522473719\
07021798609437027705392171762931767523846748184676694051320005681271\
45263560827785771342757789609173637178721468440901224953430146549585\
37105079227968925892354201995611212902196086403441815981362977477130\
99605187072113499999983729780499510597317328160963185950244594553469\
08302642522308253344685035261931188171010003137838752886587533208381\
42061717766914730359825349042875546873115956286388235378759375195778\
18577805321712268066130019278766111959092164201989380952572010654858\
63278865936153381827968230301952035301852968995773622599413891249721\
77528347913151557485724245415069595082953311686172785588907509838175\
46374649393192550604009277016711390098488240128583616035637076601047\
10181942955596198946767837449448255379774726847104047534646208046684\
25906949129331367702898915210475216205696602405803815019351125338243\
00355876402474964732639141992726042699227967823547816360093417216412\
19924586315030286182974555706749838505494588586926995690927210797509\
30295532116534498720275596023648066549911988183479775356636980742654\
25278625518184175746728909777727938000816470600161452491921732172147\
72350141441973568548161361157352552133475741849468438523323907394143\
33454776241686251898356948556209921922218427255025425688767179049460\
16534668049886272327917860857843838279679766814541009538837863609506\
80064225125205117392984896084128488626945604241965285022210661186306\
74427862203919494504712371378696095636437191728746776465757396241389\
08658326459958133904780275900994657640789512694683983525957098258226\
20522489407726719478268482601476990902640136394437455305068203496252\
45174939965143142980919065925093722169646151570985838741059788595977\
29754989301617539284681382686838689427741559918559252459539594310499\
72524680845987273644695848653836736222626099124608051243884390451244\
13654976278079771569143599770012961608944169486855584840635342207222\
58284886481584560285060168427394522674676788952521385225499546667278\
23986456596116354886230577456498035593634568174324112515076069479451\
09659609402522887971089314566913686722874894056010150330861792868092\
08747609178249385890097149096759852613655497818931297848216829989487\
22658804857564014270477555132379641451523746234364542858444795265867\
82105114135473573952311342716610213596953623144295248493718711014576\
54035902799344037420073105785390621983874478084784896833214457138687\
51943506430218453191048481005370614680674919278191197939952061419663\
42875444064374512371819217999839101591956181467514269123974894090718\
64942319615679452080951465502252316038819301420937621378559566389377\
87083039069792077346722182562599661501421503068038447734549202605414\
66592520149744285073251866600213243408819071048633173464965145390579\
62685610055081066587969981635747363840525714591028970641401109712062\
80439039759515677157700420337869936007230558763176359421873125147120\
53292819182618612586732157919841484882916447060957527069572209175671\
16722910981690915280173506712748583222871835209353965725121083579151\
36988209144421006751033467110314126711136990865851639831501970165151\
16851714376576183515565088490998985998238734552833163550764791853589\
32261854896321329330898570642046752590709154814165498594616371802709\
81994309924488957571282890592323326097299712084433573265489382391193\
25974636673058360414281388303203824903758985243744170291327656180937\
73444030707469211201913020330380197621101100449293215160842444859637\
66983895228684783123552658213144957685726243344189303968642624341077\
32269780280731891544110104468232527162010526522721116603966655730925\
47110557853763466820653109896526918620564769312570586356620185581007\
29360659876486117910453348850346113657686753249441668039626579787718\
55608455296541266540853061434443185867697514566140680070023787765913\
44017127494704205622305389945613140711270004078547332699390814546646\
45880797270826683063432858785698305235808933065757406795457163775254\
20211495576158140025012622859413021647155097925923099079654737612551\
76567513575178296664547791745011299614890304639947132962107340437518\
95735961458901938971311179042978285647503203198691514028708085990480\
10941214722131794764777262241425485454033215718530614228813758504306\
33217518297986622371721591607716692547487389866549494501146540628433\
66393790039769265672146385306736096571209180763832716641627488880078\
69256029022847210403172118608204190004229661711963779213375751149595\
01566049631862947265473642523081770367515906735023507283540567040386\
74351362222477158915049530984448933309634087807693259939780541934144\
73774418426312986080998886874132604720
real	4m 7.93s
user	4m 6.56s
sys	0m 0.90s
root@OpenWrt:~# uname -a
Linux OpenWrt 3.8.8 #2 Mon Apr 22 18:02:35 EEST 2013 mips GNU/Linux

And some lines from the kernel log (It's got 128MB of RAM I think)

[	0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[	0.000000] SoC: Atheros AR7161 rev 2
[	0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz

Edit: Oh hey cpuinfo

root@OpenWrt:~# cat /proc/cpuinfo
system type        : Atheros AR7161 rev 2
machine            : NETGEAR WNDR3700/WNDR3800/WNDRMAC
processor        : 0
cpu model        : MIPS 24Kc V7.4
BogoMIPS        : 452.19
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 16
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
ASEs implemented    : mips16
shadow register sets    : 1
kscratch registers    : 0
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available

root@chuck-SVE1711C5E:/home/chuck/Downloads# time echo "scale=5000; a(1)*4" | bc -l

3.141592653589793238462643383279502884197169399375105820974944592307\

81640628620899862803482534211706798214808651328230664709384460955058\

22317253594081284811174502841027019385211055596446229489549303819644\

28810975665933446128475648233786783165271201909145648566923460348610\

45432664821339360726024914127372458700660631558817488152092096282925\

40917153643678925903600113305305488204665213841469519415116094330572\

70365759591953092186117381932611793105118548074462379962749567351885\

75272489122793818301194912983367336244065664308602139494639522473719\

07021798609437027705392171762931767523846748184676694051320005681271\

45263560827785771342757789609173637178721468440901224953430146549585\

37105079227968925892354201995611212902196086403441815981362977477130\

99605187072113499999983729780499510597317328160963185950244594553469\

08302642522308253344685035261931188171010003137838752886587533208381\

42061717766914730359825349042875546873115956286388235378759375195778\

18577805321712268066130019278766111959092164201989380952572010654858\

63278865936153381827968230301952035301852968995773622599413891249721\

77528347913151557485724245415069595082953311686172785588907509838175\

46374649393192550604009277016711390098488240128583616035637076601047\

10181942955596198946767837449448255379774726847104047534646208046684\

25906949129331367702898915210475216205696602405803815019351125338243\

00355876402474964732639141992726042699227967823547816360093417216412\

19924586315030286182974555706749838505494588586926995690927210797509\

30295532116534498720275596023648066549911988183479775356636980742654\

25278625518184175746728909777727938000816470600161452491921732172147\

72350141441973568548161361157352552133475741849468438523323907394143\

33454776241686251898356948556209921922218427255025425688767179049460\

16534668049886272327917860857843838279679766814541009538837863609506\

80064225125205117392984896084128488626945604241965285022210661186306\

74427862203919494504712371378696095636437191728746776465757396241389\

08658326459958133904780275900994657640789512694683983525957098258226\

20522489407726719478268482601476990902640136394437455305068203496252\

45174939965143142980919065925093722169646151570985838741059788595977\

29754989301617539284681382686838689427741559918559252459539594310499\

72524680845987273644695848653836736222626099124608051243884390451244\

13654976278079771569143599770012961608944169486855584840635342207222\

58284886481584560285060168427394522674676788952521385225499546667278\

23986456596116354886230577456498035593634568174324112515076069479451\

09659609402522887971089314566913686722874894056010150330861792868092\

08747609178249385890097149096759852613655497818931297848216829989487\

22658804857564014270477555132379641451523746234364542858444795265867\

82105114135473573952311342716610213596953623144295248493718711014576\

54035902799344037420073105785390621983874478084784896833214457138687\

51943506430218453191048481005370614680674919278191197939952061419663\

42875444064374512371819217999839101591956181467514269123974894090718\

64942319615679452080951465502252316038819301420937621378559566389377\

87083039069792077346722182562599661501421503068038447734549202605414\

66592520149744285073251866600213243408819071048633173464965145390579\

62685610055081066587969981635747363840525714591028970641401109712062\

80439039759515677157700420337869936007230558763176359421873125147120\

53292819182618612586732157919841484882916447060957527069572209175671\

16722910981690915280173506712748583222871835209353965725121083579151\

36988209144421006751033467110314126711136990865851639831501970165151\

16851714376576183515565088490998985998238734552833163550764791853589\

32261854896321329330898570642046752590709154814165498594616371802709\

81994309924488957571282890592323326097299712084433573265489382391193\

25974636673058360414281388303203824903758985243744170291327656180937\

73444030707469211201913020330380197621101100449293215160842444859637\

66983895228684783123552658213144957685726243344189303968642624341077\

32269780280731891544110104468232527162010526522721116603966655730925\

47110557853763466820653109896526918620564769312570586356620185581007\

29360659876486117910453348850346113657686753249441668039626579787718\

55608455296541266540853061434443185867697514566140680070023787765913\

44017127494704205622305389945613140711270004078547332699390814546646\

45880797270826683063432858785698305235808933065757406795457163775254\

20211495576158140025012622859413021647155097925923099079654737612551\

76567513575178296664547791745011299614890304639947132962107340437518\

95735961458901938971311179042978285647503203198691514028708085990480\

10941214722131794764777262241425485454033215718530614228813758504306\

33217518297986622371721591607716692547487389866549494501146540628433\

66393790039769265672146385306736096571209180763832716641627488880078\

69256029022847210403172118608204190004229661711963779213375751149595\

01566049631862947265473642523081770367515906735023507283540567040386\

74351362222477158915049530984448933309634087807693259939780541934144\

73774418426312986080998886874132604720

real 0m21.453s

user 0m21.392s

sys 0m0.008s

i7 Sony VAIO with 3.8.8 Kernel and i7 Optimizations. Thats better. Don?t think I am going to get it under 20s

sorry, i've just realised that I forgot to post the results :p


[root@bertha /]# time echo "scale=5000; a(1)*4" | bc -l
3.141592653589793238462643383279502884197169399375105820974944592307\
81640628620899862803482534211706798214808651328230664709384460955058\
22317253594081284811174502841027019385211055596446229489549303819644\
28810975665933446128475648233786783165271201909145648566923460348610\
45432664821339360726024914127372458700660631558817488152092096282925\
40917153643678925903600113305305488204665213841469519415116094330572\
70365759591953092186117381932611793105118548074462379962749567351885\
75272489122793818301194912983367336244065664308602139494639522473719\
07021798609437027705392171762931767523846748184676694051320005681271\
45263560827785771342757789609173637178721468440901224953430146549585\
37105079227968925892354201995611212902196086403441815981362977477130\
99605187072113499999983729780499510597317328160963185950244594553469\
08302642522308253344685035261931188171010003137838752886587533208381\
42061717766914730359825349042875546873115956286388235378759375195778\
18577805321712268066130019278766111959092164201989380952572010654858\
63278865936153381827968230301952035301852968995773622599413891249721\
77528347913151557485724245415069595082953311686172785588907509838175\
46374649393192550604009277016711390098488240128583616035637076601047\
10181942955596198946767837449448255379774726847104047534646208046684\
25906949129331367702898915210475216205696602405803815019351125338243\
00355876402474964732639141992726042699227967823547816360093417216412\
19924586315030286182974555706749838505494588586926995690927210797509\
30295532116534498720275596023648066549911988183479775356636980742654\
25278625518184175746728909777727938000816470600161452491921732172147\
72350141441973568548161361157352552133475741849468438523323907394143\
33454776241686251898356948556209921922218427255025425688767179049460\
16534668049886272327917860857843838279679766814541009538837863609506\
80064225125205117392984896084128488626945604241965285022210661186306\
74427862203919494504712371378696095636437191728746776465757396241389\
08658326459958133904780275900994657640789512694683983525957098258226\
20522489407726719478268482601476990902640136394437455305068203496252\
45174939965143142980919065925093722169646151570985838741059788595977\
29754989301617539284681382686838689427741559918559252459539594310499\
72524680845987273644695848653836736222626099124608051243884390451244\
13654976278079771569143599770012961608944169486855584840635342207222\
58284886481584560285060168427394522674676788952521385225499546667278\
23986456596116354886230577456498035593634568174324112515076069479451\
09659609402522887971089314566913686722874894056010150330861792868092\
08747609178249385890097149096759852613655497818931297848216829989487\
22658804857564014270477555132379641451523746234364542858444795265867\
82105114135473573952311342716610213596953623144295248493718711014576\
54035902799344037420073105785390621983874478084784896833214457138687\
51943506430218453191048481005370614680674919278191197939952061419663\
42875444064374512371819217999839101591956181467514269123974894090718\
64942319615679452080951465502252316038819301420937621378559566389377\
87083039069792077346722182562599661501421503068038447734549202605414\
66592520149744285073251866600213243408819071048633173464965145390579\
62685610055081066587969981635747363840525714591028970641401109712062\
80439039759515677157700420337869936007230558763176359421873125147120\
53292819182618612586732157919841484882916447060957527069572209175671\
16722910981690915280173506712748583222871835209353965725121083579151\
36988209144421006751033467110314126711136990865851639831501970165151\
16851714376576183515565088490998985998238734552833163550764791853589\
32261854896321329330898570642046752590709154814165498594616371802709\
81994309924488957571282890592323326097299712084433573265489382391193\
25974636673058360414281388303203824903758985243744170291327656180937\
73444030707469211201913020330380197621101100449293215160842444859637\
66983895228684783123552658213144957685726243344189303968642624341077\
32269780280731891544110104468232527162010526522721116603966655730925\
47110557853763466820653109896526918620564769312570586356620185581007\
29360659876486117910453348850346113657686753249441668039626579787718\
55608455296541266540853061434443185867697514566140680070023787765913\
44017127494704205622305389945613140711270004078547332699390814546646\
45880797270826683063432858785698305235808933065757406795457163775254\
20211495576158140025012622859413021647155097925923099079654737612551\
76567513575178296664547791745011299614890304639947132962107340437518\
95735961458901938971311179042978285647503203198691514028708085990480\
10941214722131794764777262241425485454033215718530614228813758504306\
33217518297986622371721591607716692547487389866549494501146540628433\
66393790039769265672146385306736096571209180763832716641627488880078\
69256029022847210403172118608204190004229661711963779213375751149595\
01566049631862947265473642523081770367515906735023507283540567040386\
74351362222477158915049530984448933309634087807693259939780541934144\
73774418426312986080998886874132604720

real 0m30.826s
user 0m30.807s
sys 0m0.000s

Intel Core 2 Quad Q6600 using Kernel 3.8.7-1-ARCH

I should really thing about customising my kernel config but just havent had the time :/

"real 0m33.296s

user 0m33.268s

sys 0m0.012s"

(hack)Mac, Q6700, 6GB DDR2 RAM

Slightly different hardware (2GB DDR2 RAM, different system) but duo version of that quad core processor;

# time echo "scale=5000; a(1)*4" | bc -l

3.141592653589793238462643383279502884197169399375105820974944592307\

81640628620899862803482534211706798214808651328230664709384460955058\

22317253594081284811174502841027019385211055596446229489549303819644\

28810975665933446128475648233786783165271201909145648566923460348610\

45432664821339360726024914127372458700660631558817488152092096282925\

40917153643678925903600113305305488204665213841469519415116094330572\

70365759591953092186117381932611793105118548074462379962749567351885\

75272489122793818301194912983367336244065664308602139494639522473719\

07021798609437027705392171762931767523846748184676694051320005681271\

45263560827785771342757789609173637178721468440901224953430146549585\

37105079227968925892354201995611212902196086403441815981362977477130\

99605187072113499999983729780499510597317328160963185950244594553469\

08302642522308253344685035261931188171010003137838752886587533208381\

42061717766914730359825349042875546873115956286388235378759375195778\

18577805321712268066130019278766111959092164201989380952572010654858\

63278865936153381827968230301952035301852968995773622599413891249721\

77528347913151557485724245415069595082953311686172785588907509838175\

46374649393192550604009277016711390098488240128583616035637076601047\

10181942955596198946767837449448255379774726847104047534646208046684\

25906949129331367702898915210475216205696602405803815019351125338243\

00355876402474964732639141992726042699227967823547816360093417216412\

19924586315030286182974555706749838505494588586926995690927210797509\

30295532116534498720275596023648066549911988183479775356636980742654\

25278625518184175746728909777727938000816470600161452491921732172147\

72350141441973568548161361157352552133475741849468438523323907394143\

33454776241686251898356948556209921922218427255025425688767179049460\

16534668049886272327917860857843838279679766814541009538837863609506\

80064225125205117392984896084128488626945604241965285022210661186306\

74427862203919494504712371378696095636437191728746776465757396241389\

08658326459958133904780275900994657640789512694683983525957098258226\

20522489407726719478268482601476990902640136394437455305068203496252\

45174939965143142980919065925093722169646151570985838741059788595977\

29754989301617539284681382686838689427741559918559252459539594310499\

72524680845987273644695848653836736222626099124608051243884390451244\

13654976278079771569143599770012961608944169486855584840635342207222\

58284886481584560285060168427394522674676788952521385225499546667278\

23986456596116354886230577456498035593634568174324112515076069479451\

09659609402522887971089314566913686722874894056010150330861792868092\

08747609178249385890097149096759852613655497818931297848216829989487\

22658804857564014270477555132379641451523746234364542858444795265867\

82105114135473573952311342716610213596953623144295248493718711014576\

54035902799344037420073105785390621983874478084784896833214457138687\

51943506430218453191048481005370614680674919278191197939952061419663\

42875444064374512371819217999839101591956181467514269123974894090718\

64942319615679452080951465502252316038819301420937621378559566389377\

87083039069792077346722182562599661501421503068038447734549202605414\

66592520149744285073251866600213243408819071048633173464965145390579\

62685610055081066587969981635747363840525714591028970641401109712062\

80439039759515677157700420337869936007230558763176359421873125147120\

53292819182618612586732157919841484882916447060957527069572209175671\

16722910981690915280173506712748583222871835209353965725121083579151\

36988209144421006751033467110314126711136990865851639831501970165151\

16851714376576183515565088490998985998238734552833163550764791853589\

32261854896321329330898570642046752590709154814165498594616371802709\

81994309924488957571282890592323326097299712084433573265489382391193\

25974636673058360414281388303203824903758985243744170291327656180937\

73444030707469211201913020330380197621101100449293215160842444859637\

66983895228684783123552658213144957685726243344189303968642624341077\

32269780280731891544110104468232527162010526522721116603966655730925\

47110557853763466820653109896526918620564769312570586356620185581007\

29360659876486117910453348850346113657686753249441668039626579787718\

55608455296541266540853061434443185867697514566140680070023787765913\

44017127494704205622305389945613140711270004078547332699390814546646\

45880797270826683063432858785698305235808933065757406795457163775254\

20211495576158140025012622859413021647155097925923099079654737612551\

76567513575178296664547791745011299614890304639947132962107340437518\

95735961458901938971311179042978285647503203198691514028708085990480\

10941214722131794764777262241425485454033215718530614228813758504306\

33217518297986622371721591607716692547487389866549494501146540628433\

66393790039769265672146385306736096571209180763832716641627488880078\

69256029022847210403172118608204190004229661711963779213375751149595\

01566049631862947265473642523081770367515906735023507283540567040386\

74351362222477158915049530984448933309634087807693259939780541934144\

73774418426312986080998886874132604720

real 0m28.693s

user 0m27.857s

sys 0m0.030s

Linux H3K-Dell 3.8.8-1-ARCH #1 SMP PREEMPT Wed Apr 17 10:57:28 CEST 2013 x86_64 GNU/Linux

Interesting to note that macs are - once again - not optimised!

My Funtoo Box

sewa@cucolinux ~ $ cat /etc/gentoo-release && uname -a && cat /etc/make.conf | grep "CFLAGS"
Funtoo Linux - baselayout 2.2.0
Linux cucolinux 3.8.8-ck1-sewa #1 SMP PREEMPT Wed Apr 24 15:38:35 CLT 2013 x86_64 Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz GenuineIntel GNU/Linux
CFLAGS="-march=corei7-avx -O2 -pipe"
4gb Ram DDR3[/CODE]

[CODE]sewa@cucolinux ~ $ time echo "scale=5000; a(1)*4" | bc -l
3.141592653589793238462643383279502884197169399375105820974944592307\
81640628620899862803482534211706798214808651328230664709384460955058\
22317253594081284811174502841027019385211055596446229489549303819644\
28810975665933446128475648233786783165271201909145648566923460348610\
45432664821339360726024914127372458700660631558817488152092096282925\
40917153643678925903600113305305488204665213841469519415116094330572\
70365759591953092186117381932611793105118548074462379962749567351885\
75272489122793818301194912983367336244065664308602139494639522473719\
07021798609437027705392171762931767523846748184676694051320005681271\
45263560827785771342757789609173637178721468440901224953430146549585\
37105079227968925892354201995611212902196086403441815981362977477130\
99605187072113499999983729780499510597317328160963185950244594553469\
08302642522308253344685035261931188171010003137838752886587533208381\
42061717766914730359825349042875546873115956286388235378759375195778\
18577805321712268066130019278766111959092164201989380952572010654858\
63278865936153381827968230301952035301852968995773622599413891249721\
77528347913151557485724245415069595082953311686172785588907509838175\
46374649393192550604009277016711390098488240128583616035637076601047\
10181942955596198946767837449448255379774726847104047534646208046684\
25906949129331367702898915210475216205696602405803815019351125338243\
00355876402474964732639141992726042699227967823547816360093417216412\
19924586315030286182974555706749838505494588586926995690927210797509\
30295532116534498720275596023648066549911988183479775356636980742654\
25278625518184175746728909777727938000816470600161452491921732172147\
72350141441973568548161361157352552133475741849468438523323907394143\
33454776241686251898356948556209921922218427255025425688767179049460\
16534668049886272327917860857843838279679766814541009538837863609506\
80064225125205117392984896084128488626945604241965285022210661186306\
74427862203919494504712371378696095636437191728746776465757396241389\
08658326459958133904780275900994657640789512694683983525957098258226\
20522489407726719478268482601476990902640136394437455305068203496252\
45174939965143142980919065925093722169646151570985838741059788595977\
29754989301617539284681382686838689427741559918559252459539594310499\
72524680845987273644695848653836736222626099124608051243884390451244\
13654976278079771569143599770012961608944169486855584840635342207222\
58284886481584560285060168427394522674676788952521385225499546667278\
23986456596116354886230577456498035593634568174324112515076069479451\
09659609402522887971089314566913686722874894056010150330861792868092\
08747609178249385890097149096759852613655497818931297848216829989487\
22658804857564014270477555132379641451523746234364542858444795265867\
82105114135473573952311342716610213596953623144295248493718711014576\
54035902799344037420073105785390621983874478084784896833214457138687\
51943506430218453191048481005370614680674919278191197939952061419663\
42875444064374512371819217999839101591956181467514269123974894090718\
64942319615679452080951465502252316038819301420937621378559566389377\
87083039069792077346722182562599661501421503068038447734549202605414\
66592520149744285073251866600213243408819071048633173464965145390579\
62685610055081066587969981635747363840525714591028970641401109712062\
80439039759515677157700420337869936007230558763176359421873125147120\
53292819182618612586732157919841484882916447060957527069572209175671\
16722910981690915280173506712748583222871835209353965725121083579151\
36988209144421006751033467110314126711136990865851639831501970165151\
16851714376576183515565088490998985998238734552833163550764791853589\
32261854896321329330898570642046752590709154814165498594616371802709\
81994309924488957571282890592323326097299712084433573265489382391193\
25974636673058360414281388303203824903758985243744170291327656180937\
73444030707469211201913020330380197621101100449293215160842444859637\
66983895228684783123552658213144957685726243344189303968642624341077\
32269780280731891544110104468232527162010526522721116603966655730925\
47110557853763466820653109896526918620564769312570586356620185581007\
29360659876486117910453348850346113657686753249441668039626579787718\
55608455296541266540853061434443185867697514566140680070023787765913\
44017127494704205622305389945613140711270004078547332699390814546646\
45880797270826683063432858785698305235808933065757406795457163775254\
20211495576158140025012622859413021647155097925923099079654737612551\
76567513575178296664547791745011299614890304639947132962107340437518\
95735961458901938971311179042978285647503203198691514028708085990480\
10941214722131794764777262241425485454033215718530614228813758504306\
33217518297986622371721591607716692547487389866549494501146540628433\
66393790039769265672146385306736096571209180763832716641627488880078\
69256029022847210403172118608204190004229661711963779213375751149595\
01566049631862947265473642523081770367515906735023507283540567040386\
74351362222477158915049530984448933309634087807693259939780541934144\
73774418426312986080998886874132604720
real 0m29.476s
user 0m29.432s
sys 0m0.008s[/CODE]

Interesting to note that macs are - once again - not optimised!

What do you mean, exactly? I have a hard time believing that the Intel processors that Apple puts into their machines are significantly different or "less optimized" than standard Intel processors. If you are referring to the Linux kernel itself, how could the same kernel that runs on other machines be less optimized for the same processor on a Mac? Does the firmware make some difference in these results as well? I don't think it would, since the microcode is built into the kernel or loaded from the root filesystem at runtime, but there could be something that I'm overlooking.

I have an interesting observation that is not strictly related to this thread, but it might be of some minor relevance to your comment. A friend of mine has a Macbook Pro 5.1 and an ASUS EEE PC 1201T. He migrated from using Ubuntu 12.04 on the Macbook Pro to using Ubuntu 12.04 on the EEE a few months ago. He reinstalled Ubuntu on the EEE because the Macbook Pro has an NVIDIA graphics (for which he had to use the proprietary NVIDIA driver) and other hardware-specific configuration hacks in Ubuntu to make it work properly - the EEE needs none of that. Although the EEE has less RAM (2 GB instead of 4GB) and the processor and graphics card are technically weaker, it performs noticeably better than the Macbook Pro (in Ubuntu or OS X). He noticed immediately after he finished configuring his new installation of Ubuntu on the EEE that his boot time was about 1/2 that of his Macbook Pro and programs opened significantly faster.

What do you mean, exactly? I have a hard time believing that the Intel processors that Apple puts into their machines are significantly different or "less optimized" than standard Intel processors. If you are referring to the Linux kernel itself, how could the same kernel that runs on other machines be less optimized for the same processor on a Mac? Does the firmware make some difference in these results as well? I don't think it would, since the microcode is built into the kernel or loaded from the root filesystem at runtime, but there could be something that I'm overlooking.

I have an interesting observation that is not strictly related to this thread, but it might be of some minor relevance to your comment. A friend of mine has a Macbook Pro 5.1 and an ASUS EEE PC 1201T. He migrated from using Ubuntu 12.04 on the Macbook Pro to using Ubuntu 12.04 on the EEE a few months ago. He reinstalled Ubuntu on the EEE because the Macbook Pro has an NVIDIA graphics (for which he had to use the proprietary NVIDIA driver) and other hardware-specific configuration hacks in Ubuntu to make it work properly - the EEE needs none of that. Although the EEE has less RAM (2 GB instead of 4GB) and the processor and graphics card are technically weaker, it performs noticeably better than the Macbook Pro (in Ubuntu or OS X). He noticed immediately after he finished configuring his new installation of Ubuntu on the EEE that his boot time was about 1/2 that of his Macbook Pro and programs opened significantly faster.

He wasn't talking about hardware.

Im my opinion the GNU/Linux kernel cannot be compared to the Darwin kernel. Simply because they are far to different from each other, Darwin is an amalgamation of the BSD kernel and Mach kernel. Neither of which are a GNU/Linux kernels to my knowledge. Darwin is a hybrid kernel rather than the monolithic GNU/Linux kernel.

Im my opinion the GNU/Linux kernel cannot be compared to the Darwin kernel. Simply because they are far to different from each other, Darwin is an amalgamation of the BSD kernel and Mach kernel. Neither of which are a GNU/Linux kernels to my knowledge. Darwin is a hybrid kernel rather than the monolithic GNU/Linux kernel.

Pretty valid points. Would be interesting to see this run on something like baremetal.

ASM coders anyone? :)

Pretty valid points. Would be interesting to see this run on something like baremetal.

ASM coders anyone? :)

I fail to see what doing toy floating point operations is going to prove. What really matters is real world performance. For that reason I think comparisons between floating point operations in Windows, Linux, OS X, and BSD are completely valid. I would be interested in seeing such a comparison, but that was not the OP's purpose in creating this thread. He wanted a point of comparison for making floating point faster in the Linux kernel. I think we have accomplished that satisfactorily by now. If you wanted to devise a floating point test that could run on a couple different operating systems (or even just use this test if you only care about POSIX compliant systems) and created a new thread about it, I would participate.

Im my opinion the GNU/Linux kernel cannot be compared to the Darwin kernel. Simply because they are far to different from each other, Darwin is an amalgamation of the BSD kernel and Mach kernel. Neither of which are a GNU/Linux kernels to my knowledge. Darwin is a hybrid kernel rather than the monolithic GNU/Linux kernel.
Darwin is XNU
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Quantum Error Correction Validated in Nature: Microsoft and Quantinuum Log 800-Fold Improvement Two years after the original press-release announcement, independently peer-reviewed results published in Nature on June 10, 2026, have confirmed that Microsoft and Quantinuum achieved an 800-fold reduction in quantum error rates on real trapped-ion hardware — the largest gap between physical and logical error rates ever independently validated.    What Quantum Error Correction Actually Does — and Why Breaking Even Is Hard https://www.techtimes.com/articles/318329/20260613/quantum-error-correction-validated-nature-microsoft-quantinuum-log-800-fold-improvement.htm   Quantum Computing Wiring Bottleneck Cracked by HKU Silicon Carbide Chip at Qubit Temperature Engineers at the University of Hong Kong have built the first cryogenic control chip that operates at the same temperature as superconducting qubits — 10 millikelvin, or just one-hundredth of a degree above absolute zero — without generating the heat that has forced every competing approach to park its electronics hundreds of meters of cable away. https://www.techtimes.com/articles/318325/20260613/quantum-computing-wiring-bottleneck-cracked-hku-silicon-carbide-chip-qubit-temperature.htm  
    • RevPDF 4.5.0 by Razvan Serea RevPDF is a free, fully offline PDF editor for Windows, macOS, and Linux that lets you edit text and images directly inside PDF files — no internet connection, no account, and no cloud uploads required. Unlike bloated alternatives that demand subscriptions and constant connectivity, RevPDF fits in under 60MB on desktop while delivering a complete editing toolkit: annotate, redact, sign, compress, split, merge, convert, and reorganize pages, all processed locally on your device. Smart font matching ensures edited text blends seamlessly with the original, and multi-language support includes RTL scripts such as Arabic and Hebrew. Where most PDF editors force you to choose between features and simplicity, RevPDF manages both. You can build interactive forms from scratch with text fields, checkboxes, and dropdowns, permanently redact sensitive data before sharing, draw freehand on contracts and diagrams, and add custom watermarks — all without a single file leaving your machine. Edit Text and Images Directly Inside PDFs RevPDF supports true inline PDF editing — not just annotation layers on top of a document, but actual modification of existing text and images within the file. A smart font-matching engine identifies the font used in the original document and applies it automatically when you make edits, so changes blend naturally with the surrounding content. You can reposition elements, resize images, and update text across single pages or entire documents. RevPDF 4.5.0 release notes: This is one of the biggest updates to RevPDF yet. A lot of things people have been asking for are finally here. New Features Auto Redaction Permanently redact sensitive text and areas from your PDFs before sharing. Clean, irreversible, and fully offline. Comments, Links & Bookmarks Add comments for review, insert clickable links, and create bookmarks to jump around long documents without scrolling forever. Find & Replace Search across the whole document and replace text in one go. Long overdue. Split Pages Vertically or Horizontally Split any page down the middle, vertically or horizontally. Perfect for scanned books or double-page spreads. New Drawing Tools More tools for freehand drawing and markup, better for annotations, sketches, and detailed notes. Continuous Scrolling in Editor The editor now scrolls continuously through pages instead of jumping between them. Working through long documents is a lot smoother now. PDF Metadata Editor View and edit the metadata stored inside your PDFs, including title, author, subject, and keywords. Better Font Matching Text edits now blend in more naturally by doing a better job of matching the original font. Tabbed PDF Viewer Open multiple PDFs at once in tabs and switch between them without going back to the home screen. Add Links Insert hyperlinks anywhere in your PDF, to external URLs or to other pages within the document. Share & Print Shortcuts Share or print directly from the editing screen, home screen, and viewer. No extra steps. Minor Updates Paste images directly from clipboard into your PDF New image editing tools for more control over images inside documents Bug Fixes Fixed file saving issues on Windows and Linux Everything still works fully offline. No login, no cloud, no account. Your files stay on your device. Download: RevPDF 4.5.0 | 58.0 MB (Open Source) Links: RevPDF Home Page | Github | Screenshots 1 | 2 Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Interesting. I'm not using a VPN with my phone. I tried though my home internet (Rogers) and my cellular internet (Telus) using their respective DNS servers and both trigger the dialog above.
    • Three days after Anthropic launched Claude Fable 5 as the most capable AI model it had ever released to the public, the United States government ordered it switched off — and now the company is refunding customers who paid to use a product that vanished almost overnight https://www.techtimes.com/articles/318342/20260613/us-government-pulls-anthropics-fable-5-offline-now-come-refunds-vanished-ai.htm  
    • Microsoft fired the team and replaced them with AI and this is what you get.
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      175
    3. 3
      PsYcHoKiLLa
      139
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!