SDL Benchmark

This is a simple SDL benchmark program. I wanted to test the graphics performance of my Zaurus and compare across models. This is my first actual SDL program, it's pretty simple. The source is actually platform-agnostic. I've also built and run it on Windows.


Bench was written for the SL-5500 Sharp ROM v3.10, but should work on other ROMs as well. It expects SDL version 1.2.

bench (182kB binary executable)

I didn't make an IPK for this one, it's just a binary.


Drop it where you'd like and run it from the command line:
$ ./bench
$ ./bench >out.txt
to save your results to a file.

Bench will run up to four tests: 320x240 software, 320x240 hardware acceleration, 640x480 software, and 640x480 hardware acceleration. It will only perform tests that are supported by your hardware and SDL library combination. For example, my SL-5500 only supports 320x240 software rendering, so it only runs that test.

Here is how my SL-5500 scored:

Pitch = 320
Hardware surfaces avail  = 0
Window manager avail     = 0
Blitter hardware         = 0
Colorkey blit hardware   = 0
Alpha blit hardware      = 0
Software->Hardware accel = 0
Video memory             = N/A

                          320x240  320x240  640x480  640x480
                          software hardware software hardware
Slow points (frames/sec): 0.260323    N/A      N/A      N/A   
Fast points (frames/sec):  20.4767    N/A      N/A      N/A   
   Rect fill (rects/sec):  416.472    N/A      N/A      N/A   
 32x32 blits (blits/sec):  625.535    N/A      N/A      N/A  

Limitations and Bugs

None known, other than it runs pretty synthetic tests and is therefore probably not very meaningful.

You are welcome to the source code:

bench source code (31kB tarball)


This application is provided as-is, with no warranty or support. Feel free to make use of it in any way.
Last modified: October 22, 2005