@afxgroup
It works!
- clib4
- SDL2 against clib4
- the SDL2 Tests inside ../test against clib4
and just for comparison 2 benchmarks from X5000
clib4 (GCC6.4(testBuild)+libgcc(clib4)):
INFO: SDL2 renderer benchmark v. 0.7 (SDL version 2.30.4)
INFO: This tool measures the speed of various 2D drawing features
INFO: Press ESC key to quit
INFO: Parameters: width 800, height 600, renderer name '(null)', duration 1.000 s, objects 100, sleep 0
INFO: Image size 408*167
INFO: Pixel format 0x16161804 (SDL_PIXELFORMAT_RGB888)
INFO: Starting to test renderer called [compositing], flags 0xE
INFO: Points [mode: None]...2999 frames drawn in 1.000 seconds => 2999.0 frames/s
INFO: Points [mode: Blend]...3403 frames drawn in 1.000 seconds => 3402.4 frames/s
INFO: Lines [mode: None]...25 frames drawn in 1.034 seconds => 24.2 frames/s
INFO: Lines [mode: Blend]...40 frames drawn in 1.013 seconds => 39.5 frames/s
INFO: FillRects [mode: None]...441 frames drawn in 1.001 seconds => 440.5 frames/s
INFO: FillRects [mode: Blend]...290 frames drawn in 1.001 seconds => 289.7 frames/s
INFO: RenderCopy [mode: None]...5807 frames drawn in 1.000 seconds => 5805.1 frames/s
INFO: RenderCopy [mode: Blend]...5803 frames drawn in 1.000 seconds => 5800.7 frames/s
INFO: RenderCopyEx [mode: None]...5607 frames drawn in 1.001 seconds => 5604.2 frames/s
INFO: RenderCopyEx [mode: Blend]...5610 frames drawn in 1.000 seconds => 5607.9 frames/s
INFO: Color modulation [mode: None]...1164 frames drawn in 1.001 seconds => 1163.1 frames/s
INFO: Color modulation [mode: Blend]...1184 frames drawn in 1.000 seconds => 1184.0 frames/s
INFO: Alpha modulation [mode: None]...5824 frames drawn in 1.000 seconds => 5821.4 frames/s
INFO: Alpha modulation [mode: Blend]...5672 frames drawn in 1.000 seconds => 5670.2 frames/s
INFO: UpdateTexture [mode: None]...8651.4 operations/s, 2357.9 megabytes/s
INFO: ReadPixels [mode: None]...53.9 operations/s, 14.7 megabytes/s
INFO: Starting to test renderer called [opengl], flags 0x2
INFO: Points [mode: None]...2050 frames drawn in 1.000 seconds => 2049.3 frames/s
INFO: Points [mode: Blend]...2053 frames drawn in 1.000 seconds => 2052.3 frames/s
INFO: Lines [mode: None]...52 frames drawn in 1.008 seconds => 51.6 frames/s
INFO: Lines [mode: Blend]...53 frames drawn in 1.000 seconds => 53.0 frames/s
INFO: FillRects [mode: None]...456 frames drawn in 1.002 seconds => 455.3 frames/s
INFO: FillRects [mode: Blend]...396 frames drawn in 1.002 seconds => 395.3 frames/s
INFO: RenderCopy [mode: None]...1961 frames drawn in 1.000 seconds => 1960.6 frames/s
INFO: RenderCopy [mode: Blend]...1956 frames drawn in 1.000 seconds => 1955.5 frames/s
INFO: RenderCopyEx [mode: None]...1918 frames drawn in 1.000 seconds => 1917.6 frames/s
INFO: RenderCopyEx [mode: Blend]...1915 frames drawn in 1.000 seconds => 1915.0 frames/s
INFO: Color modulation [mode: None]...1953 frames drawn in 1.000 seconds => 1952.6 frames/s
INFO: Color modulation [mode: Blend]...1956 frames drawn in 1.000 seconds => 1955.6 frames/s
INFO: Alpha modulation [mode: None]...1958 frames drawn in 1.000 seconds => 1957.1 frames/s
INFO: Alpha modulation [mode: Blend]...1959 frames drawn in 1.000 seconds => 1958.9 frames/s
INFO: UpdateTexture [mode: None]...396.0 operations/s, 107.9 megabytes/s
INFO: ReadPixels [mode: None]...43.0 operations/s, 11.7 megabytes/s
INFO: Starting to test renderer called [opengles2], flags 0xA
INFO: Points [mode: None]...5226 frames drawn in 1.000 seconds => 5225.1 frames/s
INFO: Points [mode: Blend]...5221 frames drawn in 1.000 seconds => 5220.3 frames/s
INFO: Lines [mode: None]...212 frames drawn in 1.002 seconds => 211.6 frames/s
INFO: Lines [mode: Blend]...209 frames drawn in 1.000 seconds => 209.0 frames/s
INFO: FillRects [mode: None]...1086 frames drawn in 1.000 seconds => 1085.8 frames/s
INFO: FillRects [mode: Blend]...704 frames drawn in 1.000 seconds => 703.9 frames/s
INFO: RenderCopy [mode: None]...4620 frames drawn in 1.000 seconds => 4618.9 frames/s
INFO: RenderCopy [mode: Blend]...4622 frames drawn in 1.000 seconds => 4620.6 frames/s
INFO: RenderCopyEx [mode: None]...4659 frames drawn in 1.000 seconds => 4657.8 frames/s
INFO: RenderCopyEx [mode: Blend]...4654 frames drawn in 1.000 seconds => 4652.9 frames/s
INFO: Color modulation [mode: None]...4642 frames drawn in 1.000 seconds => 4641.2 frames/s
INFO: Color modulation [mode: Blend]...4633 frames drawn in 1.000 seconds => 4632.8 frames/s
INFO: Alpha modulation [mode: None]...4651 frames drawn in 1.000 seconds => 4649.9 frames/s
INFO: Alpha modulation [mode: Blend]...4565 frames drawn in 1.000 seconds => 4564.8 frames/s
INFO: UpdateTexture [mode: None]...356.0 operations/s, 97.0 megabytes/s
INFO: ReadPixels [mode: None]...42.9 operations/s, 11.7 megabytes/s
INFO: Starting to test renderer called [software], flags 0xD
INFO: Points [mode: None]...288 frames drawn in 1.003 seconds => 287.1 frames/s
INFO: Points [mode: Blend]...289 frames drawn in 1.001 seconds => 288.8 frames/s
INFO: Lines [mode: None]...179 frames drawn in 1.004 seconds => 178.4 frames/s
INFO: Lines [mode: Blend]...151 frames drawn in 1.002 seconds => 150.7 frames/s
INFO: FillRects [mode: None]...173 frames drawn in 1.001 seconds => 172.8 frames/s
INFO: FillRects [mode: Blend]...32 frames drawn in 1.026 seconds => 31.2 frames/s
INFO: RenderCopy [mode: None]...268 frames drawn in 1.000 seconds => 267.9 frames/s
INFO: RenderCopy [mode: Blend]...217 frames drawn in 1.001 seconds => 216.7 frames/s
INFO: RenderCopyEx [mode: None]...64 frames drawn in 1.026 seconds => 62.4 frames/s
INFO: RenderCopyEx [mode: Blend]...142 frames drawn in 1.002 seconds => 141.7 frames/s
INFO: Color modulation [mode: None]...233 frames drawn in 1.002 seconds => 232.7 frames/s
INFO: Color modulation [mode: Blend]...184 frames drawn in 1.001 seconds => 183.9 frames/s
INFO: Alpha modulation [mode: None]...228 frames drawn in 1.004 seconds => 227.1 frames/s
INFO: Alpha modulation [mode: Blend]...188 frames drawn in 1.003 seconds => 187.5 frames/s
INFO: UpdateTexture [mode: None]...8531.5 operations/s, 2325.2 megabytes/s
INFO: ReadPixels [mode: None]...4832.4 operations/s, 1317.1 megabytes/s
INFO: Bye bye
clib4 (GCC6.4(SDK)+libgcc(clib2!)):
INFO: SDL2 renderer benchmark v. 0.7 (SDL version 2.30.4)
INFO: This tool measures the speed of various 2D drawing features
INFO: Press ESC key to quit
INFO: Parameters: width 800, height 600, renderer name '(null)', duration 1.000 s, objects 100, sleep 0
INFO: Image size 408*167
INFO: Pixel format 0x16161804 (SDL_PIXELFORMAT_RGB888)
INFO: Starting to test renderer called [compositing], flags 0xE
INFO: Points [mode: None]...2859 frames drawn in 1.000 seconds => 2858.6 frames/s
INFO: Points [mode: Blend]...3255 frames drawn in 1.000 seconds => 3254.4 frames/s
INFO: Lines [mode: None]...24 frames drawn in 1.038 seconds => 23.1 frames/s
INFO: Lines [mode: Blend]...39 frames drawn in 1.006 seconds => 38.8 frames/s
INFO: FillRects [mode: None]...425 frames drawn in 1.002 seconds => 424.3 frames/s
INFO: FillRects [mode: Blend]...276 frames drawn in 1.000 seconds => 275.9 frames/s
INFO: RenderCopy [mode: None]...5596 frames drawn in 1.000 seconds => 5595.6 frames/s
INFO: RenderCopy [mode: Blend]...5650 frames drawn in 1.000 seconds => 5648.0 frames/s
INFO: RenderCopyEx [mode: None]...5423 frames drawn in 1.000 seconds => 5422.0 frames/s
INFO: RenderCopyEx [mode: Blend]...5455 frames drawn in 1.000 seconds => 5453.4 frames/s
INFO: Color modulation [mode: None]...1153 frames drawn in 1.000 seconds => 1153.0 frames/s
INFO: Color modulation [mode: Blend]...1122 frames drawn in 1.000 seconds => 1121.5 frames/s
INFO: Alpha modulation [mode: None]...5601 frames drawn in 1.000 seconds => 5599.7 frames/s
INFO: Alpha modulation [mode: Blend]...5536 frames drawn in 1.000 seconds => 5534.9 frames/s
INFO: UpdateTexture [mode: None]...8110.2 operations/s, 2210.4 megabytes/s
INFO: ReadPixels [mode: None]...45.3 operations/s, 12.3 megabytes/s
INFO: Starting to test renderer called [opengl], flags 0x2
INFO: Points [mode: None]...1975 frames drawn in 1.000 seconds => 1974.7 frames/s
INFO: Points [mode: Blend]...1979 frames drawn in 1.000 seconds => 1978.9 frames/s
INFO: Lines [mode: None]...46 frames drawn in 1.004 seconds => 45.8 frames/s
INFO: Lines [mode: Blend]...51 frames drawn in 1.012 seconds => 50.4 frames/s
INFO: FillRects [mode: None]...434 frames drawn in 1.001 seconds => 433.6 frames/s
INFO: FillRects [mode: Blend]...388 frames drawn in 1.002 seconds => 387.2 frames/s
INFO: RenderCopy [mode: None]...1872 frames drawn in 1.001 seconds => 1871.0 frames/s
INFO: RenderCopy [mode: Blend]...1860 frames drawn in 1.000 seconds => 1859.5 frames/s
INFO: RenderCopyEx [mode: None]...1832 frames drawn in 1.000 seconds => 1831.2 frames/s
INFO: RenderCopyEx [mode: Blend]...1840 frames drawn in 1.000 seconds => 1839.8 frames/s
INFO: Color modulation [mode: None]...1869 frames drawn in 1.000 seconds => 1868.3 frames/s
INFO: Color modulation [mode: Blend]...1863 frames drawn in 1.000 seconds => 1862.4 frames/s
INFO: Alpha modulation [mode: None]...1876 frames drawn in 1.000 seconds => 1875.7 frames/s
INFO: Alpha modulation [mode: Blend]...1875 frames drawn in 1.000 seconds => 1874.9 frames/s
INFO: UpdateTexture [mode: None]...375.5 operations/s, 102.4 megabytes/s
INFO: ReadPixels [mode: None]...49.8 operations/s, 13.6 megabytes/s
INFO: Starting to test renderer called [opengles2], flags 0xA
INFO: Points [mode: None]...5046 frames drawn in 1.000 seconds => 5045.4 frames/s
INFO: Points [mode: Blend]...5053 frames drawn in 1.000 seconds => 5052.7 frames/s
INFO: Lines [mode: None]...200 frames drawn in 1.006 seconds => 198.9 frames/s
INFO: Lines [mode: Blend]...201 frames drawn in 1.002 seconds => 200.6 frames/s
INFO: FillRects [mode: None]...1052 frames drawn in 1.000 seconds => 1051.7 frames/s
INFO: FillRects [mode: Blend]...671 frames drawn in 1.002 seconds => 669.9 frames/s
INFO: RenderCopy [mode: None]...4425 frames drawn in 1.000 seconds => 4424.4 frames/s
INFO: RenderCopy [mode: Blend]...4481 frames drawn in 1.000 seconds => 4480.6 frames/s
INFO: RenderCopyEx [mode: None]...4462 frames drawn in 1.000 seconds => 4460.9 frames/s
INFO: RenderCopyEx [mode: Blend]...4470 frames drawn in 1.000 seconds => 4468.6 frames/s
INFO: Color modulation [mode: None]...4430 frames drawn in 1.000 seconds => 4429.0 frames/s
INFO: Color modulation [mode: Blend]...4453 frames drawn in 1.000 seconds => 4452.3 frames/s
INFO: Alpha modulation [mode: None]...4447 frames drawn in 1.000 seconds => 4445.3 frames/s
INFO: Alpha modulation [mode: Blend]...4377 frames drawn in 1.000 seconds => 4376.8 frames/s
INFO: UpdateTexture [mode: None]...344.1 operations/s, 93.8 megabytes/s
INFO: ReadPixels [mode: None]...38.8 operations/s, 10.6 megabytes/s
INFO: Starting to test renderer called [software], flags 0xD
INFO: Points [mode: None]...280 frames drawn in 1.003 seconds => 279.1 frames/s
INFO: Points [mode: Blend]...279 frames drawn in 1.003 seconds => 278.2 frames/s
INFO: Lines [mode: None]...172 frames drawn in 1.004 seconds => 171.3 frames/s
INFO: Lines [mode: Blend]...146 frames drawn in 1.003 seconds => 145.5 frames/s
INFO: FillRects [mode: None]...167 frames drawn in 1.006 seconds => 166.0 frames/s
INFO: FillRects [mode: Blend]...30 frames drawn in 1.038 seconds => 28.9 frames/s
INFO: RenderCopy [mode: None]...259 frames drawn in 1.001 seconds => 258.8 frames/s
INFO: RenderCopy [mode: Blend]...213 frames drawn in 1.001 seconds => 212.7 frames/s
INFO: RenderCopyEx [mode: None]...58 frames drawn in 1.002 seconds => 57.9 frames/s
INFO: RenderCopyEx [mode: Blend]...140 frames drawn in 1.007 seconds => 139.0 frames/s
INFO: Color modulation [mode: None]...215 frames drawn in 1.001 seconds => 214.7 frames/s
INFO: Color modulation [mode: Blend]...189 frames drawn in 1.001 seconds => 188.9 frames/s
INFO: Alpha modulation [mode: None]...217 frames drawn in 1.003 seconds => 216.3 frames/s
INFO: Alpha modulation [mode: Blend]...183 frames drawn in 1.004 seconds => 182.3 frames/s
INFO: UpdateTexture [mode: None]...8636.4 operations/s, 2353.8 megabytes/s
INFO: ReadPixels [mode: None]...4609.7 operations/s, 1256.3 megabytes/s
INFO: Bye bye
newlib:
INFO: SDL2 renderer benchmark v. 0.7 (SDL version 2.30.4)
INFO: This tool measures the speed of various 2D drawing features
INFO: Press ESC key to quit
INFO: Parameters: width 800, height 600, renderer name '(null)', duration 1.000 s, objects 100, sleep 0
INFO: Image size 408*167
INFO: Pixel format 0x16161804 (SDL_PIXELFORMAT_RGB888)
INFO: Starting to test renderer called [compositing], flags 0xE
INFO: Points [mode: None]...2851 frames drawn in 1.000 seconds => 2850.9 frames/s
INFO: Points [mode: Blend]...3251 frames drawn in 1.000 seconds => 3250.8 frames/s
INFO: Lines [mode: None]...23 frames drawn in 1.000 seconds => 23.0 frames/s
INFO: Lines [mode: Blend]...39 frames drawn in 1.011 seconds => 38.6 frames/s
INFO: FillRects [mode: None]...429 frames drawn in 1.002 seconds => 428.3 frames/s
INFO: FillRects [mode: Blend]...280 frames drawn in 1.003 seconds => 279.1 frames/s
INFO: RenderCopy [mode: None]...5620 frames drawn in 1.000 seconds => 5617.7 frames/s
INFO: RenderCopy [mode: Blend]...5603 frames drawn in 1.000 seconds => 5600.6 frames/s
INFO: RenderCopyEx [mode: None]...5407 frames drawn in 1.000 seconds => 5406.8 frames/s
INFO: RenderCopyEx [mode: Blend]...5492 frames drawn in 1.000 seconds => 5491.1 frames/s
INFO: Color modulation [mode: None]...1117 frames drawn in 1.000 seconds => 1116.6 frames/s
INFO: Color modulation [mode: Blend]...1152 frames drawn in 1.001 seconds => 1151.3 frames/s
INFO: Alpha modulation [mode: None]...5612 frames drawn in 1.000 seconds => 5609.3 frames/s
INFO: Alpha modulation [mode: Blend]...5461 frames drawn in 1.000 seconds => 5460.6 frames/s
INFO: UpdateTexture [mode: None]...7913.0 operations/s, 2156.6 megabytes/s
INFO: ReadPixels [mode: None]...42.8 operations/s, 11.7 megabytes/s
INFO: Starting to test renderer called [opengl], flags 0x2
INFO: Points [mode: None]...1962 frames drawn in 1.000 seconds => 1961.7 frames/s
INFO: Points [mode: Blend]...1976 frames drawn in 1.000 seconds => 1975.1 frames/s
INFO: Lines [mode: None]...49 frames drawn in 1.011 seconds => 48.5 frames/s
INFO: Lines [mode: Blend]...53 frames drawn in 1.015 seconds => 52.2 frames/s
INFO: FillRects [mode: None]...436 frames drawn in 1.000 seconds => 435.8 frames/s
INFO: FillRects [mode: Blend]...385 frames drawn in 1.001 seconds => 384.5 frames/s
INFO: RenderCopy [mode: None]...1868 frames drawn in 1.000 seconds => 1867.7 frames/s
INFO: RenderCopy [mode: Blend]...1866 frames drawn in 1.002 seconds => 1862.3 frames/s
INFO: RenderCopyEx [mode: None]...1828 frames drawn in 1.001 seconds => 1827.0 frames/s
INFO: RenderCopyEx [mode: Blend]...1841 frames drawn in 1.000 seconds => 1840.7 frames/s
INFO: Color modulation [mode: None]...1875 frames drawn in 1.000 seconds => 1874.4 frames/s
INFO: Color modulation [mode: Blend]...1845 frames drawn in 1.000 seconds => 1844.1 frames/s
INFO: Alpha modulation [mode: None]...1870 frames drawn in 1.000 seconds => 1869.1 frames/s
INFO: Alpha modulation [mode: Blend]...1867 frames drawn in 1.000 seconds => 1866.8 frames/s
INFO: UpdateTexture [mode: None]...373.7 operations/s, 101.8 megabytes/s
INFO: ReadPixels [mode: None]...38.9 operations/s, 10.6 megabytes/s
INFO: Starting to test renderer called [opengles2], flags 0xA
INFO: Points [mode: None]...4984 frames drawn in 1.000 seconds => 4983.7 frames/s
INFO: Points [mode: Blend]...4988 frames drawn in 1.000 seconds => 4987.6 frames/s
INFO: Lines [mode: None]...202 frames drawn in 1.000 seconds => 202.0 frames/s
INFO: Lines [mode: Blend]...203 frames drawn in 1.000 seconds => 202.9 frames/s
INFO: FillRects [mode: None]...1040 frames drawn in 1.001 seconds => 1039.1 frames/s
INFO: FillRects [mode: Blend]...673 frames drawn in 1.001 seconds => 672.1 frames/s
INFO: RenderCopy [mode: None]...4446 frames drawn in 1.000 seconds => 4445.3 frames/s
INFO: RenderCopy [mode: Blend]...4435 frames drawn in 1.000 seconds => 4434.9 frames/s
INFO: RenderCopyEx [mode: None]...4452 frames drawn in 1.000 seconds => 4450.9 frames/s
INFO: RenderCopyEx [mode: Blend]...4436 frames drawn in 1.000 seconds => 4435.0 frames/s
INFO: Color modulation [mode: None]...4449 frames drawn in 1.000 seconds => 4448.8 frames/s
INFO: Color modulation [mode: Blend]...4431 frames drawn in 1.000 seconds => 4429.3 frames/s
INFO: Alpha modulation [mode: None]...4455 frames drawn in 1.000 seconds => 4454.3 frames/s
INFO: Alpha modulation [mode: Blend]...4391 frames drawn in 1.000 seconds => 4390.1 frames/s
INFO: UpdateTexture [mode: None]...342.6 operations/s, 93.4 megabytes/s
INFO: ReadPixels [mode: None]...43.4 operations/s, 11.8 megabytes/s
INFO: Starting to test renderer called [software], flags 0xD
INFO: Points [mode: None]...278 frames drawn in 1.001 seconds => 277.7 frames/s
INFO: Points [mode: Blend]...279 frames drawn in 1.001 seconds => 278.7 frames/s
INFO: Lines [mode: None]...174 frames drawn in 1.002 seconds => 173.6 frames/s
INFO: Lines [mode: Blend]...148 frames drawn in 1.006 seconds => 147.1 frames/s
INFO: FillRects [mode: None]...167 frames drawn in 1.005 seconds => 166.1 frames/s
INFO: FillRects [mode: Blend]...32 frames drawn in 1.000 seconds => 32.0 frames/s
INFO: RenderCopy [mode: None]...256 frames drawn in 1.001 seconds => 255.8 frames/s
INFO: RenderCopy [mode: Blend]...212 frames drawn in 1.004 seconds => 211.2 frames/s
INFO: RenderCopyEx [mode: None]...64 frames drawn in 1.000 seconds => 64.0 frames/s
INFO: RenderCopyEx [mode: Blend]...140 frames drawn in 1.003 seconds => 139.6 frames/s
INFO: Color modulation [mode: None]...216 frames drawn in 1.000 seconds => 216.0 frames/s
INFO: Color modulation [mode: Blend]...194 frames drawn in 1.001 seconds => 193.9 frames/s
INFO: Alpha modulation [mode: None]...225 frames drawn in 1.005 seconds => 224.0 frames/s
INFO: Alpha modulation [mode: Blend]...187 frames drawn in 1.003 seconds => 186.5 frames/s
INFO: UpdateTexture [mode: None]...5243.6 operations/s, 1429.1 megabytes/s
INFO: ReadPixels [mode: None]...4503.3 operations/s, 1227.3 megabytes/s
INFO: Bye bye
clib4 Version beats newlib Version!
btw. Thanks for your great work with clib4 !!!
Edited by IamSONIC on 2024/7/27 18:20:54