Skip to content
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

Java 64 bit native long vs BigInteger performance - expected 9x slowdown but seeing 50x slowdown specific to IA64 over ARM64 #24

Open
obriensystems opened this issue Jan 2, 2025 · 6 comments
Assignees

Comments

@obriensystems
Copy link
Member

obriensystems commented Jan 2, 2025

Triage

  • efficiency cores - not the issue as I turned off hyper threading and e cores on another 14900K from 32 vCores to 8 (turned off 16 ecores) - performance was worse

Data

64 bit long (only went up to 32 bit start and 63 bit max)
native long 64 bit = 42 sec for 13900K 128g
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 632 dur: 13

native long 64 bit = 50 sec for M4 Max 48g
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 866 dur: 17

native long 64 bit = 80 sec for M4 Pro 8p4e 24g
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 1291 dur: 25

BigInteger:
BigInteger 64 bit = 460 sec for M4 Max 48g (9x slower)
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 7312 dur: 143

BigInteger 64 bit = 80 sec for M4 Pro 8p4e 24g (9x slower)
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 11710 dur: 236

BigInteger 64 bit = sec for 13900K 128g 8p16e (56x slower)
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 35617 dur: 705

Test results between runs of
long
#19
https://github.com/ObrienlabsDev/performance/blob/main/cpu/virtual/multithreaded/128bit/java-benchmark-128-cli/performance-nbi/src/main/java/dev/obrienlabs/performance/nbi/Collatz.java
BigInteger
#10
https://github.com/ObrienlabsDev/performance/blob/main/cpu/virtual/multithreaded/128bit/java-benchmark-128-cli/performance-nbi/src/main/java/dev/obrienlabs/performance/nbi/CollatzBigInteger.java

CPU and RAM profiles are the same at 100% and 6g heap

Intel
Screenshot 2025-01-02 at 11 56 23

Screenshot 2025-01-02 at 11 37 24

Apple
Screenshot 2025-01-02 at 12 02 11

Screenshot 2025-01-02 at 12 02 48

Will check PCore vs Ecore distribution
Chips are
M4 Max 16 thread (12p/4e) - 75:25
13900K 32 thread (8p/16e - 16p(ht)/16e) - 50/50

  • the intel chip has a 50:50 distribution as opposed to the M4 Max which has a 75:25 distribution
    M1 Max (8p/2e) - 80:20
    M4 Pro (8p/4e) - 66:33
    M2 Pro (6p/2e) - 75:25
    14900K (ht off) (8p/16e) - 33:66

check thermal throttling

@obriensystems obriensystems self-assigned this Jan 2, 2025
@obriensystems
Copy link
Member Author

mac M4 Max BigInteger

m...mbp8 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.CollatzBigInteger                   
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
m0: 950271 p: 245 m: 2106598912 ms: 21 dur: 0
mp: 81919 p: 288 m: 47829688 ms: 22 dur: 0
mp: 294911 p: 220 m: 1570824736 ms: 21 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 21 dur: 0
m0: 688127 p: 136 m: 677985856 ms: 20 dur: 0
mp: 475135 p: 182 m: 277412200 ms: 20 dur: 0
mp: 393215 p: 223 m: 1570824736 ms: 22 dur: 0
mp: 507903 p: 363 m: 333612088 ms: 22 dur: 0
mp: 606207 p: 327 m: 699811540 ms: 22 dur: 0
mp: 410011 p: 448 m: 76778008 ms: 31 dur: 0
m0: 459759 p: 213 m: 6973568800 ms: 41 dur: 0
m0: 608111 p: 402 m: 24648077896 ms: 54 dur: 0
mp: 511935 p: 469 m: 76778008 ms: 73 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 107 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 0 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 100 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 114 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 79 dur: 0
81919
163839
294911
393215
410011
459759
475135
507903
511935
606207
608111
626331
688127
704511
704623
837799
939497
950271
m0: 1212415 p: 328 m: 139646736808 ms: 16 dur: 0
mp: 1117065 p: 527 m: 2974984576 ms: 3 dur: 0
mp: 1564063 p: 530 m: 7222283188 ms: 11 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 21 dur: 0
1117065
1212415
1564063
1723519
mp: 3064033 p: 562 m: 46571871940 ms: 275 dur: 0
m0: 3041127 p: 363 m: 622717901620 ms: 31 dur: 0
3041127
3064033
mp: 4063723 p: 565 m: 125218704148 ms: 160 dur: 1
mp: 3542887 p: 583 m: 294475592320 ms: 28 dur: 1
mp: 3732423 p: 596 m: 294475592320 ms: 10 dur: 1
3542887
3732423
4063723
m0: 4637979 p: 573 m: 1318802294932 ms: 23 dur: 1
4637979
mp: 5649499 p: 612 m: 1017886660 ms: 170 dur: 1
5649499
mp: 6674175 p: 620 m: 125218704148 ms: 14 dur: 1
mp: 6649279 p: 664 m: 15208728208 ms: 6 dur: 1
m0: 6631675 p: 576 m: 60342610919632 ms: 6 dur: 1
6631675
6649279
6674175
mp: 8865705 p: 667 m: 15208728208 ms: 168 dur: 1
mp: 8400511 p: 685 m: 159424614880 ms: 88 dur: 1
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 102 dur: 1
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 390 dur: 2
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 118 dur: 2
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 245 dur: 2
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 1108 dur: 3
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 375 dur: 4
36791535
mp: 63728127 p: 949 m: 966616035460 ms: 2312 dur: 6
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 1426 dur: 7
80049391
mp: 127456255 p: 950 m: 966616035460 ms: 4189 dur: 11
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 3930 dur: 15
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 3922 dur: 19
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 1468 dur: 21
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 4146 dur: 25
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 4928 dur: 30
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 22237 dur: 52
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 13706 dur: 66
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 70378 dur: 136
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 7312 dur: 143
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 262 dur: 144
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 28226 dur: 172
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 103398 dur: 275
2610744987
last number: 4294967296
completed: 463276

