I can't seem to get the verbose mode of time working.? I am trying to compare the compute cost of sha256-crypt to sha512-crypt: time doveadm pw -s sha256-crypt -p secret real??? 0m0.128s user??? 0m0.081s sys???? 0m0.040s time doveadm pw -s sha512-crypt -p secret real??? 0m0.162s user??? 0m0.105s sys???? 0m0.047s But all attempts to add --verbose fail: time --verbose doveadm pw -s sha512-crypt -p secret -bash: --verbose: command not found Googling gives different recommendations, none work for me.
On Mon, 2019-02-11 at 16:06 -0500, Robert Moskowitz wrote:> I can't seem to get the verbose mode of time working. I am trying toProvide the full path for time, you are using the bash built-in time. Try: /usr/bin/time --verbose cmd> compare the compute cost of sha256-crypt to sha512-crypt: > > time doveadm pw -s sha256-crypt -p secret > > real 0m0.128s > user 0m0.081s > sys 0m0.040s > > time doveadm pw -s sha512-crypt -p secret > > real 0m0.162s > user 0m0.105s > sys 0m0.047s > > But all attempts to add --verbose fail: > > time --verbose doveadm pw -s sha512-crypt -p secret > -bash: --verbose: command not found > > Googling gives different recommendations, none work for me. > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
At 01:06 PM 2/11/2019, Robert Moskowitz wrote:>I can't seem to get the verbose mode of time >working.? I am trying to compare the compute >cost of sha256-crypt to sha512-crypt: > >time doveadm pw -s sha256-crypt -p secret > >real? ? ? 0m0.128s >user? ? ? 0m0.081s >sys? ? ? ? 0m0.040s > >time doveadm pw -s sha512-crypt -p secret > >real? ? ? 0m0.162s >user? ? ? 0m0.105s >sys? ? ? ? 0m0.047s > >But all attempts to add --verbose fail: > >time --verbose doveadm pw -s sha512-crypt -p secret >-bash: --verbose: command not found > >Googling gives different recommendations, none work for me.To quote from linux.die.net/man/1/time Note: some shells (e.g., <https://linux.die.net/man/1/bash>bash(1)) have a built-in time command that provides less functionality than the command described here. To access the real command, you may need to specify its pathname (something like /usr/bin/time). Could it be you've encountered this? David
On 2/11/19 4:18 PM, david wrote:> At 01:06 PM 2/11/2019, Robert Moskowitz wrote: >> I can't seem to get the verbose mode of time working.?? I am trying >> to compare the compute cost of sha256-crypt to sha512-crypt: >> >> time doveadm pw -s sha256-crypt -p secret >> >> real? ? ?? 0m0.128s >> user? ? ?? 0m0.081s >> sys? ? ? ?? 0m0.040s >> >> time doveadm pw -s sha512-crypt -p secret >> >> real? ? ?? 0m0.162s >> user? ? ?? 0m0.105s >> sys? ? ? ?? 0m0.047s >> >> But all attempts to add --verbose fail: >> >> time --verbose doveadm pw -s sha512-crypt -p secret >> -bash: --verbose: command not found >> >> Googling gives different recommendations, none work for me. > > > To quote from linux.die.net/man/1/time > > Note: some shells (e.g., <https://linux.die.net/man/1/bash>bash(1)) > have a built-in time command that provides less functionality than the > command described here. To access the real command, you may need to > specify its pathname (something like /usr/bin/time). > > Could it be you've encountered this?I had to install the real time command to do this.? thanks
On 2/11/19 4:17 PM, Christian, Mark wrote:> On Mon, 2019-02-11 at 16:06 -0500, Robert Moskowitz wrote: >> I can't seem to get the verbose mode of time working. I am trying to > Provide the full path for time, you are using the bash built-in time. > Try: /usr/bin/time --verbose cmdWorked after yum install time...? :)> >> compare the compute cost of sha256-crypt to sha512-crypt: >> >> time doveadm pw -s sha256-crypt -p secret >> >> real 0m0.128s >> user 0m0.081s >> sys 0m0.040s >> >> time doveadm pw -s sha512-crypt -p secret >> >> real 0m0.162s >> user 0m0.105s >> sys 0m0.047s >> >> But all attempts to add --verbose fail: >> >> time --verbose doveadm pw -s sha512-crypt -p secret >> -bash: --verbose: command not found >> >> Googling gives different recommendations, none work for me. >> >> >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >