百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

WebPageTest

> 编程语言
开源

WebPageTest 的官方仓库

3.3K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

WebPageTest 的官方仓库

WebPageTest

This is the official repository for the performance-testing code that runs at webpagetest.org.

  • Install your own instance
  • Documentation
  • Cross-platform browser agent
  • REST API examples:
  • /bulktest: A PHP command-line tool that can submit a bulk set of tests, gather the results, and aggregate analyses.
  • /batchtool: A Python tool that can submit a bulk set of tests and gather the results.

Troubleshooting private instances

If your instance runs, but you’re having issues configuring agents, navigate to http://{your_instance’s_ip}/install to check for a valid configuration.

Testing

WebPageTest uses PHPUnit for unit tests. To set up and run the unit tests:

  1. Install Composer
  2. Install apcu
  3. Add the line apc.enable_cli='on' to your php.ini
  4. Run composer install
  5. Run composer test

Contributing

There are separate lines of development under different licenses (pull requests accepted to either):

  • The master branch where most active development occurs has the Polyform Shield 1.0.0 license
  • The apache branch has the more permissive Apache 2.0 license

Code style

WebPageTest uses PSR12 coding conventions for PHP linting and formatting. For JavaScript and CSS formatting we use Prettier with its default configuration. Additionally we use Stylelint for CSS linting.

Before you send a pull request please make sure to run: composer lint && composer format.

Alternatively you can run

  • composer lint:php && composer format:php if you only touched PHP code, or
  • composer lint:css && composer format:prettier if you only touched CSS or JavaScript code

VSCode integration

If you use VSCode you might find it helpful to install Prettier and PHP Intelephence plugins and use these in your "settings.json":

{
  "[php]": {
    "editor.tabSize": 4
  },

  // uncomment to reformat on every file save
  //"editor.formatOnSave": true,

  "phpcs.standard": "PSR12",

  "files.trimTrailingWhitespace": true,

  "files.eol": "\n",

  "files.associations": {
    "*.inc": "php"
  }
}

Issues· 23 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言