Turned benchmark closures into static functions

Closures were giving slower and wildly erratic benchmark times compared
with previous static benchmarks.