cbench

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: ISC Imports: 14 Imported by: 0

README

cbench

Command Bench - benchmarking command-line tools

Example

$ cbench 'find /home/howeyc/src/ -path "*pric*" -size +1M' 'findp /home/howeyc/src/ -path "*pric*" -size +1M'
Benchmark 1 [043 runs]: "find /home/howeyc/src/ -path \"*pric*\" -size +1M"
  Time:   68.4ms ±   600µs
  Range:  67.2ms …  70.9ms
Benchmark 2 [170 runs]: "findp /home/howeyc/src/ -path \"*pric*\" -size +1M"
  Time:   17.5ms ±   300µs
  Range:  16.9ms …  18.2ms

Summary
  "findp /home/howeyc/src/ -path \"*pric*\" -size +1M" ran
    3.89 ± 0.08 times faster than "find /home/howeyc/src/ -path \"*pric*\" -size +1M"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL