evaluator
May 10th, 2015, 09:32
Hello, all!
for fun, I started writing of simple Math functions for Big Nums.. (ADD, SUB, NEG, MUL, DIV, SHL, SHR).
Now I want to know how good and fast are they.
So, here I want your guide. give me info about available code-modules, so I will test and compare their speed with my.
hope, there is some BigNum DLL...
(yo, looks like lamer search request, but bear with me)
better, just preform speed test..
here are my speeds. look in ZIP
[removed fake RDTSC]
just checked & my RDTSC reports false speed at 4Ghz (because of overclocking). But it is on 3.33GHZ.
so here are timings:
I ran test on other not-overclocked 1.5 GHZ CPU, so it shows more reliable RDTSC
EDIT:
I just read some docs, so I coded simple or basecase kind of algos..
EDIT:20150531
today finished SQR square procedure. It is 1.87x faster then MUL.
But in docs written, it can be 1.5x faster.
either my MUL is bad, or SQR is so good.
for fun, I started writing of simple Math functions for Big Nums.. (ADD, SUB, NEG, MUL, DIV, SHL, SHR).
Now I want to know how good and fast are they.
So, here I want your guide. give me info about available code-modules, so I will test and compare their speed with my.
hope, there is some BigNum DLL...
(yo, looks like lamer search request, but bear with me)
better, just preform speed test..
here are my speeds. look in ZIP
[removed fake RDTSC]
just checked & my RDTSC reports false speed at 4Ghz (because of overclocking). But it is on 3.33GHZ.
so here are timings:
Code:
A=B= (2^524288) -1 // in BITNUM
A MUL B = C
; Time = 0.875 sec
then,
C DIV B = A
; Time = 20.875 sec
A4=B4= (2^2097152) -1 // in BITNUM
A4 MUL B4 = C4
; Time = 13.797 sec
then,
C4 DIV B4 = A4
; Time = 333.719 sec
CPU 3.33ghz
I ran test on other not-overclocked 1.5 GHZ CPU, so it shows more reliable RDTSC
Code:
**************************
CPU 1.5ghz
A=B= (2^524288) -1 // in BITNUM
A MUL B = C
; Time = 1.591 sec
; RDTSC = 2,379,654,669
then,
C DIV B = A
; Time = 44.054 sec
; RDTSC = 65,912,884,416
*
*
A4=B4= (2^2097152) -1 // in BITNUM
A4 MUL B4 = C4
; Time = 25.412 sec
; RDTSC = 38,009,393,646
then,
C4 DIV B4 = A4
; Time = 708.693 sec
; RDTSC = 1,060,613,423,675
EDIT:
I just read some docs, so I coded simple or basecase kind of algos..
EDIT:20150531
today finished SQR square procedure. It is 1.87x faster then MUL.
But in docs written, it can be 1.5x faster.
either my MUL is bad, or SQR is so good.