Skip to content

TimeAdapter incompatible with macOS/BSD time #91

@krono

Description

@krono

The BSD and macOS time does not support the -f switch (as in https://github.com/smarr/ReBench/blob/master/rebench/interop/time_adapter.py#L46).

However I checket macOS, OpenBSD and FreeBSD and they support an -l switch such that that

-l the contents of the rusage structure are printed.

This looks as follows:

$ /usr/bin/time -l someCommand
[…output…]
        1.04 real         0.44 user         0.32 sys
  23814144  maximum resident set size
         0  average shared memory size
         0  average unshared data size
         0  average unshared stack size
     29843  page reclaims
      1216  page faults
         0  swaps
       294  block input operations
         3  block output operations
         0  messages sent
         0  messages received
        46  signals received
      1015  voluntary context switches
       645  involuntary context switches

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions