Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aksh-bansal-dev/matrix-multiply

Multi-threaded matrix multiplication in rust
https://github.com/aksh-bansal-dev/matrix-multiply

Last synced: 25 days ago
JSON representation

Multi-threaded matrix multiplication in rust

Awesome Lists containing this project

README

        

# matrix-multiply
Multi-threaded matrix multiplication in rust.

Goal of this project is to test the difference in performance of multithreaded and singlethreaded applications.

## Benchmark

| Number of threads | Matrix dimensions | execution time |
|-------------------|-------------------|----------------|
| 1 | 1400 | 13s |
| 4 | 1400 | 3s |

> Note: execution time may vary, depending on hardware

## How to use
- Run `python3 gen.py 1000 > input.txt` to generate two random 1000x1000 matrices.
- Run `cargo run --release < input.txt` for multithreaded matrix multiplication.
- Run `cargo run --release -- -s < input.txt` for single matrix multiplication.