mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing benchmark to spit out clean results
This commit is contained in:
parent
1b3b42648f
commit
8d4c9a207c
1 changed files with 10 additions and 6 deletions
|
@ -1,13 +1,18 @@
|
|||
---
|
||||
# - name: Remove old .deb
|
||||
# become: yes
|
||||
# file:
|
||||
# path: /home/nb/sysbench.deb.sh
|
||||
# state: absent
|
||||
|
||||
- name: Download sysbench and prepare .deb
|
||||
become: yes
|
||||
get_url:
|
||||
url: https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh
|
||||
dest: ~/sysbench.deb.sh
|
||||
dest: /home/nb/sysbench.deb.sh
|
||||
|
||||
- name: Prepare .deb
|
||||
become: yes
|
||||
shell: cmd=bash /home/nb/sysbench.db.sh
|
||||
command: bash /home/nb/sysbench.deb.sh
|
||||
|
||||
- name: Apt install sysbench
|
||||
become: yes
|
||||
|
@ -22,8 +27,7 @@
|
|||
register: cpu
|
||||
|
||||
- name: Benchmark cpu results
|
||||
debug: msg="{{ item }}"
|
||||
with_items: cpu.stdout_lines
|
||||
debug: msg="{{ cpu.stdout.split('\n') }}"
|
||||
|
||||
- name: Prepare sysbench disk i/o
|
||||
become: yes
|
||||
|
@ -46,4 +50,4 @@
|
|||
|
||||
- name: Benchmark io results
|
||||
debug: msg="{{ item }}"
|
||||
with_items: io.stdout_lines
|
||||
debug: msg="{{ io.stdout.split('\n') }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue