News How to Benchmark a Raspberry Pi Using Vcgencmd

Thanks for publishing this. I had previously used some stuff in /sys/ to get info about the CPU clockspeed and temperature, which was fine for my purposes. It would've been very nice to see some explicit confirmation of when throttling happened, however.

A few suggestions:
  • The bash script is simple enough for the data collection, but analysis would benefit from Python, at which point I'd recommend using numpy.array to hold the data. It gives you a nice way to represent tabular data in a single data structure, and then select just the columns you're interested in.
  • You can then use matplotlib to make nice plots.
  • As for benchmarking, stress-ng is my go-to and I think a vastly deeper tool than stress. Try it with options: –cpu 4 –cpu-method matrixprod
  • To exercise the GPU, I think one command I've used is: glmark2-es2 –off-screen –run-forever (of course, you should first ensure you're using the actual GPU driver and not software emulation).

Overall, thanks! I hope this means we can look forward to more detailed power & temperature data in future Pi benchmarks!
; )
 
  • Like
Reactions: Evildead_666