reference m4 max long run

m..mbp8 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.Collatz          
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
m0: 688127 p: 136 m: 677985856 ms: 18 dur: 0
mp: 507903 p: 363 m: 333612088 ms: 19 dur: 0
mp: 425985 p: 311 m: 3155092 ms: 19 dur: 0
m0: 950271 p: 245 m: 2106598912 ms: 19 dur: 0
mp: 458959 p: 262 m: 76394644 ms: 19 dur: 0
mp: 868447 p: 338 m: 396067480 ms: 19 dur: 0
mp: 410011 p: 448 m: 76778008 ms: 20 dur: 0
m0: 608111 p: 402 m: 24648077896 ms: 0 dur: 0
m0: 376831 p: 329 m: 24414590536 ms: 19 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 18 dur: 0
mp: 491525 p: 257 m: 1474576 ms: 19 dur: 0
mp: 511935 p: 469 m: 76778008 ms: 5 dur: 0
mp: 475161 p: 244 m: 1603672 ms: 18 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 2 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 0 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 6 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 2 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 2 dur: 0
163839
376831
410011
425985
458959
475161
491525
507903
511935
608111
688127
704511
704623
837799
868447
939497
950271
1042431
m0: 1212415 p: 328 m: 139646736808 ms: 10 dur: 0
mp: 1689023 p: 525 m: 90239155648 ms: 0 dur: 0
mp: 1117065 p: 527 m: 2974984576 ms: 6 dur: 0
mp: 1501353 p: 530 m: 90239155648 ms: 1 dur: 0
m0: 1875711 p: 370 m: 155904349696 ms: 2 dur: 0
m0: 1988859 p: 427 m: 156914378224 ms: 0 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 0 dur: 0
1117065
1212415
1501353
1689023
1723519
1875711
1988859
m0: 2643183 p: 430 m: 190459818484 ms: 11 dur: 0
mp: 3064033 p: 562 m: 46571871940 ms: 2 dur: 0
m0: 2684647 p: 399 m: 352617812944 ms: 1 dur: 0
m0: 3041127 p: 363 m: 622717901620 ms: 2 dur: 0
2643183
2684647
3041127
3064033
m0: 3873535 p: 322 m: 858555169576 ms: 8 dur: 0
mp: 3732423 p: 596 m: 294475592320 ms: 2 dur: 0
3732423
3873535
m0: 5217727 p: 568 m: 1318802294932 ms: 11 dur: 0
5217727
m0: 5656191 p: 400 m: 2412493616608 ms: 18 dur: 0
mp: 5649499 p: 612 m: 1017886660 ms: 3 dur: 0
5649499
5656191
mp: 6674175 p: 620 m: 125218704148 ms: 4 dur: 0
m0: 6631675 p: 576 m: 60342610919632 ms: 1 dur: 0
mp: 6649279 p: 664 m: 15208728208 ms: 0 dur: 0
6631675
6649279
6674175
mp: 8865705 p: 667 m: 15208728208 ms: 25 dur: 0
mp: 8400511 p: 685 m: 159424614880 ms: 6 dur: 0
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 22 dur: 0
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 58 dur: 0
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 7 dur: 0
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 32 dur: 0
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 160 dur: 0
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 64 dur: 0
36791535
m0: 38595583 p: 483 m: 474637698851092 ms: 16 dur: 0
38595583
mp: 63728127 p: 949 m: 966616035460 ms: 290 dur: 0
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 187 dur: 0
80049391
m0: 120080895 p: 438 m: 3277901576118580 ms: 475 dur: 1
120080895
mp: 127456255 p: 950 m: 966616035460 ms: 88 dur: 1
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 508 dur: 2
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 493 dur: 2
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 184 dur: 2
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 517 dur: 3
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 607 dur: 3
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 2675 dur: 6
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 1645 dur: 8
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 8394 dur: 16
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 866 dur: 17
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 47 dur: 17
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 3312 dur: 20
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 11900 dur: 32
2610744987
last number: 4294967296
completed: 54350

@obriensystems obriensystems changed the title Java 64 bit native long vs BigInteger performance - expected 10x slowdown but seeing 50x slowdown specific to IA64 over ARM64 Java 64 bit native long vs BigInteger performance - expected 9x slowdown but seeing 50x slowdown specific to IA64 over ARM64 Jan 2, 2025
@obriensystems
Copy link
Member Author

obriensystems commented Jan 2, 2025

13900K BigInteger

