C performance benchmark for QEMU with TCG and KVM acceleration.
This simple benchmark is based on several compression libraries. It uses some standard compression test data sets from Archive Comparison Test.
I run this benchmark on base Debian system inside QEMU, with no acceleration (QEMU's Tiny Code Generator) and with KVM acceleration.
Benchmark is made with QT Creator. Besides QT Creator files there is benchmark-pack directory with custom Makefile to simplify building benchmark on base system inside VM. Inside pack there are also bash, python scripts to create statistics and test data set.
Just:
make
Use bash scripts to automate execution process. Scripts run benchmark with all files in provided data set.
- run.sh - runs benchmark with high compression level
- run-low.sh - runs benchmark with low compression level
./run.sh > results.txt
Now, result file can be processed with create_stats.py script which convert results to other format - with values only.
python2.7 create_stats.py > stats.txt
You can also choose another input file:
python2.7 create_stats.py -i result_file.txt > stats.txt
To get needed libraries on Debian you can download:
- zlib1g zlib1g-dbg zlib1g-dev
- libbz2-1.0 libbz2-dev
- libsnappy1 libsnappy-dev
- liblzo2-2 liblzo2-dev
- zlib: http://www.zlib.net/
- libbzip2: http://www.bzip.org/
- snappy: https://code.google.com/p/snappy/
- LZO: http://www.oberhumer.com/opensource/lzo/