- 博客(4)
- 收藏
- 关注
原创 基于jmeter的Throughput和平均响应时间算法分析
首先,定义各参数samples:总请求数duration:持续时间(基于jmeter原理,实际持续时间可能大于填写持续时间)thread:并发数totalrt:所有请求的响应时间之和1.TPS:每秒事务数在jmeter中,大多数情况下,Throughput吞吐率被认为等于TPSThroughput=samples/duration=TPS 公式一2.平均响应时间(...
2019-07-19 16:06:16
3754
原创 python在文件指定位置插入字符串
在a文件的keyword之后插入字符串strfile = open(‘a’,'r')content = file.read()post = content.find(keyword)if post != -1: content = content[:post+len(keyword)]+str+content[post+len(keyword):] file = ope...
2019-05-23 11:12:55
7775
原创 liunx常用命令
liunx常见的发行版本有Ubuntu,CentOS,Debian等我们使用的比较多的是Ubuntu和CentOSUbuntu和CentOS对一般使用者来说,最大的不同是 Ubuntu安装软件命令为apt-get install * CentOS安装软件命令为yum install *查看liunx是Ubuntu还是CentOS lsb_release -a安装lsb_rel...
2019-05-23 11:11:02
358
原创 java运行shell脚本(或命令),shell脚本(或命令)后台运行,关闭java程序不影响脚本运行
在java程序调用shell命令时,有时需要shell命令后台运行,java程序关闭也不影响shell命令的运行。可以使用如下的方法实现:假设要运行的命令是command(这个命令可以是一条shell命令,也可以是执行一个shell脚本),先创建一个run.sh,将要执行的命令写入run.sh中#!/bin/bashnohup command &>/dev/null 2>&...
2018-06-13 14:38:51
4803
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人