Skip to content

C performance benchmark for QEMU with TCG and KVM acceleration.

License

Notifications You must be signed in to change notification settings

mm512/qemukvm-benchmark

Repository files navigation

qemukvm-benchmark

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.

HOWTO

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.

  1. run.sh - runs benchmark with high compression level
  2. 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:

  1. zlib1g zlib1g-dbg zlib1g-dev
  2. libbz2-1.0 libbz2-dev
  3. libsnappy1 libsnappy-dev
  4. liblzo2-2 liblzo2-dev

Used compression libraries

  1. zlib: http://www.zlib.net/
  2. libbzip2: http://www.bzip.org/
  3. snappy: https://code.google.com/p/snappy/
  4. LZO: http://www.oberhumer.com/opensource/lzo/

About

C performance benchmark for QEMU with TCG and KVM acceleration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published