Skip to content

Commit

Permalink
Merge 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemapfel authored Apr 29, 2022
2 parents 4c616bb + 079fd2d commit 05a827c
Show file tree
Hide file tree
Showing 83 changed files with 8,624 additions and 9,060 deletions.
5 changes: 3 additions & 2 deletions .benchmark/benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace jluna
if (count % 2 == 0)
count += 1;

State::collect_garbage();
collect_garbage();

std::cout << "[C++][LOG] Running \"" << name << "\"" << std::endl;
std::vector<Duration> runs;
Expand All @@ -94,6 +94,7 @@ namespace jluna

try
{
lambda(); // for potential static allocation
for (; n < count; ++n)
{
before = Benchmark::_clock.now();
Expand Down Expand Up @@ -130,7 +131,7 @@ namespace jluna
if (a.count() == 0)
return 0;

return (a < b ? 1 : -1) * (abs(a - b) / a); //(a < b ? (b - a) / (a + b) : -1 *((a - b) / a));
return (a < b ? 1 : -1) * (abs(a - b) / a);
};
res._overhead = overhead(_base._median, res._median);
if (res._overhead != 0)
Expand Down
Loading

0 comments on commit 05a827c

Please sign in to comment.