Skip to content
SandstoneDevPublic

About

PSP benchmarks measured on a real PSP-3008: GE triangles/s (Sony's 33M proven), texture formats and a GTA-like frame, Memory Stick I/O, memory copies. Source, PSP screenshots, EN/RU report.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

PSPBench

English · Русский

Benchmarks for the Sony PSP, measured on a real console: how fast the graphics chip draws, how fast the Memory Stick reads, and how fast memory copies. Every number in this repository comes from hardware, and screenshots taken on the PSP back it up. None comes from an emulator.

GEBENCH
GEBENCH
Graphics Engine:
triangles per second, feature costs
MSBENCH
MSBENCH
Memory Stick:
open, read, seek, write
MEMBENCH
MEMBENCH
Memory:
copy methods, bus contention
GESAMPV
GESAMPV
GE load meter check:
how busy is the GPU, really

Download: latest release. It is one archive. Unzip it to the root of the Memory Stick, and the four programs appear in the XMB under Game.

Headline results

All measured on a PSP-3008 (TA-095v2, firmware 6.61 with ARK), stock 333/166 MHz unless noted.

What Result Sony's figure
Triangles per second, geometry stage only (all triangles culled) 34.3 M/s "Geometry 35M polygons/sec" (Hot Chips 2004)
Visible triangles per second (2-pixel triangles, vertices in main RAM) 32.7 M/s "T&L max 33M polygons/sec" (2003)
Same, CPU overclocked to 443 MHz in ARK (the GE speeds up ×1.37) 44.8 M/s —
Bezier surface tessellation, 16×16 per patch 55.7 K patches/s (= 28.5 M triangles/s) "58K patches/sec" (Hot Chips 2004)
Pixel fill, flat colour (512-pixel triangles) 548 M pixels/s (760 at 443) "664M pixels/sec" (2003)
GE time of a GTA-like frame (30 k triangles, 40 mipmapped textures, overdraw 2.5) 3.7 ms (2.7 ms at 443) —
Memory Stick sequential read 16.2 MiB/s (18.6 at 443 = 99% of the Memory Stick PRO bus maximum, 19.7 MB/s) —
Opening any file on the Memory Stick 15–18 ms —
Fastest large memory copy sceDmacMemcpy, 202–469 MB/s depending on route —

Screenshots from the PSP

Taken by the programs themselves on the PSP-3008 (SELECT button), not by a camera. Click a picture to open it full size.

333 MHz (stock)ARK "443"
GEBENCH: main tableGEBENCH: main table 333GEBENCH: main table 443
GEBENCH: big scenesGEBENCH: big scenes 333GEBENCH: big scenes 443
GEBENCH: texture formatsGEBENCH: texture formats 333GEBENCH: texture formats 443
GEBENCH: GE cost modelGEBENCH: GE cost model 333GEBENCH: GE cost model 443
GEBENCH: load meter checkGEBENCH: load meter check 333GEBENCH: load meter check 443
GESAMPVGESAMPV 333—
MSBENCH page 1MSBENCH page 1 333MSBENCH page 1 443
MSBENCH page 2MSBENCH page 2 333MSBENCH page 2 443
MEMBENCH, all 7 pages
333 MHz (stock)ARK "443"
MEMBENCH page 1MEMBENCH page 1 333MEMBENCH page 1 443
MEMBENCH page 2MEMBENCH page 2 333MEMBENCH page 2 443
MEMBENCH page 3MEMBENCH page 3 333MEMBENCH page 3 443
MEMBENCH page 4MEMBENCH page 4 333MEMBENCH page 4 443
MEMBENCH page 5MEMBENCH page 5 333MEMBENCH page 5 443
MEMBENCH page 6MEMBENCH page 6 333MEMBENCH page 6 443
MEMBENCH page 7MEMBENCH page 7 333MEMBENCH page 7 443

The raw logs, exactly as the PSP wrote them, are in results/.

What developers can take from this

  • Keep vertices in main RAM and textures in VRAM. Keeping the two in different memories was 58% faster than the worst placement. Vertices in VRAM only win if your textures sit in RAM.

  • Avoid indexed drawing. It runs at half the speed of plain triangle strips.

  • Every byte of a vertex costs speed. On the same scene, the vertex sizes below drew:

    vertex size M triangles/s
    6 bytes 22.7
    8 bytes + texture 16.8
    10 bytes 15.7
    36 bytes 10.5
  • Make draw calls large. Each costs about 0.2 µs, so 2 triangles per draw runs at 7 M/s and 32 per draw at 30 M/s.

  • GE features are not free. Costs per vertex:

    feature cost
    point or spot light +87 ns, 5× a directional light
    each extra skinning weight ≈ +40 ns
    CLUT palette load 1 µs per load
  • Textures: 4- or 8-bit CLUT, swizzled, with mipmaps. The 8 KB texture cache only hurts when the format or layout is wrong:

    256×256 texture, 1 texel per pixel M pixels/s
    none / small enough for the cache 514 / 510
    4-bit CLUT / 8-bit CLUT 360 / 270
    16-bit / 32-bit / DXT1 89 / 49 / 43
    8-bit CLUT, not swizzled 152
    8-bit CLUT seen from far (4 texels per pixel), no mipmaps / with mipmaps 23 / 510
  • Don't rebind textures needlessly. Every bind flushes the texture cache and costs ≈ 6.5–7 µs, however you write it. Sort draws by texture.

  • Switch palettes for free: keep up to 32 sixteen-colour palettes on chip and pick one with the CLUT CSA field (0.007 µs), instead of reloading a palette (0.7–1.3 µs).

  • Mipmaps cost 46% on close-up big textures, because binding more than one level halves the texture cache for each level. Bind one level for near objects, or use a LOD bias of +0.5. Trilinear filtering is free.

  • Fog costs ~40% on fill-heavy surfaces; blending and the depth test were free.

  • Open as few files as possible. One archive and one open handle beat many small files. Read in 64–256 KB blocks into 64-byte-aligned buffers.

  • Async reads only overlap with your work if the I/O priority is raised above the working thread.

  • Copies: VFPU copies win below 16 KB and sceDmacMemcpy wins from 64 KB. Never read VRAM through the uncached pointer (35–45 MB/s).

  • CPU access to VRAM while the GE draws slows the GE 4–10×.

The full explanation, with every table, is in the report. More practical notes (GE timing, memory, Memory Stick, overclock, ARK traps, emulator pitfalls, how to benchmark) are in docs/OBSERVATIONS.md.

Things we found along the way

  1. sceGeDrawSync(1) never reports "stalling" for programs built with pspsdk. The firmware compares the stall address in two different address forms. Fixed with three linker wraps; see gebench/stallfix.c.
  2. There is no hardware counter for GPU (GE) load. We checked the SDK profiler, SN ProDG Tuner and uOFW. Polling the GE driver state (sceGeDrawSync(1)) is exact when the GE is the bottleneck, but reads 0% when the CPU feeds it draw by draw. Replaying the frame's own display lists once is accurate to within 1 point in every case (report §4.1). A SIGNAL interrupt fires when the GE fetches it, up to 1.3 ms before the draws before it finish.
  3. Under ARK, a game cannot change the CPU clock. The default setting locks it at 333 MHz, and the clock getters keep reporting 333 even when overclocked. Measure the real clock with a timed loop.
  4. Under ARK, a program launched from the XMB has no current directory for the kernel. Relative paths fail with 0x8002032C. Call sceIoChdir on your EBOOT folder first.
  5. The PPSSPP emulator cannot be used for timing. It gave a flat 16.48 M/s for every GE test, and it silently ignores bad memory accesses that crash a real PSP.

Running the benchmarks

  1. Unzip the release archive to the Memory Stick root, then launch GEBENCH, MSBENCH, MEMBENCH or GESAMPV from the XMB.
  2. Wait until the results appear, without pressing anything. Each benchmark explains its own buttons on screen and in its README.
  3. Press SELECT on a results screen to save a screenshot (shotNNN.bmp) next to the program. Results are also appended to a text log in the same folder.
Program Takes Details
GEBENCH ~2.5 min (main table), ~1 min (cost model), ~10 s (load meter check) gebench/README.md
MSBENCH ~2 min per run (the first run also creates a 32 MiB file and 384 small ones; TRIANGLE twice deletes them) msbench/README.md
MEMBENCH 2–4 min membench/README.md
GESAMPV ~15 s gesampv/README.md

Building from source: install pspdev, then run make in a benchmark folder. ./build_release.sh 1.0 builds all four and packs the release archive.

How we measured

  • Only numbers from the real PSP count. The emulator is used only to check that a program starts.
  • GPU tests bake their draw commands once and time them until the GE reports it has finished. A coverage check reads the frame back to confirm that the triangles really were drawn.
  • Every test runs several times; the tables show the best and the median.
  • The real CPU clock is checked with a fixed timing loop, because the firmware's clock getters lie under ARK overclocking.
  • Test console:
    • PSP-3008, TA-095v2, firmware 6.61 with ARK.
    • Memory Stick: KIOXIA 64 GB microSDXC (UHS-I U1) in a microSD → Memory Stick PRO Duo adapter.

Related

  • SandstonePSPTools: crash catcher and frame profiler for PSP homebrew. The GE-load sampler from GEBENCH is being added to its profiler.
  • psp-developer notes: practical notes for PSP homebrew development.

License

MIT, see LICENSE. Not affiliated with Sony Interactive Entertainment.

About

PSP benchmarks measured on a real PSP-3008: GE triangles/s (Sony's 33M proven), texture formats and a GTA-like frame, Memory Stick I/O, memory copies. Source, PSP screenshots, EN/RU report.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages