- make sure cmake is installed (>=3.26). Check by running
Otherwise can install from https://cmake.org/download/
cmake --version
- Go to project directory and create a new directory build
mkdir build cd build
- Run these two command to compile and build the exe file
cmake .. cmake --build .
- An exe file should be created inside the Debug folder run this exe in console by running:
This exe file will run the main.cpp file for internal testing of the B+ Tree functions. To get the experiments results, please follow the steps below.
.\Debug\B_Plus_Tree_Project.exe
- Install CMake through
Alternatively you can use brew,
sudo apt-get update sudo apt-get install cmake
brew install cmake
- In the project directory, create dir named 'build' and navigate into it. This is to keep the source directory clean.
mkdir build && cd build
- Run this command to generate build files and build the project
cmake .. && make
- Run the executable
This exe file will run the main.cpp file for internal testing of the B+ Tree functions. To get the experiments results, please follow the steps below.
./B_Plus_Tree_Project
The script related to experiment is located in /src/experiment.cpp
. When the script is run, it will print out all the results relevant to the experiments.
To run this script follow step 1 to 3 on top replace step 4 with
.\Debug\Experiment.exe
To run this script, run ./experiment
in the /build
folder. Ensure you have done the setup above before running the script.
If the script is not running whitin expectation please email twijaya001@e.ntu.edu.sg