Link Search Menu Expand Document

Performance

I’ve done some limited performance tests (turning a GPIO on then off, see GpioPerfTest) on a Raspberry Pi 2 and 3 using the various provider implementations. I’ve also run tests using the underlying APIs directly without going via diozero to assess the overhead of diozero (see WiringPiRawPerfTest and PigpioPerfTest) - the overhead of diozero is approximately 1% for pigpio. Here are the results:

Provider Device Frequency (kHz)
pigpio Pi2 2,019
pigpio Pi3 2,900
pigpio (JNI) Pi2 2,509
pigpio (JNI) Pi3 3,537
mmap Pi3 7,686
mmap (JNI) Pi3 11,007

Performance