Giter Club home page Giter Club logo

dpkg-benchmark's Introduction

dpkg-benchmark

A set of scripts to benchmark package installation in different conditions. It uses force-unsafe-io option and libeatmydata to gain more speed from dpkg. It is suitable both for HDD and SSD (supports TRIM).

Generates a pretty graph showing the amount of time needed for packages to be installed (in seconds).

screenshot

Installation

No installation required. However you need some dependencies:

  • debootstrap
  • bc for floating point calculations
  • Python 3.X
  • Gnuplot

Usage

First prepare an archived container using debootstrap (run as root)

# mkdir stretch
# debootstrap stretch ./stretch http://mirror.yandex.ru/debian
# tar cpJf stretch-deboostrapped.tar.xz --one-file-system -C stretch .

Second, find or create an empty disc partition for benchmarking. It will be formatted many times, so ensure there is no important data out there! Let it be /dev/sdXY.

You are now ready to launch a benchmark (run as root)

# ./dpkg-benchmark.sh stretch-deboostrapped.tar.xz /dev/sdXY

This will create dpkg-benchmark.sdXY.log file with time values (real, user, sys).

Average raw data, sort it and convert to convinient format for Gnuplot.

$ ./benchmark-analyze.py dpkg-benchmark.sdXY.log

This will create normal, unsafeio and eatmydata files.

Finally create a nice graph plot.svg.

$ ./draw.plt

Fine-tuning

  • You can adjust the number of each test repetitions in RUNS_NUM variable in dpkg-benchmark.sh.
  • A set of packages to be installed is stored in PACKAGES variable.
  • dpkg-benchmark.sh currently supports only ext4 filesystem. It's possible to add other filesystems support with different mount parameters if needed.
  • It's possible to heavily customize the graph. Just read carefully draw.plt and experiment with constants.

dpkg-benchmark's People

Contributors

laurvas avatar

Watchers

 avatar  avatar

Forkers

filin8804

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.