Serpent7776

joined 8 months ago
[โ€“] [email protected] 1 points 3 months ago

I added bun and deno. Updated results are on the github page. Deno is similar to node, bun takes much less time.

https://github.com/serpent7776/startup-shutdown-bench

 

A blog post shows an example usage of hyperfine CLI tool to measure and plot time of startup and shutdown of several code interpreters.

 

I created a very simple script that shows the history usage of your shell. Should work with bash and fish shells.

This basically goes through the history and counts the command names. So all of git push, git pull, etc will count as just git.

Example output:

    847 pacman
    296 cd
    206 git
    203 time
    180 vim
    172 awk
    166 aur
    142 strace
    141 cat
    125 ls
Total commands:  7008
Unique commands: 753
[โ€“] [email protected] 2 points 8 months ago

I can actually define this in TCL:

% proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}}
% ifn't false {puts 12}
12
% ifn't true {puts 12}
%