Автор Гілка: hyperfine 1.11  (Прочитано 760 раз)

Відсутній Володимир Лісівка

  • Адміністратор ЩОДО
  • Видавець
  • *****
  • дописів: 3739
  • Карма: +9/-0
  • Програміст
hyperfine 1.11
« : 2021-02-06 11:34:00 »
hyperfine — це утиліта для порівняння швидкодії різних утиліт. Hypefine запускає утиліту стільки раз, скільки потрібно для збирання статистики.

Сторінка проєкту: https://github.com/sharkdp/hyperfine

Приклад:
$ hyperfine 'echo hello' 'printf "%s" hello'
Benchmark #1: echo hello
  Time (mean ± σ):       0.4 ms ±   0.3 ms    [User: 0.4 ms, System: 0.5 ms]
  Range (min … max):     0.0 ms …   2.9 ms    654 runs
 
  Warning: Command took less than 5 ms to complete. Results might be inaccurate.
  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.
 
Benchmark #2: printf "%s" hello
  Time (mean ± σ):       0.4 ms ±   0.3 ms    [User: 0.4 ms, System: 0.5 ms]
  Range (min … max):     0.0 ms …   2.0 ms    598 runs
 
  Warning: Command took less than 5 ms to complete. Results might be inaccurate.
 
Summary
  'printf "%s" hello' ran
    1.11 ± 1.18 times faster than 'echo hello'
« Змінено: 2021-02-06 12:19:12 від Володимир Лісівка »
[Fedora Linux]