simple g++ vs clang++ benchmark with reaction-diffusion
Автор: coleraby
Загружено: 2018-01-23
Просмотров: 4187
Описание:
This is a "benchmark" (rather: basic test) of pitting the two major compilers form the OpenSource-world against each other in a 2D reaction-diffusion simulation. It's g++ 7.2.0 vs clang++ 5.0.1.
The compile-flags used are:
-std=c++14 -Werror -Wall -pedantic -fno-omit-frame-pointer -Ofast -march=native
The CPU in the test-machine is a 4-thread (2-core) [email protected] GHz, which can boost upto 3.1 GHz.
The frame-rates achieved under screen-recording are:
361fps (g++) vs 398fps (clang++), thus clang-generated binary is 10% faster.
Without the screen-recording:
447fps (g++) vs 524fps (clang++), making the clang-generated binary being 17 % faster in this case. It's also a bit smaller.
If you want to play around with the code yourself, grab it with:
git clone https://github.com/MacSlow/reaction-d...
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: