mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
14 lines
392 B
Bash
14 lines
392 B
Bash
#!/bin/bash
|
|
|
|
# Install fio
|
|
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install fio > /dev/null
|
|
|
|
# Run the disk benchmark
|
|
fio --name=rand_rw --ioengine=libaio --rw=randrw --rwmixread=70 --bs=4k --numjobs=4 --size=1G --runtime=30 --directory=/n8n --group_reporting
|
|
|
|
# Remove files
|
|
sudo rm /n8n/rand_rw.*
|
|
|
|
# Uninstall fio
|
|
DEBIAN_FRONTEND=noninteractive sudo apt-get -y remove fio > /dev/null
|