Re: [BLACKBOX] INTEGER arithmetic speed

From: Campbell, Robert (SELEX GALILEO, UK) <robert.d.campbell{([at]})nowhere.xy>
Date: Thu, 20 Oct 2011 13:56:14 +0100

----boundary-LibPST-iamunique-518225534_-_-
Content-type: text/plain

 
>> > It would be interesting to know if anyone had observed
>> this LONGINT
>> > speed-up on an Intel machine.

>> >
>>
>> No - just the opposite. A *very* simple multiplication test
>> on an Intel
>> 64-bit single-core Pentium 4 system gave results that were slower for
>> LONGINT by a factor of about 8! That is more like the sort
>> of result I would
>> have expected.
>>
>> Chris


I have just copied my entire BlackBox director onto a stick, and run my
example, without any
recompiling or anything, on a relatively new Intel box:


AMD box, LONGINTs 19.8 s
AMD box, INTEGERs 34.0 s

Intel box, LONGINTs 15.3 s
Intel box, INTEGERs 6.4 s.


Wow!


I have a 'standard' speed test I have use on many languages & machines
over decades. It (deliberately) looks
at tight loops using 64-bit floating point & trig functions (Sine &
Cosine). I have just run it on these machines:

AMD, REALs 57.9
Intel, REALs 44.7.

The 3-year newer Intel box is about 29% faster for both REALs &
LONGINTs.
It is over 5 times faster for INTEGERs.


Robert
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-518225534_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0Mi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55IG5vLiAwMjQyNjEzMlxw
YXINCioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqXHBhcg0KVGhpcyBlbWFpbCBhbmQgYW55IGF0dGFjaG1lbnRzIGFyZSBj
b25maWRlbnRpYWwgdG8gdGhlIGludGVuZGVkXHBhcg0KcmVjaXBpZW50IGFuZCBtYXkgYWxzbyBi
ZSBwcml2aWxlZ2VkLiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWRccGFyDQpyZWNpcGllbnQg
cGxlYXNlIGRlbGV0ZSBpdCBmcm9tIHlvdXIgc3lzdGVtIGFuZCBub3RpZnkgdGhlIHNlbmRlci5c
cGFyDQpZb3Ugc2hvdWxkIG5vdCBjb3B5IGl0IG9yIHVzZSBpdCBmb3IgYW55IHB1cnBvc2Ugbm9y
IGRpc2Nsb3NlIG9yXHBhcg0KZGlzdHJpYnV0ZSBpdHMgY29udGVudHMgdG8gYW55IG90aGVyIHBl
cnNvbi5ccGFyDQoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKlxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1
YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBM
SVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQBJR05P
----boundary-LibPST-iamunique-518225534_-_---
Received on Thu Oct 20 2011 - 14:56:14 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:10 UTC