micha@13900a MINGW64 /c/wse_github/obrienlabsdev/performance/cpu/virtual/multithreaded/128bit/java-benchmark-128-cli/performance-nbi (main)
$ java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.CollatzBigInteger
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
m0: 696319 p: 110 m: 457371412 ms: 23 dur: 0
mp: 172033 p: 152 m: 516100 ms: 23 dur: 0
mp: 958465 p: 214 m: 2875396 ms: 23 dur: 0
mp: 761855 p: 361 m: 333612088 ms: 24 dur: 0
m0: 376831 p: 329 m: 24414590536 ms: 24 dur: 0
mp: 344063 p: 135 m: 200884696 ms: 23 dur: 0
mp: 827503 p: 418 m: 72553696 ms: 9 dur: 0
mp: 796095 p: 467 m: 392181316 ms: 63 dur: 0
mp: 927003 p: 475 m: 4280566984 ms: 56 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 0 dur: 0
mp: 1003263 p: 488 m: 7222283188 ms: 57 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 38 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 137 dur: 0
172033
344063
376831
696319
761855
796095
827503
837799
927003
939497
958465
1003263
1042431
mp: 1501353 p: 530 m: 90239155648 ms: 358 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 17 dur: 0
1501353
1723519
mp: 3064033 p: 562 m: 46571871940 ms: 290 dur: 1
m0: 2643183 p: 430 m: 190459818484 ms: 85 dur: 1
m0: 3041127 p: 363 m: 622717901620 ms: 35 dur: 1
2643183
3041127
3064033
mp: 4085377 p: 565 m: 46571871940 ms: 370 dur: 1
mp: 3542887 p: 583 m: 294475592320 ms: 123 dur: 1
mp: 3732423 p: 596 m: 294475592320 ms: 13 dur: 1
3542887
3732423
4085377
m0: 5217727 p: 568 m: 1318802294932 ms: 318 dur: 2
5217727
mp: 5649499 p: 612 m: 1017886660 ms: 242 dur: 2
5649499
mp: 6674175 p: 620 m: 125218704148 ms: 412 dur: 2
mp: 6649279 p: 664 m: 15208728208 ms: 82 dur: 2
m0: 6631675 p: 576 m: 60342610919632 ms: 66 dur: 2
6631675
6649279
6674175
mp: 8865705 p: 667 m: 15208728208 ms: 638 dur: 3
mp: 8400511 p: 685 m: 159424614880 ms: 173 dur: 3
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 813 dur: 4
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 1706 dur: 6
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 517 dur: 6
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 1071 dur: 7
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 5681 dur: 13
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 2043 dur: 15
36791535
mp: 63728127 p: 949 m: 966616035460 ms: 11852 dur: 27
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 7326 dur: 34
80049391
mp: 127456255 p: 950 m: 966616035460 ms: 22068 dur: 56
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 20218 dur: 77
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 19402 dur: 96
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 7280 dur: 103
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 20180 dur: 124
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 24808 dur: 148
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 108123 dur: 256
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 66669 dur: 323
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 346051 dur: 669
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 35617 dur: 705
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 1565 dur: 706
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 137992 dur: 844
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 499172 dur: 1344
2610744987
last number: 4294967296
completed: 2263971

defender kicks in only for the long version
Screenshot 2025-01-02 at 12 09 04

13900K long reference

micha@13900a MINGW64 /c/wse_github/obrienlabsdev/performance/cpu/virtual/multithreaded/128bit/java-benchmark-128-cli/performance-nbi (main)
$ java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.Collatz
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 606207 p: 327 m: 699811540 ms: 25 dur: 0
m0: 303103 p: 326 m: 699811540 ms: 22 dur: 0
mp: 475135 p: 182 m: 277412200 ms: 22 dur: 0
mp: 827503 p: 418 m: 72553696 ms: 1 dur: 0
m0: 376831 p: 329 m: 24414590536 ms: 24 dur: 0
mp: 344063 p: 135 m: 200884696 ms: 21 dur: 0
m0: 696319 p: 110 m: 457371412 ms: 21 dur: 0
mp: 172031 p: 134 m: 127122352 ms: 21 dur: 0
mp: 81919 p: 288 m: 47829688 ms: 22 dur: 0
mp: 933999 p: 338 m: 90887344 ms: 25 dur: 0
mp: 212991 p: 310 m: 124357192 ms: 24 dur: 0
m0: 958463 p: 126 m: 629558296 ms: 21 dur: 0
mp: 761855 p: 361 m: 333612088 ms: 28 dur: 0
mp: 737371 p: 379 m: 60669160 ms: 30 dur: 0
m0: 608111 p: 402 m: 24648077896 ms: 11 dur: 0
mp: 345947 p: 440 m: 76778008 ms: 2 dur: 0
mp: 938143 p: 444 m: 54098116 ms: 1 dur: 0
mp: 1003263 p: 488 m: 7222283188 ms: 1 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 1 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 5 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 10 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 6 dur: 0
81919
172031
212991
303103
344063
345947
376831
475135
606207
608111
696319
704511
737371
761855
827503
837799
933999
938143
939497
958463
1003263
1042431
mp: 1723519 p: 556 m: 46571871940 ms: 19 dur: 0
m0: 1212415 p: 328 m: 139646736808 ms: 3 dur: 0
m0: 1875711 p: 370 m: 155904349696 ms: 8 dur: 0
m0: 1988859 p: 427 m: 156914378224 ms: 2 dur: 0
1212415
1723519
1875711
1988859
m0: 3041127 p: 363 m: 622717901620 ms: 10 dur: 0
mp: 3064033 p: 562 m: 46571871940 ms: 1 dur: 0
3041127
3064033
mp: 4085377 p: 565 m: 46571871940 ms: 9 dur: 0
mp: 3542887 p: 583 m: 294475592320 ms: 2 dur: 0
mp: 3732423 p: 596 m: 294475592320 ms: 0 dur: 0
m0: 3873535 p: 322 m: 858555169576 ms: 2 dur: 0
3542887
3732423
3873535
4085377
m0: 5217727 p: 568 m: 1318802294932 ms: 10 dur: 0
5217727
m0: 5656191 p: 400 m: 2412493616608 ms: 9 dur: 0
mp: 5649499 p: 612 m: 1017886660 ms: 1 dur: 0
5649499
5656191
m0: 6631675 p: 576 m: 60342610919632 ms: 4 dur: 0
mp: 6674175 p: 620 m: 125218704148 ms: 0 dur: 0
mp: 6649279 p: 664 m: 15208728208 ms: 0 dur: 0
6631675
6649279
6674175
mp: 8400511 p: 685 m: 159424614880 ms: 19 dur: 0
8400511
mp: 11200681 p: 688 m: 159424614880 ms: 24 dur: 0
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 48 dur: 0
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 15 dur: 0
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 37 dur: 0
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 110 dur: 0
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 48 dur: 0
36791535
m0: 38595583 p: 483 m: 474637698851092 ms: 14 dur: 0
38595583
mp: 63728127 p: 949 m: 966616035460 ms: 288 dur: 0
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 200 dur: 0
80049391
m0: 120080895 p: 438 m: 3277901576118580 ms: 392 dur: 1
120080895
mp: 127456255 p: 950 m: 966616035460 ms: 65 dur: 1
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 382 dur: 1
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 360 dur: 2
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 142 dur: 2
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 371 dur: 2
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 453 dur: 3
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 1963 dur: 5
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 1206 dur: 6
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 6178 dur: 12
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 632 dur: 13
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 29 dur: 13
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 2432 dur: 15
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 8738 dur: 24
2610744987
last number: 4294967296
completed: 40286

