A CPU performance benchmark comparing Java and C++ using O(n^3) matrix multiplication.
The C++ implementation uses a flat, 1D std::vector to simulate a 2D matrix.
chmod +x benchmark.sh./benchmark.sh
You can also run ./benchmark.sh --skip-xint to skip java -Xint tests.