Update the benchmark to commit t1 before starting t2

Summary:
The previous behavior was incorrect, since the second transaction
cannot see the record created in the first, because it commited later.

Reviewers: florijan, buda, dgleich

Reviewed By: dgleich

Subscribers: pullbot, matej.gradicek

Differential Revision: https://phabricator.memgraph.io/D390
This commit is contained in:
Teon Banek 2017-05-22 09:26:20 +02:00
parent d016472c3a
commit fbf028a438

View File

@ -18,8 +18,8 @@ void MvccMix(benchmark::State &state) {
auto t1 = engine.begin();
mvcc::VersionList<Prop> version_list(*t1);
auto t2 = engine.begin();
t1->commit();
auto t2 = engine.begin();
state.ResumeTiming();
version_list.update(*t2);