@obriensystems
Copy link
Member Author

macbook M1Max 8/2

long first
formance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.Collatz
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 606207 p: 327 m: 699811540 ms: 25 dur: 0
m0: 819199 p: 299 m: 717445348 ms: 25 dur: 0
mp: 344105 p: 197 m: 3919588 ms: 25 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 25 dur: 0
m0: 688127 p: 136 m: 677985856 ms: 25 dur: 0
m0: 950271 p: 245 m: 2106598912 ms: 25 dur: 0
mp: 868447 p: 338 m: 396067480 ms: 26 dur: 0
mp: 477417 p: 381 m: 402301888 ms: 28 dur: 0
m0: 559785 p: 164 m: 4711755904 ms: 0 dur: 0
mp: 950943 p: 413 m: 24371656 ms: 3 dur: 0
m0: 478463 p: 182 m: 17202377752 ms: 1 dur: 0
m0: 608111 p: 402 m: 24648077896 ms: 0 dur: 0
mp: 345947 p: 440 m: 76778008 ms: 1 dur: 0
mp: 615017 p: 446 m: 76778008 ms: 8 dur: 0
mp: 970599 p: 457 m: 125931832 ms: 5 dur: 0
mp: 820023 p: 449 m: 76778008 ms: 1 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 0 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 0 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 5 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 18 dur: 0
163839
344105
345947
477417
478463
559785
606207
608111
615017
688127
704511
704623
819199
820023
837799
868447
950271
950943
970599
1042431
m0: 1212415 p: 328 m: 139646736808 ms: 22 dur: 0
mp: 1564063 p: 530 m: 7222283188 ms: 2 dur: 0
m0: 1441407 p: 367 m: 151629574372 ms: 1 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 2 dur: 0
m0: 1875711 p: 370 m: 155904349696 ms: 1 dur: 0
m0: 1988859 p: 427 m: 156914378224 ms: 4 dur: 0
1212415
1441407
1564063
1723519
1875711
1988859
mp: 3064033 p: 562 m: 46571871940 ms: 12 dur: 0
m0: 3041127 p: 363 m: 622717901620 ms: 1 dur: 0
3041127
3064033
mp: 3542887 p: 583 m: 294475592320 ms: 27 dur: 0
m0: 3873535 p: 322 m: 858555169576 ms: 11 dur: 0
mp: 3732423 p: 596 m: 294475592320 ms: 1 dur: 0
3542887
3732423
3873535
m0: 4637979 p: 573 m: 1318802294932 ms: 14 dur: 0
4637979
m0: 5656191 p: 400 m: 2412493616608 ms: 33 dur: 0
mp: 5649499 p: 612 m: 1017886660 ms: 3 dur: 0
5649499
5656191
m0: 6416623 p: 483 m: 4799996945368 ms: 6 dur: 0
mp: 6649279 p: 664 m: 15208728208 ms: 0 dur: 0
m0: 6631675 p: 576 m: 60342610919632 ms: 2 dur: 0
6416623
6631675
6649279
mp: 8865705 p: 667 m: 15208728208 ms: 49 dur: 0
mp: 8400511 p: 685 m: 159424614880 ms: 17 dur: 0
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 45 dur: 0
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 103 dur: 0
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 24 dur: 0
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 66 dur: 0
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 317 dur: 0
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 122 dur: 0
36791535
m0: 38595583 p: 483 m: 474637698851092 ms: 28 dur: 0
38595583
mp: 63728127 p: 949 m: 966616035460 ms: 607 dur: 1
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 412 dur: 2
80049391
m0: 120080895 p: 438 m: 3277901576118580 ms: 1071 dur: 3
120080895
mp: 127456255 p: 950 m: 966616035460 ms: 183 dur: 3
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 1075 dur: 4
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 1070 dur: 5
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 373 dur: 5
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 1050 dur: 6
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 1324 dur: 8
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 5710 dur: 13
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 3493 dur: 17
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 18010 dur: 35
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 1818 dur: 37
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 107 dur: 37
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 7200 dur: 44
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 25694 dur: 70
2610744987
last number: 4294967296
completed: 116763


