Files
omath/benchmark/benchmark_mat.cpp
2025-09-17 20:22:42 +03:00

28 lines
471 B
C++

//
// Created by Vlad on 9/17/2025.
//
#include <benchmark/benchmark.h>
#include <omath/omath.hpp>
#include <chrono>
#include <print>
using namespace omath;
static void BM_MatMutiplication(benchmark::State& state)
{
using MatType = Mat<128, 128, float, MatStoreType::COLUMN_MAJOR>;
MatType a;
MatType b;
a.set(3.f);
b.set(7.f);
for (auto _ : state)
{
std::ignore = a * b;
}
}
BENCHMARK(BM_MatMutiplication);
BENCHMARK_MAIN();