-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
128 bit collatz multithreaded implementation in Java - u long long over BigInteger #10
Comments
Initial test on BigInteger refactor of #19
macbook M4 Pro
|
check out https://docs.oracle.com/javase/10/docs/api/java/lang/Math.html#multiplyHigh(long,%20long) and Long toUnsignedString, compareUnsigned, divideUnsigned, remainderUnsigned |
Working 128bit - tested only to 63 bit so far
|
just need to work on printing the positive high bit
agrees with reg 45 http://www.ericr.nl/wondrous/pathrecs.html
speed up is (2397/286) = (CPP 128bit Singlethreaded / Java 128bit Multithreaded) |
preliminary
rerun with 37 bit down from 40
|
M1Max overnight
|
M4pro overnight
|
p1gen6 13800H overnight
|
14900k overnight crash
|
Optimization 5: Turn off real time AV protectionIssue is heap generation Either map out the drive or turn off Anti Virus protection. Windows systems are particularly slower because defender will kick in during compilation and runtime with up to a full core that is bound by disk access. 33% speed increase on same p1gen6 system workaround: run an Ubuntu 24.04 VM on the windows machine - use 8/16/24/32 cores |
37 space M4Max
|
13900a with av 32 bit 13 no av diff
|
p1gen6 no av 13 batch 37 bit
|
M2Pro 42 16 started 20250105:0000 |
14900K c 37 13
|
m4max
|
mini08 m4pro
|
MBP7 m1max
|
M2pro
|
m2pro
|
M4
|
20250102 work from 64 bit multithreaded (long not BigInteger) in #19
20250103
speed up is (2397/286) = (CPP 128bit Singlethreaded / Java 128bit Multithreaded)
= 8.3 times faster
The text was updated successfully, but these errors were encountered: