diff --git a/test/benchmark/random.cpp b/test/benchmark/random.cpp new file mode 100644 index 00000000..8d126112 --- /dev/null +++ b/test/benchmark/random.cpp @@ -0,0 +1,15 @@ +/* Copyright (c) 2023 Krisztián Rugási. Subject to the MIT License. */ + +#include +#include +#include "utility/rng.hpp" + +using namespace gapp::rng; + +TEST_CASE("prng", "[benchmark]") +{ + BENCHMARK("randomBool") { return randomBool(); }; + BENCHMARK("randomInt") { return randomInt(0, 100); }; + BENCHMARK("randomReal") { return randomReal(0.0, 1.0); }; + BENCHMARK("randomNorm") { return randomNormal(0.0, 10.0); }; +} diff --git a/test/benchmark/sample_unique.cpp b/test/benchmark/sample_unique.cpp index d61e65d2..80c13e9c 100644 --- a/test/benchmark/sample_unique.cpp +++ b/test/benchmark/sample_unique.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2023 Krisztián Rugási. Subject to the MIT License. */ #include -#include #include #include "utility/rng.hpp"