diff --git a/benchmarks/benchmark.sh b/benchmarks/benchmark.sh index d95f3a4..84db4b0 100755 --- a/benchmarks/benchmark.sh +++ b/benchmarks/benchmark.sh @@ -8,16 +8,13 @@ if [ ! -f "benchmark.sh" ]; then exit 1 fi +# change to root directory cd .. || exit # === Build project === echo "Building mandelbrot benchmark" bash build.sh # run build script -# Change back to root directory -cd .. || exit - - # === Run benchmarks === echo "Running benchmarks" diff --git a/build.sh b/build.sh index d03f56f..63d3aed 100755 --- a/build.sh +++ b/build.sh @@ -28,4 +28,4 @@ cd build || exit cmake .. # Compile files -make -j +make -j8