Benchmarks

Ahmed Elsabbahy edited this page Jan 19, 2016 · 8 revisions

Test data

Used the following script to generate the goss.json file goss_generate_bench.sh, which adds the following tests:

  • 100 files/dirs from /etc/
  • All users in /etc/passwd
  • All groups in /etc/groups
  • Ports 1-100 for tcp and tcp6
  • 20 rpms

Results

New Laptop

Sample benchmark on my laptop

Hardware

  • XPS 15 9550
  • OS: Fedora 23
    • FS: xfs

Results

$ time goss validate --format nagios
GOSS OK - Count: 1122, Failed: 0, Duration: 0.052s

real	0m0.057s
user	0m0.104s
sys	0m0.091s

# Performance after dropping fs cache 
$ sudo bash -c 'sync && echo 3 > /proc/sys/vm/drop_caches'
$ time goss validate --format nagios
GOSS OK - Count: 1122, Failed: 0, Duration: 0.060s

real	0m0.085s
user	0m0.134s
sys	0m0.093s

Old Laptop

Sample benchmark on my laptop.

Hardware:

Results

# With warm FS cache the results are near instantaneous
$ time goss validate --format nagios
GOSS OK - Count: 1049, Failed: 0, Duration: 0.080s

real    0m0.087s
user    0m0.189s
sys     0m0.152s


# Performance after dropping fs cache
$ sudo bash -c 'sync && echo 3 > /proc/sys/vm/drop_caches'
$ time goss validate --format nagios
GOSS OK - Count: 1049, Failed: 0, Duration: 2.249s

real    0m2.289s
user    0m0.195s
sys     0m0.288s
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.