Benchmarks for BeagleBone Black GPIO with Python, C, C++, and Shell @beagleboardorg
Code and Life ran some benchmarks on the BealgeBone Black’s GPIOs using multiple libraries, including Adafruit’s own Adafruit_BBIO Python Library. The results are useful for any maker looking for existing benchmarks that compare and contrast multiple languages and libraries, for their own projects.
The test is a basic “toggle one GPIO pin as fast as possible”. It does not measure multiple pin performance, input performance or the capabilities of built-in hardware capabilities like I2C communications or PWM which might operate on significantly higher speeds. It basically tells that with benchmark speed of 1 kHz, you can expect 2000 toggles per second on that programming language, or on average 0.5 ms for a single toggle.