Danilo wrote:I were interested in the 10 seconds PI calculation. My results:
Code: Select all
;
; Calculating PI for 10 seconds:
;
; PB64 : 31415926535897932384626433832795028841971693
; PB : 31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253
; C# : 3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093
; VC++ : 3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938
; VC++64: 3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938
; IC++ : 314159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555
; IC++64: 3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644
To be honest, this is EXACTLY the kind of result I would expect.
PB, for all it's raw power is running on the "lowest common denominator" when it comes to CPU tricks (that is none to barely any)
VB.net/C#, is running on the best CPU tricks it can manage, but at the end of the day, the JIT will claim some overhead.
VC++ uses the CPU tricks for your CPU, and is without a JIT.
IC++, well, it's Intel - they *know* all the tricks inside and out. For all the Microsoft cleverness, it will never match in-house knowledge.
It would be interesting to have all these run on a P1 and then see what the difference is then.
Actually - does anyone know (Fred?) what is the maximum CPU instruction level is used with PureBasic? 386, 486, Pentium, MMX?