Actually C++ advantage would be smaller, since the test isn't at all GPU bound. It's basically testing how fast you can copy data through the JS <-> C++ FFI into the GL library.
A test that stayed within JS would optimize better and perform better relative to C++.
A test that stayed within JS would optimize better and perform better relative to C++.