Skip to content

Commit

Permalink
Fix cache scrubbing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christos Psarras committed May 15, 2019
1 parent 5da4f4b commit a19c01b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/benchmarker/benchmarker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class basic_benchmarker {
basic_benchmarker()
: cache_trash(nullptr)
{
this->set_cache_size(7500000);
}

void set_cache_size(int l3_size)
Expand Down Expand Up @@ -116,7 +117,7 @@ class basic_benchmarker {
if (cache_trash) {
std::for_each(cache_trash.get(), cache_trash.get() + trash_size,
[](double& val) {
val += 0.01;
val += 0.0001;
});
}
}
Expand Down

0 comments on commit a19c01b

Please sign in to comment.