Jmeter 负载测试
Jmeter Load testing
我在 jmeter 中每秒访问 150 个用户以获取 hls 视频,它给了我大约 8 分钟的响应时间。如果我从另一台 PC 访问实时用户怎么办?该用户是否也需要 8 分钟。如何判断jmeter给出的报告是否真实?
根据The New HLS Plugin for JMeter - The Complete Guide
In a HTTP Live Streaming process:
The audio/video to be streamed is reproduced by a media encoder at different quality levels, bitrates and resolutions. Each version is called a variant.
The different variants are split up into smaller Media Segment Files.
The encoder creates a Media Playlist for each variant with the URLs of each Media Segment.
- The encoder creates a Master Playlist File with the URLs of each Media Playlist.
To play, the client first downloads the Master Playlist, and then the Media Playlists. Then, they play each Media Segment declared within the chosen Media Playlist. The client can reload the Playlist to discover any added segments. This is needed in cases of live events, for example.
因此,给定良好的 JMeter HLS 测试响应时间将等于您的视频持续时间。
测试视频流与测试 Web 应用程序不同,您应该寻找不同的指标,更多地关注使用 JMeter PerfMon Plugin 监控服务器端事件。
我在 jmeter 中每秒访问 150 个用户以获取 hls 视频,它给了我大约 8 分钟的响应时间。如果我从另一台 PC 访问实时用户怎么办?该用户是否也需要 8 分钟。如何判断jmeter给出的报告是否真实?
根据The New HLS Plugin for JMeter - The Complete Guide
In a HTTP Live Streaming process:
The audio/video to be streamed is reproduced by a media encoder at different quality levels, bitrates and resolutions. Each version is called a variant.
The different variants are split up into smaller Media Segment Files.
The encoder creates a Media Playlist for each variant with the URLs of each Media Segment.
- The encoder creates a Master Playlist File with the URLs of each Media Playlist.
To play, the client first downloads the Master Playlist, and then the Media Playlists. Then, they play each Media Segment declared within the chosen Media Playlist. The client can reload the Playlist to discover any added segments. This is needed in cases of live events, for example.
因此,给定良好的 JMeter HLS 测试响应时间将等于您的视频持续时间。
测试视频流与测试 Web 应用程序不同,您应该寻找不同的指标,更多地关注使用 JMeter PerfMon Plugin 监控服务器端事件。