Add tests to ball-park relative cost of calling C++ functions from javascript