Open krono opened 6 years ago
For #89
Did you see the code below? Specifically https://github.com/smarr/ReBench/blob/master/rebench/interop/time_adapter.py#L58?
yes.
I just wanted to have it tracked, and (a) that it's the same with other BSDen as well as (b) there's more info available even without -f
.
Ok, thanks. Don't think, I'll have time for it, so, will mark it for later. The current solution is working on macOS as far as the tests tell me.
Ack.
Sorry for posting on a 6yo issue, but I wanted to point out a minor, related issue on arm64 machines.
There, installing the GNU time
implementation (e.g., with brew install gnu-time
) is not enough because ReBench only looks in /usr/bin/time
and /opt/local/bin/gtime
. Would it be possible to add /opt/homebrew/bin
to the list of searched paths?
In the meantime, I think the easiest workaround is to just create a symlink:
mkdir -p /opt/local/bin
ln -s `which gtime` /opt/local/bin/gtime
@lou1306 I am very open to a PR that change this code here to iterate over a list of known binaries, to find the one that's available: https://github.com/smarr/ReBench/blob/master/rebench/interop/time_adapter.py#L65-L82
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 thatThis looks as follows: