measure cpu ticks required to copy std::function vs. std::shared_ptr<std::function>