Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: this_feature_currently_requires_accessing_site_using_safari
bei mir lüppt java nich....
windows 2003 server x64...
1 thread average: 451 ms
2 threads average: 339 ms
3 threads average: 294 ms
4 threads average: 248 ms
5 threads average: 249 ms
6 threads average: 252 ms
7 threads average: 251 ms
8 threads average: 251 ms
1 thread -> 2 threads: 32.72%
1 thread -> 3 threads: 53.2%
1 thread -> 4 threads: 81.24%
1 thread -> 5 threads: 80.54%
1 thread -> 6 threads: 78.97%
1 thread -> 7 threads: 79.61%
1 thread -> 8 threads: 79.46%
2 threads -> 3 threads: 15.43%
2 threads -> 4 threads: 36.56%
2 threads -> 5 threads: 36.03%
2 threads -> 6 threads: 34.85%
2 threads -> 7 threads: 35.33%
2 threads -> 8 threads: 35.21%
3 threads -> 4 threads: 18.3%
3 threads -> 5 threads: 17.85%
3 threads -> 6 threads: 16.82%
3 threads -> 7 threads: 17.24%
3 threads -> 8 threads: 17.14%
4 threads -> 5 threads: -0.38%
4 threads -> 6 threads: -1.25%
4 threads -> 7 threads: -0.9%
4 threads -> 8 threads: -0.98%
5 threads -> 6 threads: -0.87%
5 threads -> 7 threads: -0.52%
5 threads -> 8 threads: -0.6%
6 threads -> 7 threads: 0.36%
6 threads -> 8 threads: 0.27%
7 threads -> 8 threads: -0.08%
Dafür kann man aus den dargestellten Informationen sehr viel ableiten, z.B. dass mehr als 4 Threads bei einem DualCore offenbar nichts mehr bringen (alle Zeilen ab "4 threads -> ..." haben Werte um 0% rum). Das Ergebnis für 3 Threads kann ich mir nicht erklären... Messfehler?hmm sehr unübersichtlich
1 thread average: 438 ms
2 threads average: 247 ms
3 threads average: 246 ms
4 threads average: 250 ms
5 threads average: 239 ms
6 threads average: 246 ms
7 threads average: 241 ms
8 threads average: 245 ms
1 thread -> 2 threads: 77,08%
1 thread -> 3 threads: 77,53%
1 thread -> 4 threads: 75,24%
1 thread -> 5 threads: 82,58%
1 thread -> 6 threads: 77,86%
1 thread -> 7 threads: 81,44%
1 thread -> 8 threads: 78,84%
2 threads -> 3 threads: 0,25%
2 threads -> 4 threads: -1,04%
2 threads -> 5 threads: 3,11%
2 threads -> 6 threads: 0,44%
2 threads -> 7 threads: 2,46%
2 threads -> 8 threads: 0,99%
3 threads -> 4 threads: -1,29%
3 threads -> 5 threads: 2,84%
3 threads -> 6 threads: 0,19%
3 threads -> 7 threads: 2,2%
3 threads -> 8 threads: 0,74%
4 threads -> 5 threads: 4,19%
4 threads -> 6 threads: 1,5%
4 threads -> 7 threads: 3,54%
4 threads -> 8 threads: 2,05%
5 threads -> 6 threads: -2,58%
5 threads -> 7 threads: -0,62%
5 threads -> 8 threads: -2,05%
6 threads -> 7 threads: 2,01%
6 threads -> 8 threads: 0,55%
7 threads -> 8 threads: -1,43%
Quicksort.bubblesort?
ähm du brauchst glaube ich ne neuere Java-Version, soweit ich das verstanden habe!
1 thread average: 609 ms
2 threads average: 430 ms
3 threads average: 233 ms
4 threads average: 241 ms
5 threads average: 235 ms
6 threads average: 213 ms
7 threads average: 209 ms
8 threads average: 217 ms
1 thread -> 2 threads: 41.43%
1 thread -> 3 threads: 160.73%
1 thread -> 4 threads: 152.41%
1 thread -> 5 threads: 158.42%
1 thread -> 6 threads: 184.77%
1 thread -> 7 threads: 190.63%
1 thread -> 8 threads: 180.47%
2 threads -> 3 threads: 84.35%
2 threads -> 4 threads: 78.47%
2 threads -> 5 threads: 82.72%
2 threads -> 6 threads: 101.36%
2 threads -> 7 threads: 105.5%
2 threads -> 8 threads: 98.31%
3 threads -> 4 threads: -3.19%
3 threads -> 5 threads: -0.88%
3 threads -> 6 threads: 9.22%
3 threads -> 7 threads: 11.47%
3 threads -> 8 threads: 7.57%
4 threads -> 5 threads: 2.38%
4 threads -> 6 threads: 12.82%
4 threads -> 7 threads: 15.14%
4 threads -> 8 threads: 11.12%
5 threads -> 6 threads: 10.2%
5 threads -> 7 threads: 12.46%
5 threads -> 8 threads: 8.53%
6 threads -> 7 threads: 2.06%
6 threads -> 8 threads: -1.51%
7 threads -> 8 threads: -3.5%
1 thread average: 559 ms
2 threads average: 384 ms
3 threads average: 333 ms
4 threads average: 327 ms
5 threads average: 336 ms
6 threads average: 314 ms
7 threads average: 311 ms
8 threads average: 314 ms
1 thread -> 2 threads: 45.33%
1 thread -> 3 threads: 67.47%
1 thread -> 4 threads: 70.91%
1 thread -> 5 threads: 66.26%
1 thread -> 6 threads: 77.8%
1 thread -> 7 threads: 79.73%
1 thread -> 8 threads: 77.76%
2 threads -> 3 threads: 15.24%
2 threads -> 4 threads: 17.6%
2 threads -> 5 threads: 14.4%
2 threads -> 6 threads: 22.34%
2 threads -> 7 threads: 23.67%
2 threads -> 8 threads: 22.31%
3 threads -> 4 threads: 2.05%
3 threads -> 5 threads: -0.73%
3 threads -> 6 threads: 6.17%
3 threads -> 7 threads: 7.32%
3 threads -> 8 threads: 6.14%
4 threads -> 5 threads: -2.72%
4 threads -> 6 threads: 4.03%
4 threads -> 7 threads: 5.16%
4 threads -> 8 threads: 4.01%
5 threads -> 6 threads: 6.94%
5 threads -> 7 threads: 8.1%
5 threads -> 8 threads: 6.92%
6 threads -> 7 threads: 1.08%
6 threads -> 8 threads: -0.03%
7 threads -> 8 threads: -1.1%
1 thread average: 705 ms
2 threads average: 461 ms
3 threads average: 380 ms
4 threads average: 389 ms
5 threads average: 386 ms
6 threads average: 388 ms
7 threads average: 391 ms
8 threads average: 392 ms
1 thread -> 2 threads: 52.87%
1 thread -> 3 threads: 85.21%
1 thread -> 4 threads: 81.22%
1 thread -> 5 threads: 82.64%
1 thread -> 6 threads: 81.31%
1 thread -> 7 threads: 80%
1 thread -> 8 threads: 79.67%
2 threads -> 3 threads: 21.15%
2 threads -> 4 threads: 18.55%
2 threads -> 5 threads: 19.48%
2 threads -> 6 threads: 18.61%
2 threads -> 7 threads: 17.75%
2 threads -> 8 threads: 17.53%
3 threads -> 4 threads: -2.15%
3 threads -> 5 threads: -1.38%
3 threads -> 6 threads: -2.1%
3 threads -> 7 threads: -2.81%
3 threads -> 8 threads: -2.99%
4 threads -> 5 threads: 0.78%
4 threads -> 6 threads: 0.05%
4 threads -> 7 threads: -0.68%
4 threads -> 8 threads: -0.86%
5 threads -> 6 threads: -0.73%
5 threads -> 7 threads: -1.45%
5 threads -> 8 threads: -1.63%
6 threads -> 7 threads: -0.73%
6 threads -> 8 threads: -0.91%
7 threads -> 8 threads: -0.18%
multicore benchmark 070217-2230
1 thread : 749 ms
2 threads: 790 ms
3 threads: 788 ms
4 threads: 781 ms
5 threads: 795 ms
6 threads: 791 ms
7 threads: 789 ms
8 threads: 785 ms
1 thread : 740 ms
2 threads: 784 ms
3 threads: 801 ms
4 threads: 791 ms
5 threads: 791 ms
6 threads: 791 ms
7 threads: 796 ms
8 threads: 793 ms
1 thread : 744 ms
2 threads: 785 ms
3 threads: 784 ms
4 threads: 792 ms
5 threads: 787 ms
6 threads: 787 ms
7 threads: 786 ms
8 threads: 795 ms
1 thread : 746 ms
2 threads: 792 ms
3 threads: 784 ms
4 threads: 785 ms
5 threads: 787 ms
6 threads: 788 ms
7 threads: 804 ms
8 threads: 789 ms
1 thread : 739 ms
2 threads: 792 ms
3 threads: 789 ms
4 threads: 790 ms
5 threads: 789 ms
6 threads: 778 ms
7 threads: 788 ms
8 threads: 798 ms
1 thread average: 744 ms
2 threads average: 788 ms
3 threads average: 789 ms
4 threads average: 788 ms
5 threads average: 790 ms
6 threads average: 787 ms
7 threads average: 793 ms
8 threads average: 792 ms
1 thread -> 2 threads: -5,69%
1 thread -> 3 threads: -5,74%
1 thread -> 4 threads: -5,6%
1 thread -> 5 threads: -5,84%
1 thread -> 6 threads: -5,54%
1 thread -> 7 threads: -6,18%
1 thread -> 8 threads: -6,11%
2 threads -> 3 threads: -0,05%
2 threads -> 4 threads: 0,1%
2 threads -> 5 threads: -0,16%
2 threads -> 6 threads: 0,17%
2 threads -> 7 threads: -0,51%
2 threads -> 8 threads: -0,44%
3 threads -> 4 threads: 0,15%
3 threads -> 5 threads: -0,11%
3 threads -> 6 threads: 0,22%
3 threads -> 7 threads: -0,47%
3 threads -> 8 threads: -0,4%
4 threads -> 5 threads: -0,26%
4 threads -> 6 threads: 0,07%
4 threads -> 7 threads: -0,62%
4 threads -> 8 threads: -0,55%
5 threads -> 6 threads: 0,32%
5 threads -> 7 threads: -0,36%
5 threads -> 8 threads: -0,29%
6 threads -> 7 threads: -0,68%
6 threads -> 8 threads: -0,61%
7 threads -> 8 threads: 0,07%
multicore benchmark 070217-2230
1 thread : 890 ms
2 threads: 1257 ms
3 threads: 646 ms
4 threads: 639 ms
5 threads: 642 ms
6 threads: 649 ms
7 threads: 664 ms
8 threads: 636 ms
1 thread : 890 ms
2 threads: 635 ms
3 threads: 641 ms
4 threads: 636 ms
5 threads: 659 ms
6 threads: 639 ms
7 threads: 639 ms
8 threads: 651 ms
1 thread : 883 ms
2 threads: 648 ms
3 threads: 635 ms
4 threads: 643 ms
5 threads: 636 ms
6 threads: 635 ms
7 threads: 636 ms
8 threads: 635 ms
1 thread : 883 ms
2 threads: 640 ms
3 threads: 652 ms
4 threads: 635 ms
5 threads: 642 ms
6 threads: 657 ms
7 threads: 634 ms
8 threads: 654 ms
1 thread : 896 ms
2 threads: 1268 ms
3 threads: 648 ms
4 threads: 652 ms
5 threads: 635 ms
6 threads: 649 ms
7 threads: 653 ms
8 threads: 637 ms
1 thread average: 889 ms
2 threads average: 890 ms
3 threads average: 644 ms
4 threads average: 641 ms
5 threads average: 643 ms
6 threads average: 646 ms
7 threads average: 645 ms
8 threads average: 643 ms
1 thread -> 2 threads: -0,13%
1 thread -> 3 threads: 37,87%
1 thread -> 4 threads: 38,58%
1 thread -> 5 threads: 38,24%
1 thread -> 6 threads: 37,56%
1 thread -> 7 threads: 37,69%
1 thread -> 8 threads: 38,23%
2 threads -> 3 threads: 38,05%
2 threads -> 4 threads: 38,76%
2 threads -> 5 threads: 38,42%
2 threads -> 6 threads: 37,74%
2 threads -> 7 threads: 37,87%
2 threads -> 8 threads: 38,41%
3 threads -> 4 threads: 0,51%
3 threads -> 5 threads: 0,27%
3 threads -> 6 threads: -0,22%
3 threads -> 7 threads: -0,13%
3 threads -> 8 threads: 0,26%
4 threads -> 5 threads: -0,24%
4 threads -> 6 threads: -0,73%
4 threads -> 7 threads: -0,64%
4 threads -> 8 threads: -0,25%
5 threads -> 6 threads: -0,49%
5 threads -> 7 threads: -0,4%
5 threads -> 8 threads: -0,01%
6 threads -> 7 threads: 0,09%
6 threads -> 8 threads: 0,49%
7 threads -> 8 threads: 0,39%
Fast 3x so schnell mit 4 Kernen, sehr schön. Aber wie schon mehrfach gesagt, mit Last im Hintergrund Benchen ist Quatsch. Ich hoffe, man kann ohne Last auf 250% kommen, wahrscheinlich bereits ab 4 Threads.1 thread -> 7 threads: 190.63%
Es wird eine unsortierte Liste mit 3,5 Milliarden int-Werten permanent im Speicher gehalten. Sortiert wird dann auf einer Kopie. Eine weitere Kopie der mit einem Thread sortierten Liste wird auch noch im Speicher gehalten, um sie mit den Multithreaded sortierten Listen zu vergleichen. Man will ja nicht nur Effizienz, sondern auch Korrektheitwie groß sind denn die listen?
1 thread average: 592 ms
2 threads average: 455 ms
3 threads average: 294 ms
4 threads average: 237 ms
5 threads average: 237 ms
6 threads average: 220 ms
7 threads average: 225 ms
8 threads average: 231 ms
1 thread -> 2 threads: 30.18%
1 thread -> 3 threads: 101.06%
1 thread -> 4 threads: 149.39%
1 thread -> 5 threads: 150.07%
1 thread -> 6 threads: 169.07%
1 thread -> 7 threads: 163.14%
1 thread -> 8 threads: 156.51%
2 threads -> 3 threads: 54.44%
2 threads -> 4 threads: 91.56%
2 threads -> 5 threads: 92.08%
2 threads -> 6 threads: 106.69%
2 threads -> 7 threads: 102.13%
2 threads -> 8 threads: 97.03%
3 threads -> 4 threads: 24.03%
3 threads -> 5 threads: 24.37%
3 threads -> 6 threads: 33.83%
3 threads -> 7 threads: 30.88%
3 threads -> 8 threads: 27.58%
4 threads -> 5 threads: 0.27%
4 threads -> 6 threads: 7.89%
4 threads -> 7 threads: 5.52%
4 threads -> 8 threads: 2.86%
5 threads -> 6 threads: 7.6%
5 threads -> 7 threads: 5.23%
5 threads -> 8 threads: 2.58%
6 threads -> 7 threads: -2.2%
6 threads -> 8 threads: -4.67%
7 threads -> 8 threads: -2.52%
C:\>java -jar multicore2230.jar
multicore benchmark 070217-2230
1 thread : 859 ms
2 threads: 627 ms
3 threads: 610 ms
4 threads: 622 ms
5 threads: 597 ms
6 threads: 586 ms
7 threads: 569 ms
8 threads: 577 ms
1 thread : 799 ms
2 threads: 570 ms
3 threads: 576 ms
4 threads: 577 ms
5 threads: 581 ms
6 threads: 580 ms
7 threads: 561 ms
8 threads: 581 ms
1 thread : 796 ms
2 threads: 568 ms
3 threads: 573 ms
4 threads: 573 ms
5 threads: 579 ms
6 threads: 578 ms
7 threads: 587 ms
8 threads: 586 ms
1 thread : 792 ms
2 threads: 575 ms
3 threads: 586 ms
4 threads: 570 ms
5 threads: 580 ms
6 threads: 571 ms
7 threads: 587 ms
8 threads: 570 ms
1 thread : 788 ms
2 threads: 592 ms
3 threads: 577 ms
4 threads: 563 ms
5 threads: 567 ms
6 threads: 588 ms
7 threads: 567 ms
8 threads: 570 ms
1 thread average: 807 ms
2 threads average: 586 ms
3 threads average: 584 ms
4 threads average: 581 ms
5 threads average: 581 ms
6 threads average: 581 ms
7 threads average: 574 ms
8 threads average: 577 ms
1 thread -> 2 threads: 37,62%
1 thread -> 3 threads: 38,06%
1 thread -> 4 threads: 38,85%
1 thread -> 5 threads: 38,88%
1 thread -> 6 threads: 38,96%
1 thread -> 7 threads: 40,53%
1 thread -> 8 threads: 39,82%
2 threads -> 3 threads: 0,32%
2 threads -> 4 threads: 0,9%
2 threads -> 5 threads: 0,92%
2 threads -> 6 threads: 0,98%
2 threads -> 7 threads: 2,12%
2 threads -> 8 threads: 1,6%
3 threads -> 4 threads: 0,58%
3 threads -> 5 threads: 0,59%
3 threads -> 6 threads: 0,66%
3 threads -> 7 threads: 1,79%
3 threads -> 8 threads: 1,27%
4 threads -> 5 threads: 0,02%
4 threads -> 6 threads: 0,08%
4 threads -> 7 threads: 1,21%
4 threads -> 8 threads: 0,7%
5 threads -> 6 threads: 0,06%
5 threads -> 7 threads: 1,19%
5 threads -> 8 threads: 0,68%
6 threads -> 7 threads: 1,13%
6 threads -> 8 threads: 0,61%
7 threads -> 8 threads: -0,51%
C:\>
1 thread average: 836 ms
2 threads average: 461 ms
3 threads average: 456 ms
4 threads average: 454 ms
5 threads average: 454 ms
6 threads average: 454 ms
7 threads average: 453 ms
8 threads average: 454 ms
1 thread -> 2 threads: 81,44%
1 thread -> 3 threads: 83,17%
1 thread -> 4 threads: 84,11%
1 thread -> 5 threads: 83,94%
1 thread -> 6 threads: 84,23%
1 thread -> 7 threads: 84,51%
1 thread -> 8 threads: 84,14%
1 thread average: 509 ms
2 threads average: 283 ms
3 threads average: 280 ms
4 threads average: 284 ms
5 threads average: 288 ms
6 threads average: 286 ms
7 threads average: 284 ms
8 threads average: 283 ms
1 thread -> 2 threads: 79,27%
1 thread -> 3 threads: 81,23%
1 thread -> 4 threads: 78,94%
1 thread -> 5 threads: 76,57%
1 thread -> 6 threads: 77,93%
1 thread -> 7 threads: 78,97%
1 thread -> 8 threads: 79,87%
test@test01:~> jre1.6.0_01/bin/java -jar multicore2230.jar
multicore benchmark 070217-2230
1 thread : 919 ms
2 threads: 1033 ms
3 threads: 367 ms
4 threads: 316 ms
5 threads: 372 ms
6 threads: 291 ms
7 threads: 324 ms
8 threads: 293 ms
1 thread : 920 ms
2 threads: 482 ms
3 threads: 363 ms
4 threads: 305 ms
5 threads: 315 ms
6 threads: 287 ms
7 threads: 320 ms
8 threads: 319 ms
1 thread : 919 ms
2 threads: 481 ms
3 threads: 353 ms
4 threads: 318 ms
5 threads: 315 ms
6 threads: 299 ms
7 threads: 308 ms
8 threads: 349 ms
1 thread : 922 ms
2 threads: 482 ms
3 threads: 349 ms
4 threads: 314 ms
5 threads: 290 ms
6 threads: 301 ms
7 threads: 338 ms
8 threads: 309 ms
1 thread : 919 ms
2 threads: 481 ms
3 threads: 358 ms
4 threads: 312 ms
5 threads: 298 ms
6 threads: 279 ms
7 threads: 316 ms
8 threads: 328 ms
1 thread average: 920 ms
2 threads average: 592 ms
3 threads average: 358 ms
4 threads average: 313 ms
5 threads average: 318 ms
6 threads average: 291 ms
7 threads average: 321 ms
8 threads average: 320 ms
1 thread -> 2 threads: 55.34%
1 thread -> 3 threads: 156.61%
1 thread -> 4 threads: 193.6%
1 thread -> 5 threads: 188.76%
1 thread -> 6 threads: 215.33%
1 thread -> 7 threads: 186.05%
1 thread -> 8 threads: 187.38%
2 threads -> 3 threads: 65.19%
2 threads -> 4 threads: 89%
2 threads -> 5 threads: 85.89%
2 threads -> 6 threads: 102.99%
2 threads -> 7 threads: 84.14%
2 threads -> 8 threads: 85%
3 threads -> 4 threads: 14.42%
3 threads -> 5 threads: 12.53%
3 threads -> 6 threads: 22.88%
3 threads -> 7 threads: 11.47%
3 threads -> 8 threads: 11.99%
4 threads -> 5 threads: -1.65%
4 threads -> 6 threads: 7.4%
4 threads -> 7 threads: -2.57%
4 threads -> 8 threads: -2.12%
5 threads -> 6 threads: 9.2%
5 threads -> 7 threads: -0.94%
5 threads -> 8 threads: -0.48%
6 threads -> 7 threads: -9.29%
6 threads -> 8 threads: -8.86%
7 threads -> 8 threads: 0.47%