Add step by step instructions to Readme
@@ -10,7 +10,21 @@ Follow instructions on the Google Benchmark repository to build and install [Goo
3. `-DCMAKE_PREFIX_PATH="File/path/to/Google/Benchmark/"`
#### Example:
-`cmake . -Bbuild -GNinja -DCMAKE_EXE_LINKER_FLAGS="-lcrypto -lz" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=1 -DBENCHMARK=1 -DCMAKE_PREFIX_PATH="~/benchmark/install"`
+
+```
+# Starting from the top level "s2n-tls" directory, remove previous CMake build files, if any
+rm -rf build
+
+# Initialize CMake build directory with Nina build system
+cmake . -Bbuild -GNinja -DCMAKE_EXE_LINKER_FLAGS="-lcrypto -lz" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=1 -DBENCHMARK=1 -DCMAKE_PREFIX_PATH="~/benchmark/install"
+
+# Actually build the executable binaries
+cd build
+ninja
+
+# Run a benchmark
+./bin/s2n_negotiate_benchmark -r 1 -i 5 -p ../tests/pems/ -o negotiate_data -t console localhost 8000
+```
**If you would like to build with a different libcrypto, include the file path in -DCMAKE_PREFIX_PATH**:
@@ -67,11 +81,11 @@ usage:
### s2n_negotiate_benchmark
Example:
-`./s2n_negotitate_benchmark -r 1 -i 5 -p /Users/sidhusn/s2n-tls/tests/pems/ -o negotiate_data -t console localhost 8000`
+`./bin/s2n_negotiate_benchmark -r 1 -i 5 -p ../tests/pems/ -o negotiate_data -t console localhost 8000`
or
-`./s2n_negotitate_benchmark -r 5 -i 5 -w 10 -p /Users/sidhusn/s2n-tls/tests/pems/ -o negotiate_data -t console localhost 8000`
+`./bin/s2n_negotiate_benchmark -r 5 -i 5 -w 10 -p ../tests/pems/ -o negotiate_data -t console localhost 8000`
