benchmark for various C++ function implementations