fixture

command
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command fixture 启动一批本地 HTTP 站点,供 scripts/perf 的扫描对比使用。

第 i 个站点监听 127.0.0.1:(base+i),按顺序轮流模拟 nginx、Apache、WordPress、Tomcat、IIS 与一个无明显特征的后台页面;其余路径返回 404。控制端口 base-1 提供:

/count  收到的 HTTP 请求数
/conns  建立的 TCP 连接数
/reset  清零以上两个计数(返回清零前的请求数)

只监听 127.0.0.1,不访问外部网络。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL