shell 和awk性能对比
2016-05-07 08:37
253 查看
time for ((i=0;i<10000;i++)) do ((sum+=i)); done
real 0m0.086s
user 0m0.079s
sys 0m0.007s
time awk 'BEGIN{for(i=0;i<10000;i++) sum+=i; print sum}'
real 0m0.002s
user 0m0.001s
sys 0m0.001s
real 0m0.086s
user 0m0.079s
sys 0m0.007s
time awk 'BEGIN{for(i=0;i<10000;i++) sum+=i; print sum}'
real 0m0.002s
user 0m0.001s
sys 0m0.001s
相关文章推荐
- shell sed 实现文本替换
- -bash: ./****.py: /usr/bin/python^M: bad interpreter: No such file or directory
- how to custom bash prompt
- 客户端putty xshell连接linux中vim不能正常使用小键盘的问题
- shell 教程
- shell 教程
- shell 教程
- shell 教程
- shell 教程
- kali webshell
- linux里source、sh、bash、./有什么区别
- PowerShell调用jira rest api实现对个人提交bug数的统计
- 怎么让adb shell直接进入root?
- shell---消除文件后缀四种方法
- shell-----函数库调用
- 在CMD下启动vmware、Xshell连接虚拟机以及控制Chrome浏览器自动执行js登录校园网
- shell常用命令之curl: -w,–write-out参数详解
- 开山斧 WEBSHELL管理器 V0.2
- shell判断磁盘空间删除文件
- shell两文件对比,相同字符取出到另一个文本