Reorganize the code of benchmark #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Decouple the common steps and database implementations. With this it is easy to add new implementations and remove missing ones.
Also separate single writes and batch writes, since in almost every implementation the batch write is faster.
Initiate MAX_TIME to stop spending infinite time calculating very slow implementations.
Add combined case: in real world the key/value stores are not used to store the whole database, then read the whole database. In the combined case the same number of writes and reads are calculated for different database sizes.
WiredTiger is missing from PyPi, so I removed that.
Added SQLite WAL mode, since it is much faster even with autocommit than the existing two.