macchina: [BUG] macchina takes long time to ( ~ 2 seconds ) on hyperfine / piped commands

Describe the bug hyperfine reports execution time at like 2 seconds.

Benchmark #1: macchina
  Time (mean ± σ):      2.284 s ±  0.623 s    [User: 28.7 ms, System: 28.1 ms]
  Range (min … max):    2.045 s …  4.055 s    10 runs

  Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet PC without any interferences from other programs. It might help to use the
 '--warmup' or '--prepare' options.

This also occurs in some piped commands.

time macchina | xclip -sel clip
________________________________________________________
Executed in    2.07 secs      fish           external
   usr time   22.48 millis    0.00 millis   22.48 millis
   sys time   31.98 millis    2.15 millis   29.82 millis

But not in others

time macchina | tee log
________________________________________________________
Executed in   41.62 millis    fish           external
   usr time   11.07 millis  351.00 micros   10.72 millis
   sys time   12.55 millis  131.00 micros   12.42 millis

This also happens in openwrt.

To Reproduce Steps to reproduce the behavior:

  1. hyperfine macchina

Expected behavior Should be as fast as printing to terminal

Screenshots hyperfine

macchina --doctor output Add a screenshot or copy and paste the output of --doctor if an element you’re supposed to be seeing isn’t showing up.

System Information

  • Distribution: Arch Linux
  • Desktop Environment : bspwm
  • Operating System GNU/Linux
  • Terminal : Alacritty
  • Macchina’s version : v0.6.7, v0.6.9. and also built from main branch

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

Yeah I just tried the latest version. It benchmarks fine now !

Alright I’ll try to provide a minimal reproducible bug there.

Alright I’ll try to take a look into this.