sfu-dis / pibench

Benchmarking framework for index structures on persistent memory
MIT License
87 stars 20 forks source link

Parse "num_operations" if "mode" is not provided #39

Closed geshi001 closed 3 years ago

geshi001 commented 3 years ago

In the current implementation, if -m hadn't been provided, we would not have parsed -p/--operations, and num_ops would have been left default (which is 1e6). This PR adds that parsing back.

If the mode is not specified, for the sake of backward compatibility with legacy benchmarking scripts, we set the mode to operation-based and parse the number of operations if provided.