Debian Codegraph @

suite/benchmark/README.md

raw symbols SCIP
1 # Benchmark
2
3 ## Build capstone
4
5 ```bash
6 mkdir build
7 cd build
8 cmake ..
9
10 #This last command is also where you can pass additional CMake configuration flags
11 #using `-D<key>=<value>`. Then to build use:
12 cmake --build . --config Release
13 cd ..
14 ```
15
16 ## Build benchmark
17
18 ```bash
19 cd suite/benchmark
20 make
21 ```
22
23 ## test_iter_benchmark
24
25 ```bash
26 ./test_iter_benchmark
27 ```
28
29 ## test_file_benchmark
30
31 ```bash
32 ./test_file_benchmark
33 ```
34 The optional `test_file_benchmark` arguments are:
35
36 - `[loop-count]` = optional loop count. Total number of bytes decoded and formatted is `<code-len> * [loop-count]`
37 - `<code-offset>` = offset of the code section (in decimal or 0x hex)
38 - `<code-len>` = length of the code section (in decimal or 0x hex)
39 - `<filename>` = 64-bit x86 binary file to decode and format