From 0c4446585f145432285ae994d5b8f3192eb29306 Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Wed, 23 Mar 2022 15:11:20 +0800 Subject: [PATCH] test: logs: update result for sifive unmatched Signed-off-by: Yixun Lan --- ...five-u74-mc-riscv64-20220323-150035-O1.log | 73 ++++++ ...five-u74-mc-riscv64-20220323-150150-O0.log | 213 ++++++++++++++++++ ...five-u74-mc-riscv64-20220323-150847-O2.log | 76 +++++++ ...five-u74-mc-riscv64-20220323-150914-O2.log | 76 +++++++ ...five-u74-mc-riscv64-20220323-150940-O1.log | 77 +++++++ 5 files changed, 515 insertions(+) create mode 100644 test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150035-O1.log create mode 100644 test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150150-O0.log create mode 100644 test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150847-O2.log create mode 100644 test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150914-O2.log create mode 100644 test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150940-O1.log diff --git a/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150035-O1.log b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150035-O1.log new file mode 100644 index 0000000..7e27c9c --- /dev/null +++ b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150035-O1.log @@ -0,0 +1,73 @@ +cd benchmark && \ +git checkout -- test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/icompile_benchmark_test(riscv64)" test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/iadd_test(NAME riscv64 COMMAND riscv64 --benchmark_min_time=0.01)\n" test/CMakeLists.txt +touch benchmark/test/riscv64.dep +cd benchmark && cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" +-- git version: v1.6.1-38-g60b16f11-dirty normalized to 1.6.1.38 +-- Version: 1.6.1.38 +-- Performing Test HAVE_STD_REGEX -- success +-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile +-- Performing Test HAVE_POSIX_REGEX -- success +-- Performing Test HAVE_STEADY_CLOCK -- success +-- Looking for Google Test sources +-- Looking for Google Test sources in /home/dlan/riscv-linux/test/microbench/benchmark/googletest +33mCMake Warning at CMakeLists.txt:37 (message): + Did not find Google Test sources! Fetching from web... + +0m +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest +gmake[2]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[3]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[ 11%] 34m1mPerforming update step for 'googletest'0m +[ 22%] 34m1mNo patch step for 'googletest'0m +[ 33%] 34m1mNo configure step for 'googletest'0m +[ 44%] 34m1mNo build step for 'googletest'0m +[ 55%] 34m1mNo install step for 'googletest'0m +[ 66%] 34m1mNo test step for 'googletest'0m +[ 77%] 34m1mCompleted 'googletest'0m +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[100%] Built target googletest +gmake[3]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[2]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build +cd benchmark && cmake --build "build" --config Release --target riscv64 +35m1mConsolidate compiler generated dependencies of target benchmark0m +[ 83%] Built target benchmark +35m1mConsolidate compiler generated dependencies of target benchmark_main0m +[ 91%] Built target benchmark_main +35m1mConsolidate compiler generated dependencies of target riscv640m +[ 95%] 32mBuilding CXX object test/CMakeFiles/riscv64.dir/riscv64.cc.o0m +[100%] 32m1mLinking CXX executable riscv640m +[100%] Built target riscv64 +benchmark/build/test/riscv64 +2022-03-23T15:00:47+08:00 +Running benchmark/build/test/riscv64 +Run on (4 X 0.805823 MHz CPU s) +CPU Caches: + L1 Instruction 32 KiB (x4) + L1 Data 32 KiB (x4) + L2 Unified 2048 KiB (x1) +Load Average: 0.35, 0.12, 0.12 +------------------------------------------------------------------------- +Benchmark Time CPU Iterations +------------------------------------------------------------------------- +BM_nop 2.10 ns 2.10 ns 334100173 +BM_ub 2.93 ns 2.93 ns 238630940 +BM_bnez 2.51 ns 2.51 ns 278384258 +BM_beqz 2.51 ns 2.51 ns 278395329 +BM_load_bnez 1.68 ns 1.68 ns 417591333 +BM_load_beqz 4.19 ns 4.19 ns 167046897 +BM_cache_miss_load_bnez 9.49 ns 9.48 ns 73806185 +BM_cache_miss_load_beqz 9.54 ns 9.54 ns 73725342 +BM_branch_miss_load_bnez 13.4 ns 13.4 ns 52280162 +BM_branch_miss_load_beqz 13.3 ns 13.3 ns 52296957 +BM_cache_branch_miss_load_bnez 13.3 ns 13.3 ns 52293050 +BM_cache_branch_miss_load_beqz 13.4 ns 13.4 ns 52244654 diff --git a/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150150-O0.log b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150150-O0.log new file mode 100644 index 0000000..504d0f0 --- /dev/null +++ b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150150-O0.log @@ -0,0 +1,213 @@ +git clone https://gitee.com/mirrors/benchmark.git +Cloning into 'benchmark'... +sed -i -e "s%https://github.com/google/googletest.git%https://gitee.com/mirrors/googletest.git%g" benchmark/WORKSPACE +sed -i -e "s%https://github.com/google/googletest.git%https://gitee.com/mirrors/googletest.git%g" benchmark/cmake/GoogleTest.cmake.in +cd benchmark && cmake -E make_directory "build" +cd benchmark && cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ +-- The CXX compiler identification is GNU 11.2.1 +-- Detecting CXX compiler ABI info +-- Detecting CXX compiler ABI info - done +-- Check for working CXX compiler: /usr/bin/c++ - skipped +-- Detecting CXX compile features +-- Detecting CXX compile features - done +-- Found Git: /usr/bin/git (found version "2.33.0") +-- git version: v1.6.1-38-g60b16f11-dirty normalized to 1.6.1.38 +-- Version: 1.6.1.38 +-- Looking for shm_open in rt +-- Looking for shm_open in rt - found +-- Performing Test HAVE_CXX_FLAG_STD_CXX11 +-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success +-- Performing Test HAVE_CXX_FLAG_WALL +-- Performing Test HAVE_CXX_FLAG_WALL - Success +-- Performing Test HAVE_CXX_FLAG_WEXTRA +-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success +-- Performing Test HAVE_CXX_FLAG_WSHADOW +-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success +-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL +-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success +-- Performing Test HAVE_CXX_FLAG_WERROR +-- Performing Test HAVE_CXX_FLAG_WERROR - Success +-- Performing Test HAVE_CXX_FLAG_PEDANTIC +-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success +-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS +-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success +-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 +-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed +-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING +-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success +-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS +-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success +-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED +-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success +-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING +-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success +-- Performing Test HAVE_CXX_FLAG_WD654 +-- Performing Test HAVE_CXX_FLAG_WD654 - Failed +-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY +-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed +-- Performing Test HAVE_CXX_FLAG_COVERAGE +-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success +-- Performing Test HAVE_STD_REGEX +-- Performing Test HAVE_STD_REGEX +-- Performing Test HAVE_STD_REGEX -- success +-- Performing Test HAVE_GNU_POSIX_REGEX +-- Performing Test HAVE_GNU_POSIX_REGEX +-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile +-- Performing Test HAVE_POSIX_REGEX +-- Performing Test HAVE_POSIX_REGEX +-- Performing Test HAVE_POSIX_REGEX -- success +-- Performing Test HAVE_STEADY_CLOCK +-- Performing Test HAVE_STEADY_CLOCK +-- Performing Test HAVE_STEADY_CLOCK -- success +-- Looking for C++ include pthread.h +-- Looking for C++ include pthread.h - found +-- Performing Test CMAKE_HAVE_LIBC_PTHREAD +-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success +-- Found Threads: TRUE +-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY +-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success +-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY +-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success +-- Performing Test COMPILER_HAS_DEPRECATED_ATTR +-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success +-- Looking for Google Test sources +-- Looking for Google Test sources in /home/dlan/riscv-linux/test/microbench/benchmark/googletest +33mCMake Warning at CMakeLists.txt:37 (message): + Did not find Google Test sources! Fetching from web... + +0m +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest +gmake[2]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[3]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[ 11%] 34m1mCreating directories for 'googletest'0m +[ 22%] 34m1mPerforming download step (git clone) for 'googletest'0m +Cloning into 'src'... +HEAD is now at e2239ee6 Googletest export +[ 33%] 34m1mPerforming update step for 'googletest'0m +[ 44%] 34m1mNo patch step for 'googletest'0m +[ 55%] 34m1mNo configure step for 'googletest'0m +[ 66%] 34m1mNo build step for 'googletest'0m +[ 77%] 34m1mNo install step for 'googletest'0m +[ 88%] 34m1mNo test step for 'googletest'0m +[100%] 34m1mCompleted 'googletest'0m +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[100%] Built target googletest +gmake[3]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[2]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +-- The C compiler identification is GNU 11.2.1 +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Check for working C compiler: /usr/bin/cc - skipped +-- Detecting C compile features +-- Detecting C compile features - done +-- Found Python: /usr/bin/python3.10 (found version "3.10.2") found components: Interpreter +-- Performing Test BENCHMARK_HAS_O3_FLAG +-- Performing Test BENCHMARK_HAS_O3_FLAG - Success +-- Performing Test BENCHMARK_HAS_WNO_ODR +-- Performing Test BENCHMARK_HAS_WNO_ODR - Success +-- Performing Test BENCHMARK_HAS_WNO_LTO_TYPE_MISMATCH +-- Performing Test BENCHMARK_HAS_WNO_LTO_TYPE_MISMATCH - Success +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build +cd benchmark/test && cp ../../test/riscv64.cc riscv64.cc +grep "#define OPTIMIZE_LEVEL 0" benchmark/test/riscv64.cc || \ +sed -i -e "s/#define OPTIMIZE_LEVEL.*/#define OPTIMIZE_LEVEL 0/g" benchmark/test/riscv64.cc +cd benchmark && \ +git checkout -- test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/icompile_benchmark_test(riscv64)" test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/iadd_test(NAME riscv64 COMMAND riscv64 --benchmark_min_time=0.01)\n" test/CMakeLists.txt +touch benchmark/test/riscv64.dep +cd benchmark && cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" +-- git version: v1.6.1-38-g60b16f11-dirty normalized to 1.6.1.38 +-- Version: 1.6.1.38 +-- Performing Test HAVE_STD_REGEX -- success +-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile +-- Performing Test HAVE_POSIX_REGEX -- success +-- Performing Test HAVE_STEADY_CLOCK -- success +-- Looking for Google Test sources +-- Looking for Google Test sources in /home/dlan/riscv-linux/test/microbench/benchmark/googletest +33mCMake Warning at CMakeLists.txt:37 (message): + Did not find Google Test sources! Fetching from web... + +0m +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest +gmake[2]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[3]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[ 11%] 34m1mPerforming update step for 'googletest'0m +[ 22%] 34m1mNo patch step for 'googletest'0m +[ 33%] 34m1mNo configure step for 'googletest'0m +[ 44%] 34m1mNo build step for 'googletest'0m +[ 55%] 34m1mNo install step for 'googletest'0m +[ 66%] 34m1mNo test step for 'googletest'0m +[ 77%] 34m1mCompleted 'googletest'0m +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[100%] Built target googletest +gmake[3]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[2]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build +cd benchmark && cmake --build "build" --config Release --target riscv64 +[ 4%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/benchmark.cc.o0m +[ 8%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/benchmark_api_internal.cc.o0m +[ 12%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/benchmark_name.cc.o0m +[ 16%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/benchmark_register.cc.o0m +[ 20%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/benchmark_runner.cc.o0m +[ 25%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/check.cc.o0m +[ 29%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/colorprint.cc.o0m +[ 33%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/commandlineflags.cc.o0m +[ 37%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/complexity.cc.o0m +[ 41%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/console_reporter.cc.o0m +[ 45%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/counter.cc.o0m +[ 45%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/csv_reporter.cc.o0m +[ 50%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/json_reporter.cc.o0m +[ 54%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/perf_counters.cc.o0m +[ 58%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/reporter.cc.o0m +[ 62%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/sleep.cc.o0m +[ 66%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/statistics.cc.o0m +[ 70%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/string_util.cc.o0m +[ 75%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/sysinfo.cc.o0m +[ 79%] 32mBuilding CXX object src/CMakeFiles/benchmark.dir/timers.cc.o0m +[ 83%] 32m1mLinking CXX static library libbenchmark.a0m +[ 83%] Built target benchmark +[ 87%] 32mBuilding CXX object src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o0m +[ 91%] 32m1mLinking CXX static library libbenchmark_main.a0m +[ 91%] Built target benchmark_main +[ 95%] 32mBuilding CXX object test/CMakeFiles/riscv64.dir/riscv64.cc.o0m +[100%] 32m1mLinking CXX executable riscv640m +[100%] Built target riscv64 +benchmark/build/test/riscv64 +2022-03-23T15:07:31+08:00 +Running benchmark/build/test/riscv64 +Run on (4 X 0.753743 MHz CPU s) +CPU Caches: + L1 Instruction 32 KiB (x4) + L1 Data 32 KiB (x4) + L2 Unified 2048 KiB (x1) +Load Average: 1.00, 0.74, 0.41 +------------------------------------------------------------------------- +Benchmark Time CPU Iterations +------------------------------------------------------------------------- +BM_nop 5.03 ns 5.03 ns 139062717 +BM_ub 5.05 ns 5.03 ns 139212060 +BM_bnez 7.54 ns 7.54 ns 92752087 +BM_beqz 7.54 ns 7.54 ns 92765608 +BM_load_bnez 5.87 ns 5.87 ns 119268712 +BM_load_beqz 5.87 ns 5.87 ns 119238238 +BM_cache_miss_load_bnez 28.3 ns 28.3 ns 24590481 +BM_cache_miss_load_beqz 28.3 ns 28.3 ns 24613221 +BM_branch_miss_load_bnez 53.4 ns 53.4 ns 13116229 +BM_branch_miss_load_beqz 53.4 ns 53.4 ns 13141591 +BM_cache_branch_miss_load_bnez 52.6 ns 52.6 ns 13703994 +BM_cache_branch_miss_load_beqz 53.4 ns 53.4 ns 13094392 diff --git a/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150847-O2.log b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150847-O2.log new file mode 100644 index 0000000..f7ed53d --- /dev/null +++ b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150847-O2.log @@ -0,0 +1,76 @@ +cd benchmark/test && cp ../../test/riscv64.cc riscv64.cc +grep "#define OPTIMIZE_LEVEL 2" benchmark/test/riscv64.cc || \ +sed -i -e "s/#define OPTIMIZE_LEVEL.*/#define OPTIMIZE_LEVEL 2/g" benchmark/test/riscv64.cc +cd benchmark && \ +git checkout -- test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/icompile_benchmark_test(riscv64)" test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/iadd_test(NAME riscv64 COMMAND riscv64 --benchmark_min_time=0.01)\n" test/CMakeLists.txt +touch benchmark/test/riscv64.dep +cd benchmark && cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" +-- git version: v1.6.1-38-g60b16f11-dirty normalized to 1.6.1.38 +-- Version: 1.6.1.38 +-- Performing Test HAVE_STD_REGEX -- success +-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile +-- Performing Test HAVE_POSIX_REGEX -- success +-- Performing Test HAVE_STEADY_CLOCK -- success +-- Looking for Google Test sources +-- Looking for Google Test sources in /home/dlan/riscv-linux/test/microbench/benchmark/googletest +33mCMake Warning at CMakeLists.txt:37 (message): + Did not find Google Test sources! Fetching from web... + +0m +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest +gmake[2]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[3]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[ 11%] 34m1mPerforming update step for 'googletest'0m +[ 22%] 34m1mNo patch step for 'googletest'0m +[ 33%] 34m1mNo configure step for 'googletest'0m +[ 44%] 34m1mNo build step for 'googletest'0m +[ 55%] 34m1mNo install step for 'googletest'0m +[ 66%] 34m1mNo test step for 'googletest'0m +[ 77%] 34m1mCompleted 'googletest'0m +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[100%] Built target googletest +gmake[3]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[2]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build +cd benchmark && cmake --build "build" --config Release --target riscv64 +35m1mConsolidate compiler generated dependencies of target benchmark0m +[ 83%] Built target benchmark +35m1mConsolidate compiler generated dependencies of target benchmark_main0m +[ 91%] Built target benchmark_main +35m1mConsolidate compiler generated dependencies of target riscv640m +[ 95%] 32mBuilding CXX object test/CMakeFiles/riscv64.dir/riscv64.cc.o0m +[100%] 32m1mLinking CXX executable riscv640m +[100%] Built target riscv64 +benchmark/build/test/riscv64 +2022-03-23T15:09:00+08:00 +Running benchmark/build/test/riscv64 +Run on (4 X 0.357326 MHz CPU s) +CPU Caches: + L1 Instruction 32 KiB (x4) + L1 Data 32 KiB (x4) + L2 Unified 2048 KiB (x1) +Load Average: 0.53, 0.64, 0.40 +------------------------------------------------------------------------- +Benchmark Time CPU Iterations +------------------------------------------------------------------------- +BM_nop 2.10 ns 2.10 ns 334111335 +BM_ub 4.06 ns 4.06 ns 172372610 +BM_bnez 2.52 ns 2.51 ns 278424119 +BM_beqz 2.51 ns 2.51 ns 278424119 +BM_load_bnez 1.68 ns 1.68 ns 417576387 +BM_load_beqz 4.20 ns 4.19 ns 167045303 +BM_cache_miss_load_bnez 9.49 ns 9.49 ns 73996554 +BM_cache_miss_load_beqz 9.49 ns 9.49 ns 73700502 +BM_branch_miss_load_bnez 13.4 ns 13.4 ns 52465897 +BM_branch_miss_load_beqz 13.3 ns 13.3 ns 52504463 +BM_cache_branch_miss_load_bnez 13.4 ns 13.3 ns 52473763 +BM_cache_branch_miss_load_beqz 13.4 ns 13.4 ns 52243095 diff --git a/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150914-O2.log b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150914-O2.log new file mode 100644 index 0000000..66211e2 --- /dev/null +++ b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150914-O2.log @@ -0,0 +1,76 @@ +cd benchmark/test && cp ../../test/riscv64.cc riscv64.cc +grep "#define OPTIMIZE_LEVEL 2" benchmark/test/riscv64.cc || \ +sed -i -e "s/#define OPTIMIZE_LEVEL.*/#define OPTIMIZE_LEVEL 2/g" benchmark/test/riscv64.cc +cd benchmark && \ +git checkout -- test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/icompile_benchmark_test(riscv64)" test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/iadd_test(NAME riscv64 COMMAND riscv64 --benchmark_min_time=0.01)\n" test/CMakeLists.txt +touch benchmark/test/riscv64.dep +cd benchmark && cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" +-- git version: v1.6.1-38-g60b16f11-dirty normalized to 1.6.1.38 +-- Version: 1.6.1.38 +-- Performing Test HAVE_STD_REGEX -- success +-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile +-- Performing Test HAVE_POSIX_REGEX -- success +-- Performing Test HAVE_STEADY_CLOCK -- success +-- Looking for Google Test sources +-- Looking for Google Test sources in /home/dlan/riscv-linux/test/microbench/benchmark/googletest +33mCMake Warning at CMakeLists.txt:37 (message): + Did not find Google Test sources! Fetching from web... + +0m +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest +gmake[2]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[3]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[ 11%] 34m1mPerforming update step for 'googletest'0m +[ 22%] 34m1mNo patch step for 'googletest'0m +[ 33%] 34m1mNo configure step for 'googletest'0m +[ 44%] 34m1mNo build step for 'googletest'0m +[ 55%] 34m1mNo install step for 'googletest'0m +[ 66%] 34m1mNo test step for 'googletest'0m +[ 77%] 34m1mCompleted 'googletest'0m +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[100%] Built target googletest +gmake[3]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[2]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build +cd benchmark && cmake --build "build" --config Release --target riscv64 +35m1mConsolidate compiler generated dependencies of target benchmark0m +[ 83%] Built target benchmark +35m1mConsolidate compiler generated dependencies of target benchmark_main0m +[ 91%] Built target benchmark_main +35m1mConsolidate compiler generated dependencies of target riscv640m +[ 95%] 32mBuilding CXX object test/CMakeFiles/riscv64.dir/riscv64.cc.o0m +[100%] 32m1mLinking CXX executable riscv640m +[100%] Built target riscv64 +benchmark/build/test/riscv64 +2022-03-23T15:09:27+08:00 +Running benchmark/build/test/riscv64 +Run on (4 X 1.93522 MHz CPU s) +CPU Caches: + L1 Instruction 32 KiB (x4) + L1 Data 32 KiB (x4) + L2 Unified 2048 KiB (x1) +Load Average: 0.69, 0.67, 0.42 +------------------------------------------------------------------------- +Benchmark Time CPU Iterations +------------------------------------------------------------------------- +BM_nop 2.10 ns 2.10 ns 334103362 +BM_ub 3.98 ns 3.97 ns 176261592 +BM_bnez 2.52 ns 2.51 ns 278410831 +BM_beqz 2.52 ns 2.51 ns 278403080 +BM_load_bnez 1.68 ns 1.68 ns 417591333 +BM_load_beqz 4.20 ns 4.19 ns 167060053 +BM_cache_miss_load_bnez 9.47 ns 9.45 ns 73826424 +BM_cache_miss_load_beqz 9.49 ns 9.49 ns 73733107 +BM_branch_miss_load_bnez 13.4 ns 13.4 ns 52309854 +BM_branch_miss_load_beqz 13.4 ns 13.4 ns 52269231 +BM_cache_branch_miss_load_bnez 13.4 ns 13.4 ns 52341145 +BM_cache_branch_miss_load_beqz 13.4 ns 13.4 ns 52255965 diff --git a/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150940-O1.log b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150940-O1.log new file mode 100644 index 0000000..5c0e3cc --- /dev/null +++ b/test/microbench/logs/SiFive-HiFive-Unmatched-A00-rv64imafdc-sv39-sifive-u74-mc-riscv64-20220323-150940-O1.log @@ -0,0 +1,77 @@ +cd benchmark/test && cp ../../test/riscv64.cc riscv64.cc +grep "#define OPTIMIZE_LEVEL 1" benchmark/test/riscv64.cc || \ +sed -i -e "s/#define OPTIMIZE_LEVEL.*/#define OPTIMIZE_LEVEL 1/g" benchmark/test/riscv64.cc +#define OPTIMIZE_LEVEL 1 +cd benchmark && \ +git checkout -- test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/icompile_benchmark_test(riscv64)" test/CMakeLists.txt && \ +sed -i -e "/compile_benchmark_test(basic_test)/iadd_test(NAME riscv64 COMMAND riscv64 --benchmark_min_time=0.01)\n" test/CMakeLists.txt +touch benchmark/test/riscv64.dep +cd benchmark && cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" +-- git version: v1.6.1-38-g60b16f11-dirty normalized to 1.6.1.38 +-- Version: 1.6.1.38 +-- Performing Test HAVE_STD_REGEX -- success +-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile +-- Performing Test HAVE_POSIX_REGEX -- success +-- Performing Test HAVE_STEADY_CLOCK -- success +-- Looking for Google Test sources +-- Looking for Google Test sources in /home/dlan/riscv-linux/test/microbench/benchmark/googletest +33mCMake Warning at CMakeLists.txt:37 (message): + Did not find Google Test sources! Fetching from web... + +0m +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest +gmake[2]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[3]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[4]: Entering directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[ 11%] 34m1mPerforming update step for 'googletest'0m +[ 22%] 34m1mNo patch step for 'googletest'0m +[ 33%] 34m1mNo configure step for 'googletest'0m +[ 44%] 34m1mNo build step for 'googletest'0m +[ 55%] 34m1mNo install step for 'googletest'0m +[ 66%] 34m1mNo test step for 'googletest'0m +[ 77%] 34m1mCompleted 'googletest'0m +gmake[4]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +[100%] Built target googletest +gmake[3]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +gmake[2]: Leaving directory '/home/dlan/riscv-linux/test/microbench/benchmark/build/third_party/googletest' +-- Configuring done +-- Generating done +-- Build files have been written to: /home/dlan/riscv-linux/test/microbench/benchmark/build +cd benchmark && cmake --build "build" --config Release --target riscv64 +35m1mConsolidate compiler generated dependencies of target benchmark0m +[ 83%] Built target benchmark +35m1mConsolidate compiler generated dependencies of target benchmark_main0m +[ 91%] Built target benchmark_main +35m1mConsolidate compiler generated dependencies of target riscv640m +[ 95%] 32mBuilding CXX object test/CMakeFiles/riscv64.dir/riscv64.cc.o0m +[100%] 32m1mLinking CXX executable riscv640m +[100%] Built target riscv64 +benchmark/build/test/riscv64 +2022-03-23T15:09:53+08:00 +Running benchmark/build/test/riscv64 +Run on (4 X 0.366358 MHz CPU s) +CPU Caches: + L1 Instruction 32 KiB (x4) + L1 Data 32 KiB (x4) + L2 Unified 2048 KiB (x1) +Load Average: 0.79, 0.70, 0.44 +------------------------------------------------------------------------- +Benchmark Time CPU Iterations +------------------------------------------------------------------------- +BM_nop 2.10 ns 2.10 ns 334096984 +BM_ub 2.93 ns 2.93 ns 238636635 +BM_bnez 2.51 ns 2.51 ns 278410831 +BM_beqz 2.52 ns 2.51 ns 278417475 +BM_load_bnez 1.68 ns 1.68 ns 417611264 +BM_load_beqz 4.21 ns 4.19 ns 167053674 +BM_cache_miss_load_bnez 9.50 ns 9.49 ns 73782847 +BM_cache_miss_load_beqz 9.49 ns 9.49 ns 73771960 +BM_branch_miss_load_bnez 13.2 ns 13.2 ns 52252844 +BM_branch_miss_load_beqz 13.4 ns 13.4 ns 52272744 +BM_cache_branch_miss_load_bnez 13.4 ns 13.4 ns 52232959 +BM_cache_branch_miss_load_beqz 13.4 ns 13.4 ns 52222438 -- Gitee