Comparison of non-CRT vs CRT at various shift settings

CRT vs non-CRT at shifts 64, 96, 128, 179, 256, 512 and 768

In the announcement of Revision 5, the Gapcoin miner is described as “capable of using the Chinese Remainder Theorem to speed up mining with large shift”. Unfortunately, the announcement was unaccompanied by any indication of what level of shift was considered “large”, although some insight can be gained from the fact that the minimum shift level supported by the associated “crt files” was - and is - 64.

Tests are non-CRT vs. CRT mining over a selected range of --shift settings: 64, 96, 128, 179, 256, 512 and 768.

Except for shift 768, non-CRT tests used default settings for --sieve-size and --sieve-primes. For the CRT tests, in order to keep the size of the gaplist within the recommended bounds, the value of --sieve-primes is adjusted according to the selected value of --shift.

Tests were run simultaneously to control for changes in difficulty that otherwise affect the results to a degree that thwarts comparison when tests are run serially.

Test notes

Choosing an appropriate value for --sieve-size proved to be something of a “black art”. At shift 179, it proved impossible to discover a value for --sieve-size which produced a gaplist that neither reached zero nor exceeded 9000. Selecting a value of 16382 resulted in a frequently-empty gaplist but selecting the minimum decrement of one less (16381) resulted in a gaplist size that approached 50000 at times.

A shift of 768 proved to be the highest shift setting possible to use with non-CRT mining. At any higher setting the miner-reported statistics become nonsensical - which can be taken as a useful proxy for “only use CRT at this shift setting”).


Column labels map directly to miner output: pps is average primes per second, tps is average tests per second, gps is average gaps per second, glst is the size of the gaplist and l/s is the time in seconds to scan the gaplist at the reported rate of gaps per second.

std-f64-s33554397-i90000

measureppstpsgps
mean2808379947213148
max35428812560516586
min2754519757112896
std109323872511

crt-f64-i6490

measureppstpsgpsglstbpcl/s
mean5177007187127688420950.230.30
max70610714294784988366710.470.67
min463066108904674030.000.00
std20342406798430015420.145.15

std-f96-s33554397-i90000

measureppstpsgps
mean150002584217023
max158244614867408
min149244581566988
std93433143

crt-f96-i12000

measureppstpsgpsglstbpcl/s
mean7332545148324380830080.320.79
max878003101915415664133270.612.35
min365175616263755120.000.00
std43174294819413326960.1820.23

std-f128-s33554397-i90000

measureppstpsgps
mean124207533005868
max132919569416281
min122889526935805
std167974380

crt-f128-i14560

measureppstpsgpsglstbpcl/s
mean7832236816976321231160.430.97
max878103134607353827101670.832.66
min508530844733160110.000.00
std38592388788210024910.2524.83

std-f179-s33554397-i90000

measureppstpsgps
mean110018535375203
max142859699386759
min106573518375039
std53052607252

crt-f179-i16381

measureppstpsgpsglstbpcl/s
mean1719581112596532801158030.955.64
max2097464218498023640481291.8913.22
min163436217647127159360.010.34
std403196237012133117590.5588.32

std-f256-s33554397-i90000

measureppstpsgps
mean61600350562894
max78988445013708
min59878335842810
std27071496127

crt-f256-i27250

measureppstpsgpsglstbpcl/s
mean25049188233398158717991.191.13
max322540016197158213960842.322.84
min2433006110793153340.010.00
std11975245686588914000.6715.71

std-f512-s33554397-i90000

measureppstpsgps
mean107489234507
max111159591524
min106839152503
std71853

crt-f512-i130000

measureppstpsgpsglstbpcl/s
mean2338017164280430123691.227.87
max3549117326994731858932.4418.53
min21735798416299380.010.13
std97558946970316450.71496.96

std-f768-s4800000-i640000

measureppstpsgps
mean36584255172
max47835329224
min35764177168
std1411287

crt-f768-i280000

measureppstpsgpsglstbpcl/s
mean231678960765510931461.1628.98
max3302115120141112781852.2864.45
min22433697539107460.010.43
std119993345476222830.661022.23

The charts included below are for completeness. The figures given are the means and they differ from the means in the above table because, in order to support the different requirements of charting, the first 1/5th of the data is ignored in order to aid visual comparison. The chartline uses the full dataset.

Your browser is now constructing the plots, it will take a few moments ...

Replication:

gapminer -o localhost -p 31397 -u $USER -x $USERPASS -j 5 -e -f 64 -t 4
gapminer -o localhost -p 31397 -u $USER -x $USERPASS -j 5 -e -f 64 -i [as-discovered] -t 4 -d 3 -r crt/dist/crt-22m-0064s.txt