Coder Social home page Coder Social logo

pturl's Introduction

Windows安装:
	pip install -r requirements.txt
Windows编译:
	python setup.py py2exe

配置详解:
	TEST_URL:用于测试的URL
	THREAD_NUM:并发线程数
	A_THREAD_LOOP:每个线程循环请求次数
	CHECK_REP:用于读取的结果检查,非期望的结果值
	LOOP_SLEEP:每次网页请求间隔时间
	TIMEOUT:每次请求的timeout(超时)时间
	OUTPUT_FILE:输出到文件,0表示直接打印到屏幕

结果示例:
	[T0] Sub Thread Begin
	[T1] Sub Thread Begin
	[T2] Sub Thread Begin
	[T3] Sub Thread Begin
	[T0 1] Get 79
	[T7] Sub Thread Begin
	[T1 1] Get 78
	......
	[T1495] Sub Thread End
	[T1494] Sub Thread End
	[T1497] Sub Thread End
	[T1499] Sub Thread End
	[T1498] Sub Thread End
	main thread end
	=====================================
	URL:http://127.0.0.1:8080/T1/concurrency/run
	任务数量:1500*2=3000
	总耗时(秒):3.354192018508911
	每次请求耗时(秒):0.001118064006169637
	每秒承载请求数:894.4031777088404
	错误数量:0
	获取数目:79

pturl's People

Contributors

daihao42 avatar

Stargazers

Ceprano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.