Logo Glusoft

Benchmark SDL2 / SFML2

Here is a new benchmark of SDL 2.0.4, SDL_gpu 0.11 and SFML 2.3

loadPNG
	SDL  : 13011.5 ms
	SDL_gpu  : 15841.8 ms   libPNG = stb_image
	SFML : 15844.2 ms
loadJPEG
	SDL  : 8.43752 ms
	SDL_gpu  : 20185.2 ms   libJPEG > stb_image
	SFML : 17334.9 ms
loadTTF
	SDL  : 122.725 ms
	SDL_gpu  : 127.169 ms   freetype
	SFML : 127.043 ms
drawSprites
	SDL  : 34471.1 ms       directX
	SDL_gpu  : 59582.9 ms   openGL 
	SFML : 60635.3 ms       openGL
drawTexts
	SDL  : 1204.25 ms
	SDL_gpu  : 2034.44 ms   
	SFML : 739.131 ms
rotateSprite
	SDL  : 11153 ms
	SDL_gpu  : 17005.5 ms   
	SFML : 17645.1 ms

Download the source code
Here is a benchmark of SDL 2.0.3 and SFML 2.3
loadPNG
	SDL  : 11345.5 ms
	SFML : 15801.7 ms
loadJPEG
	SDL  : 13952.6 ms
	SFML : 15318.2 ms
loadTTF
	SDL  : 107.641 ms
	SFML : 99.4882 ms
drawSprites
	SDL  : 33384.7 ms
	SFML : 54896.3 ms
drawTexts
	SDL  : 1054.05 ms
	SFML : 703.05 ms
rotateSprite
	SDL  : 10020.5 ms
	SFML : 15130.1 ms

Download the source code

Too much white, I can't see blue