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:
parent
6cd63e8ac9
commit
b23cb43bd4
@ -36,19 +36,19 @@ class ExpansionBenchFixture : public benchmark::Fixture {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
BENCHMARK_DEFINE_F(ExpansionBenchFixture, Match)(benchmark::State &state) {
|
// BENCHMARK_DEFINE_F(ExpansionBenchFixture, Match)(benchmark::State &state) {
|
||||||
auto query = "MATCH (s:Start) return s";
|
// auto query = "MATCH (s:Start) return s";
|
||||||
auto dba = dbms_->active();
|
// auto dba = dbms_->active();
|
||||||
while (state.KeepRunning()) {
|
// while (state.KeepRunning()) {
|
||||||
ResultStreamFaker results;
|
// ResultStreamFaker results;
|
||||||
interpeter_.Interpret(query, *dba, results, {});
|
// interpeter_.Interpret(query, *dba, results, {});
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
BENCHMARK_REGISTER_F(ExpansionBenchFixture, Match)
|
// BENCHMARK_REGISTER_F(ExpansionBenchFixture, Match)
|
||||||
->RangeMultiplier(1024)
|
// ->RangeMultiplier(1024)
|
||||||
->Range(1, 1 << 20)
|
// ->Range(1, 1 << 20)
|
||||||
->Unit(benchmark::kMillisecond);
|
// ->Unit(benchmark::kMillisecond);
|
||||||
|
|
||||||
BENCHMARK_DEFINE_F(ExpansionBenchFixture, Expand)(benchmark::State &state) {
|
BENCHMARK_DEFINE_F(ExpansionBenchFixture, Expand)(benchmark::State &state) {
|
||||||
auto query = "MATCH (s:Start) WITH s MATCH (s)--(d) RETURN count(d)";
|
auto query = "MATCH (s:Start) WITH s MATCH (s)--(d) RETURN count(d)";
|
||||||
|
Loading…
Reference in New Issue
Block a user