mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
28 lines
471 B
C++
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(); |