Fast & little benchmarks

Easily benchmarking any computer

  • disk

    #very litle files 
    dd if=/dev/zero of=/tmp/output bs=1024 count=100k; rm -f /tmp/output
    #litle files 
    dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
    #big files 
    dd if=/dev/zero of=/tmp/output bs=8M count=10; rm -f /tmp/output
    #biggest files 
    dd if=/dev/zero of=/tmp/output bs=80M count=10; rm -f /tmp/output

    make an average of results…

    On Windows

    You can use CristalDiskMark –> here

  • ram

    using dd and ramdisk

    mkdir /media/ram
    mount -t tmpfs -o size=1G tmpfs /media/ram/
    #Testing creating
    dd if=/dev/zero of=/media/ram/zero bs=100k count=10k
    #Testing reading
    dd if=/media/ram/zero of=/dev/null bs=100k count=10k
    #Remove File
    rm /media/ram/zero
    #Unmount ramdisk
    umount /media/ram

    using sysbench

    #Write test
    sysbench --test=memory --memory-block-size=1K --memory-scope=global --memory-total-size=1G --memory-oper=write run
    #Read test
    sysbench --test=memory --memory-block-size=100M --memory-scope=global --memory-total-size=1G --memory-oper=read run
  • cpu

    using sysbench apt install sysbench

    sysbench --test=cpu --num-threads=8 --max-requests=10000 run

  • i/o

    using sysbench

    sysbench --test=fileio --file-total-size=5G prepare
    sysbench --test=fileio --file-total-size=5G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run
    sysbench --test=fileio --file-total-size=5G cleanup

Benchmarking using complete softwares

Phoronix Test Suites

First, it’s recommended to create this alias :

echo "alias p='phoronix-test-suite'" >> ~/.bashrc

And link your openchmarking.com account : p openbenchmarking-login

run complete banchmark and acces results on openbenchmarking.com

$ apt install phoronix-test-suite

$ phoronix-test-suite benchmark chess
...
Results Uploaded To: http://openbenchmarking.org/result/1408143-PL-CHESSRESU04

Find which test/suites to run by doing these commands :

phoronix-test-suit list-available-suites

p list-tests

p list-recommended-tests

Get more details on Phonorix here

view raw benchmark.md hosted with ❤ by GitHub

Laissez un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors