Skip to content

Instantly share code, notes, and snippets.

@iblazhko
Created July 15, 2020 06:06
Show Gist options
  • Select an option

  • Save iblazhko/8ea3a85b8d77c20fe380e85fe9c61fdf to your computer and use it in GitHub Desktop.

Select an option

Save iblazhko/8ea3a85b8d77c20fe380e85fe9c61fdf to your computer and use it in GitHub Desktop.

Startup Times

Comparing startup times for various shells and programming languages CLI.

Tests run on NanoPi M4V2.

Python 3

$ time python3 --version
Python 3.7.3
python3 --version  0.00s user 0.01s system 59% cpu 0.013 total

Bash

time bash --version
GNU bash, version 5.0.3(1)-release (aarch64-unknown-linux-gnu)
bash --version  0.00s user 0.00s system 55% cpu 0.014 total

Rust/Cargo

$ time cargo --version
cargo 1.44.1 (88ba85757 2020-06-11)
cargo --version  0.02s user 0.03s system 89% cpu 0.053 total

NodeJS 12 LTS

$ time node --version
v12.18.2
node --version  0.02s user 0.06s system 61% cpu 0.129 total

Go

$ time go version  
go version go1.11.6 linux/arm64
go version  0.04s user 0.09s system 114% cpu 0.112 total

Java OpenJDK 11

$ time java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Debian-3deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Debian-3deb10u1, mixed mode)
java --version  0.80s user 0.09s system 156% cpu 0.569 total

.NET Core 3.1

$ time dotnet --version
3.1.301
dotnet --version  1.10s user 0.11s system 100% cpu 1.208 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment