How keep-xylent/mali-bench works
mali-bench benchmarks Android Vulkan compute drivers, either through ADB from a PC or directly in Termux. The user selects a driver package or shared library; the native engine loads a Vulkan driver and shader, dispatches compute work, and reports timing and device details. The README documents SVG and log outputs. The C engine’s Vulkan flow is visible, but the Python runner and shader implementation were not sampled, so their internal connections are not asserted beyond documented behavior.
Main entry points: bench.py Python Runner · vk_bench.c Vulkan Engine · bench.comp Compute Shader
Components 8
Driver Workflow
- Driver ZIP / SO
- Python Runner
bench.py
Compute Benchmark
- Compute Shader
bench.comp - Vulkan Engine
vk_bench.c
Benchmark Results
- SVG and Log
bench.py
Other components
- PC User
- Termux User
- Android Device
Connections 7
- PC User → Python Runner: runs on PC
README.md - Termux User → Python Runner: runs in Termux
README.md - Android Device → Python Runner: provides drivers
README.md - Driver ZIP / SO → Python Runner: selects driver
README.md - Compute Shader → Vulkan Engine: loads SPIR-V
vk_bench.c - Python Runner → Vulkan Engine: runs engine
- Python Runner → SVG and Log: writes results
README.md