BigInteger
en@mbp7 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.CollatzBigInteger
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 507903 p: 363 m: 333612088 ms: 26 dur: 0
m0: 688127 p: 136 m: 677985856 ms: 25 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 25 dur: 0
m0: 950271 p: 245 m: 2106598912 ms: 25 dur: 0
mp: 294911 p: 220 m: 1570824736 ms: 26 dur: 0
mp: 410011 p: 448 m: 76778008 ms: 21 dur: 0
m0: 689639 p: 211 m: 6973568800 ms: 25 dur: 0
m0: 478463 p: 182 m: 17202377752 ms: 53 dur: 0
mp: 511935 p: 469 m: 76778008 ms: 98 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 58 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 9 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 135 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 252 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 83 dur: 0
163839
294911
410011
478463
507903
511935
626331
688127
689639
704511
704623
837799
939497
950271
m0: 1212415 p: 328 m: 139646736808 ms: 194 dur: 0
mp: 1689023 p: 525 m: 90239155648 ms: 81 dur: 1
mp: 1723519 p: 556 m: 46571871940 ms: 4 dur: 1
1212415
1689023
1723519
mp: 3064033 p: 562 m: 46571871940 ms: 385 dur: 1
m0: 2684647 p: 399 m: 352617812944 ms: 44 dur: 1
2684647
3064033
m0: 3873535 p: 322 m: 858555169576 ms: 315 dur: 1
mp: 3732423 p: 596 m: 294475592320 ms: 21 dur: 1
3732423
3873535
m0: 5656191 p: 400 m: 2412493616608 ms: 767 dur: 2
mp: 5649499 p: 612 m: 1017886660 ms: 55 dur: 2
5649499
5656191
mp: 6674175 p: 620 m: 125218704148 ms: 72 dur: 2
mp: 6649279 p: 664 m: 15208728208 ms: 14 dur: 2
m0: 6631675 p: 576 m: 60342610919632 ms: 43 dur: 2
6631675
6649279
6674175
mp: 8400511 p: 685 m: 159424614880 ms: 692 dur: 3
8400511
mp: 11200681 p: 688 m: 159424614880 ms: 518 dur: 3
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 1353 dur: 5
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 293 dur: 5
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 877 dur: 6
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 3602 dur: 10
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 1312 dur: 11
36791535
mp: 63728127 p: 949 m: 966616035460 ms: 8047 dur: 19
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 4738 dur: 24
80049391
mp: 127456255 p: 950 m: 966616035460 ms: 14438 dur: 38
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 12996 dur: 51
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 12900 dur: 64
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 4689 dur: 69
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 13596 dur: 82
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 16165 dur: 98
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 70312 dur: 169
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 43510 dur: 212
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 219383 dur: 432
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 22244 dur: 454
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 1240 dur: 455
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 85556 dur: 541
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 310950 dur: 852
2610744987
last number: 4294967296
completed: 1433093

@obriensystems
Copy link
Member Author

obriensystems commented Jan 2, 2025

Mac Mini M2 pro 6/2

long first
rien@mini07 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.Collatz                
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 606207 p: 327 m: 699811540 ms: 26 dur: 0
m0: 477793 p: 262 m: 2482111348 ms: 28 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 26 dur: 0
m0: 950271 p: 245 m: 2106598912 ms: 26 dur: 0
mp: 32801 p: 235 m: 250504 ms: 26 dur: 0
mp: 344063 p: 135 m: 200884696 ms: 26 dur: 0
mp: 230631 p: 442 m: 76778008 ms: 27 dur: 0
m0: 688127 p: 136 m: 677985856 ms: 25 dur: 0
mp: 868447 p: 338 m: 396067480 ms: 27 dur: 0
m0: 688553 p: 273 m: 2512193776 ms: 2 dur: 0
m0: 870171 p: 237 m: 3255240148 ms: 6 dur: 0
m0: 689639 p: 211 m: 6973568800 ms: 0 dur: 0
m0: 478463 p: 182 m: 17202377752 ms: 4 dur: 0
m0: 608111 p: 402 m: 24648077896 ms: 0 dur: 0
mp: 615017 p: 446 m: 76778008 ms: 4 dur: 0
mp: 970599 p: 457 m: 125931832 ms: 2 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 3 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 0 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 1 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 12 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 7 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 5 dur: 0
32801
163839
230631
344063
477793
478463
606207
608111
615017
626331
688127
688553
689639
704511
704623
837799
868447
870171
939497
950271
970599
1042431
m0: 1212415 p: 328 m: 139646736808 ms: 21 dur: 0
m0: 1441407 p: 367 m: 151629574372 ms: 2 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 4 dur: 0
m0: 1875711 p: 370 m: 155904349696 ms: 2 dur: 0
m0: 1988859 p: 427 m: 156914378224 ms: 2 dur: 0
1212415
1441407
1723519
1875711
1988859
mp: 3064033 p: 562 m: 46571871940 ms: 15 dur: 0
m0: 3041127 p: 363 m: 622717901620 ms: 1 dur: 0
3041127
3064033
mp: 4085377 p: 565 m: 46571871940 ms: 30 dur: 0
mp: 3732423 p: 596 m: 294475592320 ms: 2 dur: 0
m0: 3873535 p: 322 m: 858555169576 ms: 7 dur: 0
3732423
3873535
4085377
m0: 4637979 p: 573 m: 1318802294932 ms: 12 dur: 0
4637979
m0: 5656191 p: 400 m: 2412493616608 ms: 41 dur: 0
mp: 5649499 p: 612 m: 1017886660 ms: 3 dur: 0
5649499
5656191
m0: 6416623 p: 483 m: 4799996945368 ms: 11 dur: 0
mp: 6649279 p: 664 m: 15208728208 ms: 0 dur: 0
m0: 6631675 p: 576 m: 60342610919632 ms: 6 dur: 0
6416623
6631675
6649279
mp: 8865705 p: 667 m: 15208728208 ms: 43 dur: 0
mp: 8400511 p: 685 m: 159424614880 ms: 13 dur: 0
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 45 dur: 0
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 108 dur: 0
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 29 dur: 0
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 90 dur: 0
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 327 dur: 0
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 137 dur: 1
36791535
m0: 38595583 p: 483 m: 474637698851092 ms: 49 dur: 1
38595583
mp: 63728127 p: 949 m: 966616035460 ms: 643 dur: 1
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 435 dur: 2
80049391
m0: 120080895 p: 438 m: 3277901576118580 ms: 1150 dur: 3
120080895
mp: 127456255 p: 950 m: 966616035460 ms: 159 dur: 3
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 1187 dur: 4
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 1119 dur: 5
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 439 dur: 6
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 1165 dur: 7
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 1430 dur: 8
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 6202 dur: 15
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 3829 dur: 18
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 19221 dur: 38
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 1958 dur: 40
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 81 dur: 40
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 7556 dur: 47
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 27878 dur: 75
2610744987
last number: 4294967296
completed: 126379




