使用7Zip记录/基准测试压缩

时间:2015-10-13 17:21:26

标签: compression benchmarking 7zip

我想在7Zip应用程序中压缩不同大小的不同文件,以使用其不同的压缩方法

如何基准/记录时间,比率,内存使用情况和其他元素? 7zip有任何工具或任何命令来跟踪它。或压缩完成后给出这些元素的摘要?

1 个答案:

答案 0 :(得分:0)

我使用一些Batchfiles创建了这个Github存储库,我自己用它来进行基准测试:7-Zip-Benchmarking它正在使用wtime工具。

以下是用法示例:

Command: wtime 7z a silesia.7z -mmt=off -mx15 silesia

TIMES in milliseconds
RunningTime................. 32104
UserTime.................... 31793
KernelTime.................. 249

MEMORY in KiB
PageFaultCount.............. 112
PeakWorkingSetSize.......... 34856
WorkingSetSize.............. 20
QuotaPeakPagedPoolUsage..... 85
QuotaPagedPoolUsage......... 0
QuotaPeakNonPagedPoolUsage.. 6
QuotaNonPagedPoolUsage...... 0
PagefileUsage............... 0
PeakPagefileUsage........... 36296

IO count
ReadOperationCount.......... 81
WriteOperationCount......... 34
OtherOperationCount......... 115
ReadTransferCount........... 211939037
WriteTransferCount.......... 58043652
OtherTransferCount.......... 3414

现在相同,但有4个帖子:

Command: wtime 7z a silesia.7z -mmt=4 -mx15 silesia

TIMES in milliseconds
RunningTime................. 11668
UserTime.................... 43025
KernelTime.................. 202

MEMORY in KiB
PageFaultCount.............. 124
PeakWorkingSetSize.......... 133688
WorkingSetSize.............. 20
QuotaPeakPagedPoolUsage..... 85
QuotaPagedPoolUsage......... 0
QuotaPeakNonPagedPoolUsage.. 7
QuotaNonPagedPoolUsage...... 0
PagefileUsage............... 0
PeakPagefileUsage........... 184848

IO count
ReadOperationCount.......... 81
WriteOperationCount......... 34
OtherOperationCount......... 115
ReadTransferCount........... 211939037
WriteTransferCount.......... 58043652
OtherTransferCount.......... 3414

更改命令行,以满足您对不同文件,文件类型等的需求......