Go to pytorch-src-folder/benchmarks python -m operator_benchmark.ops.matmul_test
pytorch-src-folder/benchmarks
python -m operator_benchmark.ops.matmul_test
should report the execution time of matmul operator with PyTorch and Caffe2