BigInteger
n@mini07 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.CollatzBigInteger 
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
m0: 688127 p: 136 m: 677985856 ms: 25 dur: 0
mp: 507903 p: 363 m: 333612088 ms: 25 dur: 0
m0: 950271 p: 245 m: 2106598912 ms: 24 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 24 dur: 0
mp: 410011 p: 448 m: 76778008 ms: 32 dur: 0
m0: 689639 p: 211 m: 6973568800 ms: 43 dur: 0
m0: 478463 p: 182 m: 17202377752 ms: 52 dur: 0
mp: 511935 p: 469 m: 76778008 ms: 11 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 89 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 22 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 182 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 93 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 210 dur: 0
163839
410011
478463
507903
511935
626331
688127
689639
704511
704623
837799
939497
950271
m0: 1212415 p: 328 m: 139646736808 ms: 241 dur: 1
mp: 1564063 p: 530 m: 7222283188 ms: 23 dur: 1
mp: 1723519 p: 556 m: 46571871940 ms: 131 dur: 1
1212415
1564063
1723519
m0: 2684647 p: 399 m: 352617812944 ms: 253 dur: 1
mp: 3064033 p: 562 m: 46571871940 ms: 0 dur: 1
2684647
3064033
mp: 4085377 p: 565 m: 46571871940 ms: 320 dur: 1
m0: 3873535 p: 322 m: 858555169576 ms: 82 dur: 1
mp: 3732423 p: 596 m: 294475592320 ms: 271 dur: 2
3732423
3873535
4085377
m0: 5656191 p: 400 m: 2412493616608 ms: 479 dur: 2
mp: 5649499 p: 612 m: 1017886660 ms: 81 dur: 2
5649499
5656191
mp: 6649279 p: 664 m: 15208728208 ms: 154 dur: 2
m0: 6631675 p: 576 m: 60342610919632 ms: 30 dur: 2
6631675
6649279
mp: 8865705 p: 667 m: 15208728208 ms: 718 dur: 3
mp: 8400511 p: 685 m: 159424614880 ms: 118 dur: 3
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 403 dur: 4
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 1338 dur: 5
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 319 dur: 5
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 878 dur: 6
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 3616 dur: 10
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 1516 dur: 11
36791535
mp: 63728127 p: 949 m: 966616035460 ms: 8043 dur: 19
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 4868 dur: 24
80049391
mp: 127456255 p: 950 m: 966616035460 ms: 15193 dur: 39
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 13993 dur: 53
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 13262 dur: 67
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 5076 dur: 72
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 13871 dur: 86
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 16735 dur: 102
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 72905 dur: 175
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 45537 dur: 221
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 232004 dur: 453
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 23731 dur: 476
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 1001 dur: 477
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 91275 dur: 569
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 321988 dur: 891
2610744987
last number: 4294967296
completed: 1469051

@obriensystems
Copy link
Member Author

p1gen6

