You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2023. It is now read-only.
These benchmarks allow measuring some operations in the libpmemobj-cpp.
4
+
5
+
Currently following benchmarks are available:
6
+
-**concurrent_hash_map_insert_open**: this benchmark is used to measure time of inserting specified number of elements and time of `runtime_initialize()` in concurrent hash map.
7
+
-**radix_tree**: this benchmark is used to compare times of basic operations in radix_tree and std::map.
8
+
-**self_relative_pointer_assignment**: this benchmark is used to measure time of the assignment operator and the swap function for persistent_ptr and self_relative_ptr.
9
+
-**self_relative_pointer_get**: this benchmark is used to measure time of accessing and changing a specified number of elements from a persistent array using self_relative_ptr and persistent_ptr.
10
+
11
+
## Compiling
12
+
13
+
Follow build steps for your OS (as described in top-level README), just make sure that the BUILD_BENCHMARKS option is ON.
14
+
15
+
To build all benchmarks (when you are in a build dir):
16
+
```sh
17
+
$ cd benchmarks
18
+
$ make
19
+
```
20
+
21
+
To build a certain benchmark (when you are in a build dir):
22
+
```sh
23
+
$ cd benchmarks
24
+
$ make benchmark-<name_of_benchmark>
25
+
```
26
+
27
+
## Running
28
+
29
+
**Warning:**
30
+
>These benchmarks shouldn't be run in a production environment, because they can remove/modify existing data in the tested containers.
31
+
32
+
Each benchmark can require various input parameters. If you want to see the usage of a certain benchmark, just run this benchmark's binary without any parameters, e.g.
33
+
```sh
34
+
$ ./benchmark-radix_tree
35
+
```
36
+
For example radix_tree benchmark needs following parameters: file_name \[count]\[batch_size]\[sample_size]. Example execution:
0 commit comments