[PATCH 4.14 111/116] perf bench: Share some global variables to fix build with gcc 10