2.10测试版

WebUI 的 API 的性能有点太差了,接口调用耗时相当高,并且偶尔还会超时(15秒未响应 HTTP 请求头)。
我用 qBittorrent、Deluge、BiglyBT(插件集成)测试了一下,每个请求耗时几乎不会超过 10ms,但 BitComet 的耗时有点离谱了:

[20:37:54] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 40 个 Peers。共封禁 1 个 Peers,并解除 0 个过期的封禁 (3493ms)
time cost (get_torrents_list task_list): 126ms
time cost (get_torrents_list, torrent info): 1979ms
time cost (get_torrents_list task_list): 27ms
time cost (get_torrents_list, torrent info): 39ms
time cost (get_peers_list): 23ms
[20:38:01] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 41 个 Peers。共封禁 0 个 Peers,并解除 0 个过期的封禁 (2255ms)
time cost (get_torrents_list task_list): 6006ms
time cost (get_torrents_list, torrent info): 3392ms
time cost (get_torrents_list task_list): 324ms
time cost (get_torrents_list, torrent info): 3612ms
time cost (get_peers_list): 27ms
[20:38:19] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 37 个 Peers。共封禁 0 个 Peers,并解除 0 个过期的封禁 (13379ms)
time cost (get_torrents_list task_list): 3369ms
time cost (get_torrents_list, torrent info): 1423ms
time cost (get_torrents_list task_list): 987ms
time cost (get_torrents_list, torrent info): 1110ms
time cost (get_peers_list): 3186ms
[20:38:34] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 35 个 Peers。共封禁 0 个 Peers,并解除 0 个过期的封禁 (10091ms)
time cost (get_torrents_list task_list): 2417ms
time cost (get_torrents_list, torrent info): 4723ms
time cost (get_torrents_list task_list): 3044ms
time cost (get_torrents_list, torrent info): 33ms
time cost (get_peers_list): 27ms
[20:38:50] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 35 个 Peers。共封禁 0 个 Peers,并解除 0 个过期的封禁 (10258ms)
time cost (get_torrents_list task_list): 5426ms
time cost (get_torrents_list, torrent info): 1112ms
time cost (get_torrents_list task_list): 1746ms
time cost (get_torrents_list, torrent info): 2066ms
time cost (get_peers_list): 438ms
[20:39:05] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 36 个 Peers。共封禁 0 个 Peers,并解除 0 个过期的封禁 (10825ms)
time cost (get_torrents_list task_list): 3300ms
time cost (get_torrents_list, torrent info): 34ms
time cost (get_torrents_list task_list): 28ms
time cost (get_torrents_list, torrent info): 3100ms
time cost (get_peers_list): 4703ms
[20:39:22] [Ban Wave/INFO]: 已检查 1 个下载器的 1 个活跃 Torrent 与 36 个 Peers。共封禁 0 个 Peers,并解除 0 个过期的封禁 (11185ms)
time cost (get_torrents_list task_list): 18ms
time cost (get_torrents_list, torrent info): 35ms
time cost (get_torrents_list task_list): 28ms
time cost (get_torrents_list, torrent info): 35ms
time cost (get_peers_list): 1523ms

特别是 get_torrents_list,似乎平均耗时非常高。整个 BitComet 我才创建了一个任务,没理由有这么高的耗时。。


注:WebUI 的限速是已经解除了的,且在取消上传/下载限制的情况下,也会出现相同的问题。所有测试都在本地进行。

1個讚