OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 19 9 450 22 23.65 1.16
bin-true no-host 676 540 2,242 813 3.32 1.20
configure.cpython no-host 14,791 14,862 28,178 15,005 1.91 1.01
configure.ocaml no-host 3,747 3,690 4,563 3,786 1.22 1.01
configure.tcc no-host 47 41 193 48 4.10 1.02
configure.util-linux no-host 13,823 14,682 30,659 14,190 2.22 1.03
configure.yash no-host 1,805 1,742 2,400 1,817 1.33 1.01
hello-world no-host 1 1 48 3 32.55 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,540 1,101 22,896 3,186 9.01 1.25
bin-true no-host 107,373 66,500 756,406 129,179 7.04 1.20
configure.cpython no-host 2,223,256 2,244,438 6,163,196 2,225,295 2.77 1.00
configure.ocaml no-host 410,346 391,245 640,851 413,594 1.56 1.01
configure.tcc no-host 6,567 5,473 23,299 6,997 3.55 1.07
configure.util-linux no-host 2,105,968 2,264,113 5,326,310 1,996,442 2.53 0.95
configure.yash no-host 256,662 245,150 384,222 258,737 1.50 1.01
hello-world no-host 153 82 3,692 347 24.13 2.27

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 21.9 8.8 4.91 1.97
bin-true no-host 3.0 1.4 17.6 8.1 5.82 2.70
configure.cpython no-host 27.4 27.1 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.0 30.1 0.99 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.4 6.0 6.04 2.09

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.3 6.0 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,005 1 56 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,190 2 56 21.3 30.1 2,703,426 42,790 65,831 109,643 1,320,611 1,273,172 49,081 41 131,662 1
configure.ocaml no-host 3,786 0 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,817 1 2 2.6 24.2 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,292 64,473 42,681 4,555 54,561 57,176 478 3 85,362 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 19 18 1 4.5 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 450 412 40 21.9 osh-cpython
31 no-host abuild-print-help 22 18 5 8.8 osh-native
1 no-host bin-true 676 496 211 3.0 bash
9 no-host bin-true 540 403 144 1.4 dash
17 no-host bin-true 2,242 1,459 1,040 17.6 osh-cpython
25 no-host bin-true 813 571 255 8.1 osh-native
2 no-host configure.cpython 14,791 9,044 6,142 27.4 bash
10 no-host configure.cpython 14,862 9,147 6,128 27.1 dash
18 no-host configure.cpython 28,178 17,116 12,873 27.3 osh-cpython
26 no-host configure.cpython 15,005 8,871 6,400 27.4 osh-native
4 no-host configure.ocaml 3,747 1,529 1,257 20.6 bash
12 no-host configure.ocaml 3,690 1,574 1,136 20.6 dash
20 no-host configure.ocaml 4,563 2,187 1,582 20.6 osh-cpython
28 no-host configure.ocaml 3,786 1,613 1,212 20.6 osh-native
5 no-host configure.tcc 47 29 19 19.3 bash
13 no-host configure.tcc 41 22 19 19.4 dash
21 no-host configure.tcc 193 144 52 19.3 osh-cpython
29 no-host configure.tcc 48 23 26 19.4 osh-native
3 no-host configure.util-linux 13,823 8,902 5,396 30.3 bash
11 no-host configure.util-linux 14,682 9,090 6,077 30.3 dash
19 no-host configure.util-linux 30,659 20,644 11,078 30.0 osh-cpython
27 no-host configure.util-linux 14,190 8,599 5,788 30.1 osh-native
6 no-host configure.yash 1,805 1,018 794 24.2 bash
14 no-host configure.yash 1,742 1,009 735 24.4 dash
22 no-host configure.yash 2,400 1,494 948 24.4 osh-cpython
30 no-host configure.yash 1,817 1,065 755 24.2 osh-native
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 26 22 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.0 osh-native

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,540 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,896 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 107,373 0 0 0 8 0 1,987 102 bash
9 no-host bin-true 66,500 0 0 0 8 0 1,991 41 dash
17 no-host bin-true 756,406 0 0 0 8 0 1,995 175 osh-cpython
25 no-host bin-true 129,179 0 0 0 16 0 1,990 199 osh-native
2 no-host configure.cpython 2,223,256 1 0 0 32,928 0 14,521 1,167 bash
10 no-host configure.cpython 2,244,438 0 0 0 32,992 0 14,675 1,269 dash
18 no-host configure.cpython 6,163,196 0 0 0 27,512 0 13,294 1,057 osh-cpython
26 no-host configure.cpython 2,225,295 0 0 0 27,520 0 13,424 1,116 osh-native
4 no-host configure.ocaml 410,346 0 0 0 5,120 0 1,943 173 bash
12 no-host configure.ocaml 391,245 0 0 0 5,112 0 1,916 157 dash
20 no-host configure.ocaml 640,851 1 0 0 5,112 0 1,853 167 osh-cpython
28 no-host configure.ocaml 413,594 0 0 0 5,120 0 1,927 178 osh-native
5 no-host configure.tcc 6,567 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,299 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,105,968 1 0 0 42,400 0 18,704 1,036 bash
11 no-host configure.util-linux 2,264,113 0 0 0 42,592 0 17,389 1,074 dash
19 no-host configure.util-linux 5,326,310 9 0 0 39,112 0 17,083 1,359 osh-cpython
27 no-host configure.util-linux 1,996,442 0 0 0 39,120 0 16,975 1,058 osh-native
6 no-host configure.yash 256,662 0 0 0 4,120 0 877 79 bash
14 no-host configure.yash 245,150 0 0 0 3,720 0 871 85 dash
22 no-host configure.yash 384,222 0 0 0 3,728 0 853 81 osh-cpython
30 no-host configure.yash 258,737 0 0 0 3,736 0 848 87 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,692 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-40dcdeb1
dash dash-308ec8e6
osh-cpython osh-37f87acd
osh-native osh-b5fd9d0c
host label host id
no-host no-host-556df3ee