For faster navigation, this Iframe is preloading the Wikiwand page for 压力测试 (软件).

压力测试 (软件)

此条目没有列出任何参考或来源。 (2019年10月12日)维基百科所有的内容都应该可供查证。请协助补充可靠来源改善这篇条目。无法查证的内容可能会因为异议提出而被移除。
此条目可参照英语维基百科相应条目来扩充。若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低品质内容。依版权协议,译文需在编辑摘要注明来源,或于讨论页顶部标记((Translated page))标签。

软件测试中的压力测试是在超过正常运作条件以外的条件下运作系统,以确认健壮性的方式,例如一个网站设计容量是100个人同时点击,压力测试就可能会采用120个同时点击的条件测试。压力测试对于关键任务软件格外的重要,但可以适用于各种的软件。

系统的压力测试一般较强调软件在高负载下的健壮性可用性异常处理,而不是其他在正常环境会会视为正确的行为。这类测试的目的是要确认系统在计算资源(例如内存或是碟盘存储)不足、异常的并发性或是受到阻断服务攻击等异常条件下,系统仍可运作,不会崩溃

例如,网页服务器会用外壳脚本网络机器人以及许多阻断服务攻击的工具来进行压力测试,观察网站在尖峰负载下的性能。这类的攻击一般会持续一个小时,或是找到服务器可以容许的资料量上限为止。

和负载测试的比较

[编辑]

压力测试和负载测试英语Load testing不同。

负载测试会检验整个环境以及数据库,量测其响应时间。在负载测试时,整个数据库会有很重的负载,但可能不会针对特定操作进行压力测试。

压力测试一般会着重在特定的操作,提高操作的频度,设法让系统中断。因此整个数据库的负载可能不重。

系统压力测试也称为压力测试,会让许多使用者同时上线,超过系统可以处理的程度,设法让系统在其最弱的一点崩溃。

压力测试的原因

[编辑]

以下是一些进行压力测试的原因:

  • 待测试的软件是关键任务软件,软件失效(例如崩溃)会带来灾难性的后果。
  • 若用传统的测试方式,没有足够的测试时间及资源测试软件发布后会用到的所有情境。
  • 就算有足够的时间及资源撰写测试案例,也丕可能事先确认软件会使用到的所有情形。这常常会出现在操作系统中间件,要配合使用的软件是之后才开发的,在测试产品时该软件还不存在。

相关条目

[编辑]

参考资料

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
压力测试 (软件)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?