Giter VIP home page Giter VIP logo

compbench's Introduction

A benchmark utility to examine and compare various compression algorithms, based on bundle.

Usage

Clone with --recursive and build with make. Then run

./benchmark < input > log

where input is the data you want to run through the various algorithms Thereafter, generate the plots:

./plot [prefix] [format] < log

You will find several plots in the current directory for your perusal. The optional argument prefix sets a file prefix and format defaults to png.

Examples

To illustrate, we use a 850 MB PCAP trace (2009-M57-day11-18), plus a derived 5.3 MB of Bro ASCII logs. The trace consists of 8505 connections from standard protocols, such as DNS, HTTP, DHCP, SSL, SMTP, and FTP. We conducted our experiments on a 64-bit FreeBSD system with two 8-core CPUs and 128 GB of RAM. To reproduce the input data, download the trace and run Bro on it as follows:

bro -r trace.pcap

Thereafter, typing make generates in the screenshots directory the plots below.

PCAP input

PCAP Tradeoff PCAP Tradeoff

The above plots shows the trade-off space between space savings and compression, as well as space savings versus decompression. The further a point lays in the top-right corner the better it performs across both dimensions.

PCAP Compression Ratio

The above plot ranks the algorithms with respect to their compression ratio. The algorithm with the highest compression ratio appears on the left. The coloring corresponds to the decompression throughput in MB/sec and uses light blue to highlight those algorithms with fast decompression.

PCAP Throughput Scatterplot

The above plot contrasts compression versus decompression throughput. The x-axis shows compression and the y-axis decompression performance in MB/sec. A point above the y=x diagonal means that it has high decompression than compression throughput. The converse holds for points below the diagonal. The further a point appears in the top-right corner, the higher its combined performance. Note that this algorithm does not profile compression ratio.

PCAP Throughput Barplot

The above plot shows the same information as the previous plot, but also includes the compression ratio in that the left-most algorithm exhibits the highest compression ratio.

Bro input

The next figures show the same plot types for Bro ASCII logs generated from the above trace:

Bro Tradeoff Bro Tradeoff Bro Compression Ratio Bro Throughput Scatterplot Bro Throughput Barplot

License

The above plots come with a Creative Commons Attribution 4.0 International License, while the code ships with a 3-clause BSD license.

compbench's People

Contributors

mavam avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.