My bad, don't think one can easily overload C++ functions, the roundtrip between js and c++ could be more costly than just js. Also you cannot extend interfaces with more functions, nor can you change the C++ code that use it. Then you have to overwrite those C++ functions with js ones too
I suppose it should be profiled.