-
Notifications
You must be signed in to change notification settings - Fork 473
Benchmarks
Ahmed Elsabbahy edited this page Jan 19, 2016
·
8 revisions
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
Sample benchmark on my laptop
- XPS 15 9550
- OS: Fedora 23
- FS: xfs
$ 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
Sample benchmark on my laptop.
Hardware:
- laptop: MSI-GT683DXR
- storage: Crucial M4 ssd
- OS: fedora 20
# 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