-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bench' of https://github.com/Multi-V-VM/MVVM
- Loading branch information
Showing
16 changed files
with
195 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
find_package(benchmark REQUIRED) | ||
add_executable(mvvm_benchmark bench.cpp) | ||
|
||
# Link benchmark library to your test target | ||
target_link_libraries(mvvm_benchmark benchmark) | ||
include(ExternalProject) | ||
|
||
# add_subdirectory(gapbs) | ||
# add_subdirectory(clickhouse) | ||
# ExternalProject_Add(gapbs | ||
# SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/gapbs | ||
# UPDATE_COMMAND "" | ||
# PATCH_COMMAND "" | ||
# CONFIGURE_COMMAND ${CMAKE_COMMAND} | ||
# -DCMAKE_C_COMPILER_WORKS=1 -DCMAKE_CXX_COMPILER_WORKS=1 | ||
# -GNinja | ||
# -DWASI_SDK_DIR=${WASI_SDK_DIR} | ||
# -DCMAKE_TOOLCHAIN_FILE=${WASI_SDK_DIR}/share/cmake/wasi-sdk.cmake | ||
# -DCMAKE_SYSROOT=${WASI_SDK_DIR}/share/wasi-sysroot | ||
# ${CMAKE_CURRENT_SOURCE_DIR}/gapbs | ||
# BUILD_COMMAND ${CMAKE_COMMAND} --build . | ||
# ) | ||
|
||
# ExternalProject_Add(clickhouse | ||
# SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/clickhouse | ||
# UPDATE_COMMAND "" | ||
# PATCH_COMMAND "" | ||
# CONFIGURE_COMMAND ${CMAKE_COMMAND} | ||
# -DCMAKE_C_COMPILER_WORKS=1 -DCMAKE_CXX_COMPILER_WORKS=1 | ||
# -GNinja | ||
# -DWASI_SDK_DIR=${WASI_SDK_DIR} | ||
# -DCMAKE_TOOLCHAIN_FILE=${WASI_SDK_DIR}/share/cmake/wasi-sdk.cmake | ||
# -DCMAKE_SYSROOT=${WASI_SDK_DIR}/share/wasi-sysroot | ||
# ${CMAKE_CURRENT_SOURCE_DIR}/clickhouse | ||
# BUILD_COMMAND ${CMAKE_COMMAND} --build . | ||
# ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <benchmark/benchmark.h> | ||
#include <wamr.h> | ||
|
||
static void BM_gapbs(benchmark::State& state) { | ||
for (auto _ : state) { | ||
// Your code to benchmark goes here | ||
} | ||
} | ||
BENCHMARK(BM_gapbs); | ||
|
||
static void BM_clickhouse(benchmark::State& state) { | ||
for (auto _ : state) { | ||
// Your code to benchmark goes here | ||
} | ||
} | ||
BENCHMARK(BM_clickhouse); | ||
|
||
static void BM_llama(benchmark::State& state) { | ||
for (auto _ : state) { | ||
// Your code to benchmark goes here | ||
} | ||
} | ||
BENCHMARK(BM_llama); | ||
|
||
BENCHMARK_MAIN(); |
Submodule clickhouse
added at
5359dc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.