Skip to content

Commit b4b1306

Browse files
committed
create csv file from the benchmark output
1 parent 26a255b commit b4b1306

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ valgrind_ctime_test
1414
*.exe
1515
*.so
1616
*.a
17+
*.csv
1718
!.gitignore
1819

1920
Makefile

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ To create a HTML report with coloured and annotated source code:
100100
$ mkdir -p coverage
101101
$ gcovr --exclude 'src/bench*' --html --html-details -o coverage/coverage.html
102102

103+
Benchmark
104+
------------
105+
If configured with `--enable-benchmark` (which is the default), binaries for benchmarking the libsecp256k1 functions will be present in the root directory after the build.
106+
107+
To print the benchmark result to the command line:
108+
109+
$ ./bench_name
110+
111+
To create a CSV file for the benchmark result :
112+
113+
$ ./bench_name | sed '2d;s/ \{1,\}//g' > bench_name.csv
114+
103115
Reporting a vulnerability
104116
------------
105117

0 commit comments

Comments
 (0)