add speed testing code for stm32