Function with initialized data

Don’t benchmark in global scope: put the variable definitions and the benchmarking code inside a function.