Benchmark Expand - disabled Match testing

Summary: Disabling it because it seems that (singleton + fixture + multiple_benchmarks) cause occasional crashes of the test. The more important test is left enabled.

Reviewers: mislav.bradac, buda

Reviewed By: mislav.bradac

Differential Revision: https://phabricator.memgraph.io/D696
This commit is contained in:
florijan 2017-08-23 11:15:10 +02:00
parent 6cd63e8ac9
commit b23cb43bd4

View File

@ -36,19 +36,19 @@ class ExpansionBenchFixture : public benchmark::Fixture {
}
};
BENCHMARK_DEFINE_F(ExpansionBenchFixture, Match)(benchmark::State &state) {
auto query = "MATCH (s:Start) return s";
auto dba = dbms_->active();
while (state.KeepRunning()) {
ResultStreamFaker results;
interpeter_.Interpret(query, *dba, results, {});
}
}
BENCHMARK_REGISTER_F(ExpansionBenchFixture, Match)
->RangeMultiplier(1024)
->Range(1, 1 << 20)
->Unit(benchmark::kMillisecond);
// BENCHMARK_DEFINE_F(ExpansionBenchFixture, Match)(benchmark::State &state) {
// auto query = "MATCH (s:Start) return s";
// auto dba = dbms_->active();
// while (state.KeepRunning()) {
// ResultStreamFaker results;
// interpeter_.Interpret(query, *dba, results, {});
// }
// }
//
// BENCHMARK_REGISTER_F(ExpansionBenchFixture, Match)
// ->RangeMultiplier(1024)
// ->Range(1, 1 << 20)
// ->Unit(benchmark::kMillisecond);
BENCHMARK_DEFINE_F(ExpansionBenchFixture, Expand)(benchmark::State &state) {
auto query = "MATCH (s:Start) WITH s MATCH (s)--(d) RETURN count(d)";