We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
Curl 将允许您轻松地运行一系列 URL。 ie
这将对 google ie 进行 1000 次调用,
然后您可以将这些调用添加到脚本中并作为后台作业连续运行它们。有对此的完整解释 http://servermonitoringhq.com/blog/how_to_quickly_stress_test_a_web_server
Curl will allow you to run through a sequence of URL quite easily. i.e.
This will make 1000 calls to google i.e.
You can then add these calls to a script and run them consecutively as background jobs. There's a full explanation of this http://servermonitoringhq.com/blog/how_to_quickly_stress_test_a_web_server
Tsung 是迄今为止我用过的最好的。您可以创建实际的使用模式。
apache benchmark 最容易使用,并且与 apache 一起提供。使用更简单,但在用于测试和创建更现实的负载模式的 URL 方面不灵活。
Tsung is best I have used so far. You can create actual usage pattern.
apache benchmark is easiest to use and comes along with apache. Simpler to use,but is not flexible in terms of urls to hit for testing and creating more realistic load patterns.
尝试以下之一:
Try one of:
如果您还需要对网页/应用程序进行一些性能/负载测试,请尝试 Apache JMeter http://jmeter.apache。组织/
If you need to do some performance/load testing also to web pages/apps, try Apache JMeter http://jmeter.apache.org/
您可以通过运行 apt-get install wbox 来尝试 wbox,
然后向下滚动到hping.org/wbox/ 获取示例。
完整列表位于速度工具
You can give a try to wbox by running
apt-get install wbox
Then scroll down at
hping.org/wbox/
for examples.comprehensive list at Speed Tools
我建议使用“无头”PhantomJS(与 Selenium WebDriver 相关)或使用 Selenium HTMLUnitDriver。将负载测试包装在 JUnit 类中。使用 Maven Surefire 或 Gradle 分叉多线程测试(使用 maxParallelForks 进行过滤测试任务)。 Gradle 或 Maven 将创建一个 JUnit 报告(来自 CSS 转换),其中显示每个测试以及每个测试所花费的时间。
如果您使用的是 Windows,则可以使用我的 .bat 脚本按顺序启动网格节点和集线器并行运行,使用多台计算机为负载供电。
I would suggest using the "headless" PhantomJS (which is related to Selenium WebDriver) or using the Selenium HTMLUnitDriver. Wrap the load tests in a JUnit class. Fork the tests multi-threaded using either Maven Surefire or Gradle (with a filtering test task using maxParallelForks). Gradle or Maven will create a JUnit report (from a CSS transformation) that shows each test and the time each one took.
If you are using Windows, you can can use my .bat scripts to start a Grid Node and Hub in order to run parallel, using multiple computers to supply the load..
如果您有生产工作负载,那么您可以使用 tcpcopy 将其复制到测试系统。这种测试更加有效和真实。
If you have the production workload, then you could use tcpcopy to copy it to the test system. This kind of testing is more effective and real.
另请参阅在可运行多个实例的无头浏览器环境中重新利用 Selenium WebDriver 功能脚本。随着云中虚拟机的可用性,这种方法变得流行。
Also look at re purposing Selenium WebDriver functional scripts in a Headless browser environment where you can run multiple instances. This approach has become popular with the availability of VMs from the Cloud.