1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| sudo apt update sudo apt install -y \ build-essential \ cmake \ git \ ninja-build \ python3 \ linux-tools-common
wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh sudo ./llvm.sh 17 all
cd ~/pro git clone https://github.com/google/benchmark.git cd benchmark
cmake -E make_directory build cmake -E chdir build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \ ..
cmake --build build --config Release -j$(nproc) sudo cmake --build build --target install
|