A quick test of the speed of an std::function wrapper vs. a template one