[pmg-devel] [PATCH v2 pmg-log-tracker] rewrite in rust

Mira Limbeck m.limbeck at proxmox.com
Tue Nov 5 19:12:15 CET 2019


On 11/5/19 7:04 PM, Thomas Lamprecht wrote:
> On 11/5/19 4:58 PM, Mira Limbeck wrote:
>> Some simple benchmarks: (32 syslog files (syslog to syslog.31.gz))
>>
>> Rust: (median of 5 runs + 1 for cache)
>> sudo pmg-log-tracker -s "2018-01-01 00:00:00" -vv > /dev/null  11.68s user 0.74s system 99% cpu 12.421 total
>> sudo pmg-log-tracker -s "2018-01-01 00:00:00" -v > /dev/null  9.89s user 0.64s system 99% cpu 10.531 total
>>
>> C: (same as for the rust version)
>> sudo pmg-log-tracker -s "2018-01-01 00:00:00" -vv > /dev/null  11.83s user 0.32s system 99% cpu 12.147 total
>> sudo pmg-log-tracker -s "2018-01-01 00:00:00" -v > /dev/null  10.58s user 0.24s system 99% cpu 10.821 total
>>
> what about the benchmark environment? Where caches dropped in-between?
>
> Was a memory-backed tempfs for the backing "storage" tested also? To
> have a comparison which is for sure not IO limited?

To warm up the caches the first run was not counted (that's why 1 + 5 
runs were done).

No tempfs was tested, will look into it.


The runtime difference for the 5 runs (slowest to fastest) with -v was 
less than 0.15s, for both the Rust and the C version.




More information about the pmg-devel mailing list