added source engine benchmark

This commit is contained in:
2025-09-22 02:29:36 +03:00
parent a4dcf8dc3b
commit 2bb0c82c30
2 changed files with 24 additions and 5 deletions

View File

@@ -4,7 +4,6 @@
#include <benchmark/benchmark.h>
#include <omath/omath.hpp>
#include <chrono>
using namespace omath;
@@ -17,7 +16,7 @@ void mat_float_multiplication_col_major(benchmark::State& state)
b.set(7.f);
for (auto _ : state)
for ([[maybe_unused]] const auto _ : state)
std::ignore = a * b;
}
void mat_float_multiplication_row_major(benchmark::State& state)
@@ -29,7 +28,7 @@ void mat_float_multiplication_row_major(benchmark::State& state)
b.set(7.f);
for (auto _ : state)
for ([[maybe_unused]] const auto _ : state)
std::ignore = a * b;
}
@@ -42,7 +41,7 @@ void mat_double_multiplication_row_major(benchmark::State& state)
b.set(7.f);
for (auto _ : state)
for ([[maybe_unused]] const auto _ : state)
std::ignore = a * b;
}
@@ -55,7 +54,7 @@ void mat_double_multiplication_col_major(benchmark::State& state)
b.set(7.f);
for (auto _ : state)
for ([[maybe_unused]] const auto _ : state)
std::ignore = a * b;
}