Notes
  • Index
  • Assorted articles, tools and links
    • Raspberry Pi
  • Terminal Extravaganza
    • kitty
    • zsh
    • vim
    • git
    • ssh
  • Web Dev
    • Ruby on Rails
      • JSON:API
      • Database
      • Active Storage
      • Testing
    • Postgres
    • Mongo
  • System Administration
    • New server setup
    • systemd
    • launchd
  • DevOps
    • Ansible
    • Packer
    • Docker
    • Terraform
Powered by GitBook
On this page
  • Simple benchmarking
  • Better finding
  • Fuzzy finder for the command line

Was this helpful?

Assorted articles, tools and links

PreviousIndexNextRaspberry Pi

Last updated 5 years ago

Was this helpful?

Simple benchmarking

If you need to benchmark something, the fastest way is to use the time shell builtin. Often times you want to run the same command multiple times to account for filesystem cache warmup and eliminate statistical outliers. In those cases comparing time outputs and remembering to preface every command with that command can be time intensive (hehe). Instead of time you can use hyperfine which has much more options and automates much of the boring statistical work.

Better finding

The find command (TODO: write article) is a mess. There's a much more user friendly (and faster) alternative called fd:

Fuzzy finder for the command line

Use fzf to:

  • find files, fast (e.g. in Vim)

  • collate completed commands (e.g. with C-r in your shell)

  • procure processes (e.g. fuzzy find the process you want to kill)

  • get general git gizmos (e.g. branches, tags)

... and !

more
GitHub - sharkdp/hyperfine: A command-line benchmarking toolGitHub
GitHub - junegunn/fzf: A command-line fuzzy finderGitHub
GitHub - sharkdp/fd: A simple, fast and user-friendly alternative to 'find'GitHub
Logo
Logo
Logo