Skip to content

Commit

Permalink
Avoid to calc before cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 31, 2023
1 parent 0900cdd commit 0ee1d6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions home/.local/share/homemade/bin/bench_shells.bash
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env bash

set -euo pipefail
set -euxo pipefail

# ~ my feeling ~
# 50ms : blazing fast!
# 120ms : acceptable
# 200ms : 1980s?
# 300ms : slow!

hyperfine 'bash -i -c exit'
hyperfine 'zsh --interactive -c exit'
hyperfine 'fish --interactive --command exit'
hyperfine 'nu --interactive --commands exit'
hyperfine --warmup 1 'bash -i -c exit'
hyperfine --warmup 1 'zsh --interactive -c exit'
hyperfine --warmup 1 'fish --interactive --command exit'
hyperfine --warmup 1 'nu --interactive --commands exit'

0 comments on commit 0ee1d6f

Please sign in to comment.