Kaizen/external/capstone/suite/benchmark
2024-09-23 19:06:48 +02:00
..
load_bin.inc Merge commit '352a52804df5b9f475d19d3fa8f567c1bf98b8ac' as 'external/capstone' 2024-09-23 19:06:48 +02:00
Makefile Merge commit '352a52804df5b9f475d19d3fa8f567c1bf98b8ac' as 'external/capstone' 2024-09-23 19:06:48 +02:00
README.md Merge commit '352a52804df5b9f475d19d3fa8f567c1bf98b8ac' as 'external/capstone' 2024-09-23 19:06:48 +02:00
test_file_benchmark.c Merge commit '352a52804df5b9f475d19d3fa8f567c1bf98b8ac' as 'external/capstone' 2024-09-23 19:06:48 +02:00
test_iter_benchmark.c Merge commit '352a52804df5b9f475d19d3fa8f567c1bf98b8ac' as 'external/capstone' 2024-09-23 19:06:48 +02:00

Benchmark

Build capstone

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

cd suite/benchmark
make

test_iter_benchmark

./test_iter_benchmark

test_file_benchmark

./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