micha@p1gen6 MINGW64 /c/wse_github/ObrienlabsDev/performance/cpu/virtual/multithreaded/128bit/java-benchmark-128-cli/performance-nbi (main)
$ java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.CollatzBigInteger
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 172033 p: 152 m: 516100 ms: 26 dur: 0
mp: 606207 p: 327 m: 699811540 ms: 26 dur: 0
mp: 344063 p: 135 m: 200884696 ms: 26 dur: 0
m0: 696319 p: 110 m: 457371412 ms: 26 dur: 0
m0: 565247 p: 327 m: 24414590536 ms: 27 dur: 0
mp: 761855 p: 361 m: 333612088 ms: 28 dur: 0
mp: 958465 p: 214 m: 2875396 ms: 26 dur: 0
mp: 336199 p: 365 m: 229993504 ms: 24 dur: 0
mp: 869467 p: 387 m: 76394644 ms: 47 dur: 0
mp: 1000479 p: 426 m: 854564416 ms: 6 dur: 0
mp: 345947 p: 440 m: 76778008 ms: 21 dur: 0
mp: 1003263 p: 488 m: 7222283188 ms: 60 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 73 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 25 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 122 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 92 dur: 0
172033
336199
344063
345947
565247
606207
626331
696319
761855
837799
869467
939497
958465
1000479
1003263
1042431
mp: 1689023 p: 525 m: 90239155648 ms: 34 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 5 dur: 0
1689023
1723519
m0: 2684647 p: 399 m: 352617812944 ms: 366 dur: 0
mp: 3064033 p: 562 m: 46571871940 ms: 129 dur: 1
2684647
3064033
mp: 4063723 p: 565 m: 125218704148 ms: 233 dur: 1
mp: 3732423 p: 596 m: 294475592320 ms: 77 dur: 1
m0: 3873535 p: 322 m: 858555169576 ms: 168 dur: 1
3732423
3873535
4063723
mp: 5649499 p: 612 m: 1017886660 ms: 445 dur: 1
m0: 5656191 p: 400 m: 2412493616608 ms: 3 dur: 1
5649499
5656191
mp: 6649279 p: 664 m: 15208728208 ms: 425 dur: 2
m0: 6631675 p: 576 m: 60342610919632 ms: 40 dur: 2
6631675
6649279
mp: 8865705 p: 667 m: 15208728208 ms: 619 dur: 3
mp: 8400511 p: 685 m: 159424614880 ms: 135 dur: 3
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 736 dur: 3
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 1659 dur: 5
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 416 dur: 6
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 948 dur: 6
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 4928 dur: 11
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 1904 dur: 13
36791535
mp: 63728127 p: 949 m: 966616035460 ms: 10554 dur: 24
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 6496 dur: 30
80049391
mp: 127456255 p: 950 m: 966616035460 ms: 19519 dur: 50
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 17682 dur: 68
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 17530 dur: 85
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 6591 dur: 92
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 18044 dur: 110
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 21578 dur: 131
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 98697 dur: 230
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 65518 dur: 296
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 342198 dur: 638
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 35187 dur: 673
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 1736 dur: 675
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 136361 dur: 811
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 495047 dur: 1306
2610744987
last number: 4294967296
completed: 2216508


@obriensystems
Copy link
Member Author

M4 pro 8p4e

mini08 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.Collatz
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 344219 p: 259 m: 76394644 ms: 23 dur: 0
mp: 507903 p: 363 m: 333612088 ms: 23 dur: 0
mp: 163839 p: 196 m: 161425204 ms: 20 dur: 0
m0: 294911 p: 220 m: 1570824736 ms: 23 dur: 0
m0: 491971 p: 169 m: 2798323360 ms: 24 dur: 0
mp: 950943 p: 413 m: 24371656 ms: 26 dur: 0
mp: 475161 p: 244 m: 1603672 ms: 20 dur: 0
m0: 459035 p: 275 m: 2512193776 ms: 24 dur: 0
m0: 688127 p: 136 m: 677985856 ms: 20 dur: 0
mp: 425985 p: 311 m: 3155092 ms: 23 dur: 0
m0: 459759 p: 213 m: 6973568800 ms: 0 dur: 0
mp: 230631 p: 442 m: 76778008 ms: 0 dur: 0
mp: 461263 p: 443 m: 76778008 ms: 2 dur: 0
m0: 478463 p: 182 m: 17202377752 ms: 1 dur: 0
m0: 480481 p: 412 m: 24648077896 ms: 1 dur: 0
mp: 511935 p: 469 m: 76778008 ms: 0 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 5 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 0 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 7 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 5 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 2 dur: 0
m0: 1042431 p: 439 m: 90239155648 ms: 0 dur: 0
163839
230631
294911
344219
425985
459035
459759
461263
475161
478463
480481
491971
507903
511935
626331
688127
704511
704623
837799
939497
950943
1042431
m0: 1212415 p: 328 m: 139646736808 ms: 9 dur: 0
mp: 1689023 p: 525 m: 90239155648 ms: 0 dur: 0
m0: 1875711 p: 370 m: 155904349696 ms: 2 dur: 0
mp: 1723519 p: 556 m: 46571871940 ms: 4 dur: 0
m0: 1988859 p: 427 m: 156914378224 ms: 3 dur: 0
1212415
1689023
1723519
1875711
1988859
mp: 3064033 p: 562 m: 46571871940 ms: 11 dur: 0
m0: 2684647 p: 399 m: 352617812944 ms: 1 dur: 0
m0: 3041127 p: 363 m: 622717901620 ms: 1 dur: 0
2684647
3041127
3064033
mp: 3542887 p: 583 m: 294475592320 ms: 18 dur: 0
mp: 3732423 p: 596 m: 294475592320 ms: 7 dur: 0
m0: 3873535 p: 322 m: 858555169576 ms: 0 dur: 0
3542887
3732423
3873535
m0: 4637979 p: 573 m: 1318802294932 ms: 9 dur: 0
4637979
m0: 5656191 p: 400 m: 2412493616608 ms: 23 dur: 0
mp: 5649499 p: 612 m: 1017886660 ms: 1 dur: 0
5649499
5656191
mp: 6674175 p: 620 m: 125218704148 ms: 6 dur: 0
mp: 6649279 p: 664 m: 15208728208 ms: 0 dur: 0
m0: 6631675 p: 576 m: 60342610919632 ms: 1 dur: 0
6631675
6649279
6674175
mp: 8865705 p: 667 m: 15208728208 ms: 35 dur: 0
mp: 8400511 p: 685 m: 159424614880 ms: 12 dur: 0
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 29 dur: 0
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 75 dur: 0
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 18 dur: 0
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 46 dur: 0
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 208 dur: 0
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 87 dur: 0
36791535
m0: 38595583 p: 483 m: 474637698851092 ms: 27 dur: 0
38595583
mp: 63728127 p: 949 m: 966616035460 ms: 430 dur: 1
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 272 dur: 1
80049391
m0: 120080895 p: 438 m: 3277901576118580 ms: 702 dur: 2
120080895
mp: 127456255 p: 950 m: 966616035460 ms: 157 dur: 2
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 724 dur: 2
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 725 dur: 3
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 272 dur: 3
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 739 dur: 4
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 882 dur: 5
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 3974 dur: 9
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 2476 dur: 12
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 12376 dur: 24
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 1269 dur: 25
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 54 dur: 25
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 4900 dur: 30
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 17610 dur: 48
2610744987
last number: 4294967296
completed: 80574



