mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-26 06:53:56 +00:00
Initial Commit
This commit is contained in:
39
thirdparty/capstone/suite/benchmark/README.md
vendored
Normal file
39
thirdparty/capstone/suite/benchmark/README.md
vendored
Normal file
@@ -0,0 +1,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
|
Reference in New Issue
Block a user