Hey @miran, thanks. I'll look at your code when I get some time today.

It would be really helpful if people could run the code on different (Intel 
cpus, AMD, ARM, etc) platforms with different number of threads, cache size, 
etc, and if possible a|b it against `primesieve` on their systems, and post 
results. I'm going to try and see if I can get (expert) programmers in other 
language communities (C++, Crystal, D, Rust, etc) to do it in them and compare 
the results. I initially just want to see what their coded versions looks like 
(idiomatically), or even if possible (can they do parallel programming, gc, 
etc).

Below are updated times for the current version, produced on my System 76 
laptop, Intel I7 6700HQ cpu, 2.6-3.5 GHz clock, with 8 threads, and 16GB of 
memory. I'm really interested to see how it performs under different threading 
systems.
    
    
    Input Number |   twinprimes   | twinprimes_ssoz |  primesieve
    ----------------------------------------------------------------
    1e10         |     27,412,679 |       0.458     |      0.572
    5e10         |    118,903,682 |       2.501     |      3.112
    1e11         |    224,376,048 |       5.110     |      6.475
    5e11         |    986,222,314 |      28.583     |     35.675
    1e12         |  1,870,585,220 |      61.236     |     75.638
    2e12         |  3,552,770,943 |     135.701     |    162.975
    3e12         |  5,173,760,785 |     223.803     |    252.175
    4e12         |  6,756,832,076 |     316.653     |    354.066
    5e12         |  8,312,493,003 |     400.375     |    448.066
    6e12         |  9,846,842,484 |     497.222     |    547.792
    7e12         | 11,363,874,338 |     595.554     |    642.447
    8e12         | 12,866,256,870 |     698.129     |    749.884
    9e12         | 14,356,002,120 |     809.974     |    843.042
    1e13         | 15,834,664,872 |     903.161     |    953.423
    

Reply via email to