n@mini08 performance-nbi % java -cp target/performance-nbi-0.0.1-SNAPSHOT.jar dev.obrienlabs.performance.nbi.CollatzBigInteger
Collatz multithreaded 2025 michael at obrienlabs.dev
Searching: 32 space, batch 0 of 4096 with 20 bits of 1048576 threads
mp: 163839 p: 196 m: 161425204 ms: 20 dur: 0
mp: 507903 p: 363 m: 333612088 ms: 24 dur: 0
m0: 688127 p: 136 m: 677985856 ms: 20 dur: 0
m0: 294911 p: 220 m: 1570824736 ms: 24 dur: 0
mp: 950943 p: 413 m: 24371656 ms: 38 dur: 0
mp: 492571 p: 425 m: 76778008 ms: 35 dur: 0
m0: 459759 p: 213 m: 6973568800 ms: 2 dur: 0
mp: 230631 p: 442 m: 76778008 ms: 31 dur: 0
m0: 478463 p: 182 m: 17202377752 ms: 29 dur: 0
mp: 461263 p: 443 m: 76778008 ms: 29 dur: 0
mp: 511935 p: 469 m: 76778008 ms: 21 dur: 0
m0: 704511 p: 242 m: 56991483520 ms: 76 dur: 0
mp: 704623 p: 503 m: 7222283188 ms: 17 dur: 0
mp: 939497 p: 506 m: 7222283188 ms: 169 dur: 0
mp: 626331 p: 508 m: 7222283188 ms: 298 dur: 0
mp: 837799 p: 524 m: 2974984576 ms: 28 dur: 0
163839
230631
294911
459759
461263
478463
492571
507903
511935
626331
688127
704511
704623
837799
939497
950943
m0: 1212415 p: 328 m: 139646736808 ms: 265 dur: 1
mp: 1993215 p: 533 m: 68951681944 ms: 15 dur: 1
mp: 1723519 p: 556 m: 46571871940 ms: 21 dur: 1
1212415
1723519
1993215
m0: 3041127 p: 363 m: 622717901620 ms: 175 dur: 1
mp: 3064033 p: 562 m: 46571871940 ms: 5 dur: 1
3041127
3064033
mp: 4085377 p: 565 m: 46571871940 ms: 218 dur: 1
mp: 3732423 p: 596 m: 294475592320 ms: 1 dur: 1
3732423
4085377
m0: 4637979 p: 573 m: 1318802294932 ms: 151 dur: 1
4637979
mp: 5649499 p: 612 m: 1017886660 ms: 247 dur: 1
5649499
mp: 6649279 p: 664 m: 15208728208 ms: 49 dur: 1
m0: 6631675 p: 576 m: 60342610919632 ms: 21 dur: 1
6631675
6649279
mp: 8865705 p: 667 m: 15208728208 ms: 288 dur: 2
mp: 8400511 p: 685 m: 159424614880 ms: 113 dur: 2
8400511
8865705
mp: 11200681 p: 688 m: 159424614880 ms: 190 dur: 2
11200681
mp: 14934241 p: 691 m: 159424614880 ms: 588 dur: 3
14934241
mp: 15733191 p: 704 m: 159424614880 ms: 192 dur: 3
15733191
m0: 19638399 p: 606 m: 306296925203752 ms: 422 dur: 3
19638399
mp: 31466383 p: 705 m: 159424614880 ms: 1644 dur: 5
31466383
mp: 36791535 p: 744 m: 159424614880 ms: 593 dur: 5
36791535
mp: 63728127 p: 949 m: 966616035460 ms: 3572 dur: 9
63728127
m0: 80049391 p: 572 m: 2185143829170100 ms: 2254 dur: 11
80049391
mp: 127456255 p: 950 m: 966616035460 ms: 6784 dur: 18
127456255
mp: 169941673 p: 953 m: 966616035460 ms: 6450 dur: 25
169941673
m0: 210964383 p: 475 m: 6404797161121264 ms: 6638 dur: 31
210964383
mp: 226588897 p: 956 m: 966616035460 ms: 2534 dur: 34
226588897
mp: 268549803 p: 964 m: 966616035460 ms: 6729 dur: 40
268549803
m0: 319804831 p: 592 m: 1414236446719942480 ms: 8201 dur: 49
319804831
mp: 537099607 p: 965 m: 966616035460 ms: 36590 dur: 85
537099607
mp: 670617279 p: 986 m: 966616035460 ms: 22895 dur: 108
670617279
mp: 1341234559 p: 987 m: 966616035460 ms: 116280 dur: 224
1341234559
m0: 1410123943 p: 770 m: 7125885122794452160 ms: 11710 dur: 236
1410123943
mp: 1412987847 p: 1000 m: 966616035460 ms: 532 dur: 237
1412987847
mp: 1674652263 p: 1008 m: 966616035460 ms: 45185 dur: 282
1674652263
mp: 2610744987 p: 1050 m: 966616035460 ms: 161062 dur: 443
2610744987
last number: 4294967296
completed: 731623

obriensystems added a commit that referenced this issue Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant