Skip to content

[MicroBenchmarks] Add matrix type benchmarks. #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fhahn
Copy link
Contributor

@fhahn fhahn commented Jun 25, 2025

Add initial benchmarks for basic operations on matrix types.

@fhahn fhahn requested review from jroelofs and anemet June 25, 2025 11:23
@fhahn fhahn force-pushed the matrix-microbench branch from 658a9e2 to 9bb1ebf Compare June 25, 2025 11:23
@fhahn fhahn force-pushed the matrix-microbench branch from 9bb1ebf to 1bf39ae Compare June 25, 2025 14:59
};

BENCHMARK_F(MatrixMult4x4Benchmark, MatrixTypeAB)(benchmark::State &state) {
while (state.KeepRunning()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
while (state.KeepRunning()) {
for (auto _ : state) {

https://google.github.io/benchmark/user_guide.html#a-faster-keep-running-loop

#endif

#include "benchmark/benchmark.h"
#include <iostream>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#include <iostream>

is this used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants