rtgde: Show statistics when exiting the program
tests: add a minimal example