File: README.md

package info (click to toggle)
capstone 5.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 58,212 kB
  • sloc: ansic: 96,103; cpp: 67,489; cs: 29,510; python: 25,829; pascal: 24,412; java: 15,582; ml: 14,473; makefile: 1,274; sh: 479; ruby: 386
file content (39 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Benchmark

## Build capstone

```bash
mkdir build
cd build
cmake ..

#This last command is also where you can pass additional CMake configuration flags
#using `-D<key>=<value>`. Then to build use:
cmake --build . --config Release
cd ..
```

## Build benchmark

```bash
cd suite/benchmark
make
```

## test_iter_benchmark

```bash
./test_iter_benchmark
```

## test_file_benchmark

```bash
./test_file_benchmark
```
The optional `test_file_benchmark` arguments are:

- `[loop-count]` = optional loop count. Total number of bytes decoded and formatted is `<code-len> * [loop-count]`
- `<code-offset>` = offset of the code section (in decimal or 0x hex)
- `<code-len>` = length of the code section (in decimal or 0x hex)
- `<filename>` = 64-bit x86 binary file to decode and format