Chunk generator performance survey
#41
I compiled a binary with gcc 6 and clang 3.9.1. This are the result from 3 runs for every binary. Used only world no nether and no the end.

In world/world.ini changed:
PregenerateDistance to 100
Seed to 42

clang 3.9.1
1:
Min: 78,8 ch/s
Max: 101,03 ch/s
Avg: 83,15222222 ch/s
Time: 69.201 seconds

2:
Min: 79,41 ch/s
Max: 104,22 ch/s
Avg: 84,00258065 ch/s
Time: 68.312 seconds

3:
Min: 79,79 ch/s
Max: 102,2 ch/s
Avg: 83,67548387 ch/s
Time: 68.730 seconds


gcc 6
1:
Min: 92,97 ch/s
Max: 116,48 ch/s
Avg: 97,17301887 ch/s
Time: 64.038 seconds

2:
Min: 92,99 ch/s
Max: 116,94 ch/s
Avg: 97,25037736 ch/s
Time: 64.480 seconds

3.
Min: 92,99 ch/s
Max: 116,9 ch/s
Avg: 96,84740741 ch/s
Time: 64.168 seconds


As you can see gcc beats clang. I didn't changed anything in the source and added no flags.
Reply
Thanks given by: NiLSPACE
#42
The question is now why. I know that there are a few warnings in the noise generator with shift left negative value and overflow. Maybe clang adds additionally checks or doing some casting with the numbers.
Reply
Thanks given by:
#43
I build a new desktop last week Smile

Code:
    [10:09:36] Chunk generator performance: 131.17 ch / sec (513 ch total)
    [10:09:38] Chunk generator performance: 130.49 ch / sec (772 ch total)
    [10:09:40] Chunk generator performance: 131.17 ch / sec (1039 ch total)
    [10:09:42] Chunk generator performance: 131.92 ch / sec (1310 ch total)
    [10:09:44] Chunk generator performance: 132.64 ch / sec (1583 ch total)
    [10:09:46] Chunk generator performance: 132.15 ch / sec (1842 ch total)
    [10:09:48] Chunk generator performance: 131.80 ch / sec (2101 ch total)
    [10:09:50] Chunk generator performance: 132.56 ch / sec (2379 ch total)
    [10:09:52] Chunk generator performance: 132.57 ch / sec (2645 ch total)

To be safe I copied the world.ini from here


Attached Files
.png   CPUZ.PNG (Size: 26.62 KB / Downloads: 35)
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)