The N-Queens benchmark solves the combinatorially hard chess problem of placing N queens on an chessboard such that no queen can attack any other.
This code written in Python allows testing your hardware performance resolving a mathematical problem. I programmed this code especially to test the performance of embedded hardware running Python (Raspberry Pi, Docker in Raspberry Pi, Beagleboard, Beaglebone). There are a lot of benchmark everywhere e.g. Whetstone, Dhrystone, SysBench CPU, Linpack etc. but none of these can resolve a mathematical problem and also test the performance of the hardware using Python. This code does it.
The repository includes a file "temperature.py". This is coded to get the temperature (CPU & GPU) of a Raspberry Pi. If you are not using a Raspberry Pi, you need to modify this file to get the hardware temperature or just delete it.