Skip to content

Commit

Permalink
Add benchmark program
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita committed Jun 21, 2021
1 parent 2d4fb93 commit 749132a
Show file tree
Hide file tree
Showing 5 changed files with 574 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ install(TARGETS ibme DESTINATION lib)
install(FILES ${INC} DESTINATION include/ibme)

add_subdirectory(demo)
add_subdirectory(benchmark)
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,18 @@ The IB-ME library is built with [CMake](https://cmake.org/) and depends on the [
After building the project you can run the demonstration:

cd demo
./demo
./demo

## Run benchmark
After building the project you can run the benchmark program:

cd benchmark
./benchmark -o <operation> -r <number of repetitions>

The benchmark program supports the following operations:

* setup
* sk_gen
* rk_gen
* enc
* dec
3 changes: 3 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_executable (benchmark benchmark.c benchmark.h)

target_link_libraries (benchmark LINK_PUBLIC ibme pbc gmp crypto)
Loading

0 comments on commit 749132a

Please sign in to comment.