# IDM vs VDM, timed to the millisecond.

两款应用在同一台电脑上，从同一台电脑上的测试服务器交替下载。这是一个回环测试：它测试的是程序，而不是互联网连接。服务器自己的日志记录了每个请求何时到达以及最后一个字节何时离开，因此结果不依赖于任何一个应用的数据。

## 比赛

**Volt Download Manager**

0.00 秒 就绪

**Internet Download Manager 6.42**

0.00 秒 就绪

1.0 倍 更快

根据中位数实时播放。

## 在所有场景下都更快。

How many times faster VDM finished, from command to finished file. The whisker is the 95% interval of the ratio; the scale is logarithmic.

## 480 个连接对比 2 个连接。

一个服务器，一次只允许两个连接。每个方块代表一次典型运行中服务器看到的连接。

**VDM** 0

从服务器的响应中学习限制，并遵守该限制，下次还会记住。在 12.6 秒内完成。

**IDM 6.42** 0

面对拒绝请求，每秒重试约 250 次。15.9 秒后完成。

## 每次运行都是一个点。

两款应用都至少运行了七次下载，每次下载七个文件。条形图表示运行时间中间一半的范围，线表示中位数。

IDM 从命令行接收下载任务后，约需 3 秒才开始发送数据；通过浏览器扩展捕获的下载则会跳过这一步。因此，“传输”更适合公平地比较两款软件的下载引擎。“端到端”的数据也列在这里。

### 时间都去哪儿了

各场景下每款应用启动（从发出命令到首次请求）、传输和完成所需时间的中位数。

### 电脑资源占用

Median CPU time each app used during a run, and its peak memory. VDM draws its window with the GPU, which takes more memory than IDM's classic Windows controls.

所有数据

| 场景 | 应用 | n | 端到端，中位数 (IQR) | 中位数 95% 置信区间 | 传输 | 启动 | 连接数 | 请求数 | CPU | 内存峰值 | p |
|---|---|---|---|---|---|---|---|---|---|---|---|

## 报告

端到端时间的中位数和四分位距、比率及其 95% 区间，以及 Mann–Whitney 检验结果，均按 `tools/bench/report.py` 的格式列出。

| 场景 | IDM 中位数 毫秒 (IQR) | VDM median ms (IQR) | IDM / VDM (95% CI) | p (Mann-Whitney) |
|---|---|---|---|---|
| 通过快速本地链接下载 1 GiB | 5456 (5393–5496) | 1009 (944–1028) | 5.41× (5.21–5.89) | 0.000583 |
| 100 MiB，每个连接 2 MB/秒 | 10234 (10221–10284) | 6319 (6317–6329) | 1.62× (1.61–1.63) | 0.000583 |
| 100 MiB，150 毫秒延迟，每连接 4 MB/秒 | 7622 (7497–7863) | 3844 (3842–3894) | 1.98× (1.92–2.05) | 0.000583 |
| 32 MiB，三次抓取中一次连接，速度 128 KB/秒 | 7213 (6960–7256) | 3432 (3416–3840) | 2.10× (1.81–2.13) | 0.000583 |
| 50 MiB，服务器允许 2 个连接，每个 2 MB/秒 | 15864 (15810–15933) | 12568 (12563–12570) | 1.26× (1.25–1.27) | 0.000583 |
| 50 MiB，每隔一个连接在 2 MiB 后中断，4 MB/秒 | 5428 (5387–5466) | 1647 (1645–1660) | 3.30× (3.24–3.34) | 0.000583 |
| 通过快速本地链接下载 256 KiB 文件 | 3141 (3130–3164) | 30 (28–31) | 105.90× (99.96–112.75) | 3.39e-06 |

第 13 代英特尔(R) 酷睿(TM) i5-13400F，63.8 GB 内存，Windows-11-10.0.26200-SP0。labserver（此仓库），127.0.0.1:8097，生成内容。两者均使用默认设置：8 个连接。

## 测量方法

- **服务器。** 来自此仓库的实验室服务器，位于 127.0.0.1，提供生成内容。它根据场景限制、延迟、拒绝或中断连接，并记录每个请求的毫秒级开始和结束时间。
- **Clients.** IDM and VDM, both at default settings (8 connections), each given the download through the same documented command line: `/d URL /p folder /f name /n`. Both save to the drive that holds IDM's temporary folder, so neither pays a cross-drive copy.
- **Timing.** End to end: from issuing the command to the finished file under its final name, polled every millisecond on a monotonic clock. VDM renames its finished file into place; IDM creates the final file early and fills it, so for IDM the moment it reaches full size counts. Transfer: the server's first request to its last byte, read on the same clock through a calibration request before each run.
- **Fairness.** The apps alternate, IDM first on even runs and VDM first on odd ones, so drift on the machine hits both. One warm-up run each is discarded. Failed runs are counted, not dropped. Before every run the harness waits until the loopback is quiet: against a server that refuses extra connections IDM retries about 250 times a second, leaving thousands of closed sockets for half a minute; without the wait, whichever app ran next was timed on that backlog.
- **统计。** 中位数及四分位距，每个中位数和中位数比率的自举 95% 置信区间（10,000 次重采样），以及双侧 Mann–Whitney U 检验。
- **限制。** 回环链路没有实际距离或数据包丢失；故障代表它们。结果来自一台机器。您可以自己运行：`python tools/bench/bench.py`，然后 `python tools/bench/report.py`。

[原始数据和服务器日志](https://github.com/mikailhossenimran/voltdownloadmanager/tree/main/docs/bench) [测试工具](https://github.com/mikailhossenimran/voltdownloadmanager/tree/main/tools/bench) [results.json](https://vdm.mikaillab.com/bench/results.json) [质疑某个数字](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Benchmark%3A%20&page=https%3A%2F%2Fvdm.mikaillab.com%2Fbenchmark.html)

亲身体验：它是免费的。

[Download Volt Download Manager](https://vdm.mikaillab.com/zh-hans/download.html)
