lukewassink/matmult

Benchmark various matrix multiplication algorithms.

Scala

1

13 commits

updated Sep 6, 2026

See the code

See what people are saying

SourceMessageScoreDate

Matrix multiplication performance (r/rust)

I recently benchmarked some matrix multiplication algorithms in Scala ([blog post](https://lukewassink.com/posts/matrix-multiplication-optimization/), [repo](https://github.com/lukewassink/matmult)). I've been going through and doing the same thing in Rust, with plans to try out a few additional…

44

Oct 12, 2026

README

Matrix Multiplication Benchmarking

MatMult is a simple project I built to get experience with performance optimization and to better understand matrix multiplcation algorithms. For the results, see this blog post.

Usage

This is a normal sbt project. You can compile code with sbt compile and run the tests with sbt test.

This project uses the JMH (Java Microbenchmarking Harness). To run the benchmarks for yourself:

  1. Install the JMH

  2. Uncomment the benchmarks you want to run in src/main/scala/com/lukewassink/benchmark/Benchmarks.scala. Edit the annotations if you want to change the JMH settings. For example, you can change the number of iterations to benchmark. You can also change the parameters for the multiplication algorithms by un-commenting and editing the @Params blocks.

  3. In the terminal, enter sbt, then enter Jmh/run.

MatMult is provided under the MIT license.

lukewassink/matmult

Benchmark various matrix multiplication algorithms.

Scala

1

13 commits

updated Sep 6, 2026

See the code

See what people are saying

SourceMessageScoreDate

Matrix multiplication performance (r/rust)

I recently benchmarked some matrix multiplication algorithms in Scala ([blog post](https://lukewassink.com/posts/matrix-multiplication-optimization/), [repo](https://github.com/lukewassink/matmult)). I've been going through and doing the same thing in Rust, with plans to try out a few additional…

44

Oct 12, 2026

README

Matrix Multiplication Benchmarking

MatMult is a simple project I built to get experience with performance optimization and to better understand matrix multiplcation algorithms. For the results, see this blog post.

Usage

This is a normal sbt project. You can compile code with sbt compile and run the tests with sbt test.

This project uses the JMH (Java Microbenchmarking Harness). To run the benchmarks for yourself:

  1. Install the JMH

  2. Uncomment the benchmarks you want to run in src/main/scala/com/lukewassink/benchmark/Benchmarks.scala. Edit the annotations if you want to change the JMH settings. For example, you can change the number of iterations to benchmark. You can also change the parameters for the multiplication algorithms by un-commenting and editing the @Params blocks.

  3. In the terminal, enter sbt, then enter Jmh/run.

MatMult is provided under the MIT license.