增加 performan 测试

This commit is contained in:
pengxuanzheng
2020-10-14 15:23:01 +08:00
parent 49efee10dc
commit 9fc75caa33
58 changed files with 659 additions and 41 deletions

15
example/performance/file/c.sh Executable file
View File

@@ -0,0 +1,15 @@
#########################################################################
# File Name: c.sh
# Author: pxz
# Created Time: Tue 13 Oct 2020 06:28:57 PM CST
#########################################################################
#!/bin/bash
size=("1k" "10k" "100k" "1M" "2M" "3M" "4M" "5M" "10M" "20M" "30M")
num=0
while((${num} < 11))
do
truncate -s ${size[$num]} ${size[$num]}.data
let "num++"
done