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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 22 22 18 1.34 1.14
bin-true no-host 632 446 815 816 664 1.29 1.05
configure.cpython no-host 14,316 14,385 13,903 14,044 13,427 0.97 0.94
configure.ocaml no-host 3,762 3,702 3,811 3,804 3,760 1.01 1.00
configure.tcc no-host 47 42 48 48 45 1.03 0.96
configure.util-linux no-host 12,950 13,733 12,961 13,057 12,604 1.00 0.97
configure.yash no-host 1,783 1,687 1,752 1,755 1,717 0.98 0.96
hello-world no-host 1 1 3 3 1 2.44 1.05

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,391 1,183 3,322 3,402 2,829 1.39 1.18
bin-true no-host 99,478 49,395 132,293 133,001 112,058 1.33 1.13
configure.cpython no-host 1,632,426 1,640,423 1,576,868 1,606,367 1,515,063 0.97 0.93
configure.ocaml no-host 299,070 280,510 306,983 306,935 300,096 1.03 1.00
configure.tcc no-host 5,217 4,202 5,560 5,674 5,124 1.07 0.98
configure.util-linux no-host 1,530,102 1,703,078 1,504,511 1,517,519 1,480,128 0.98 0.97
configure.yash no-host 173,384 159,599 176,965 177,102 172,742 1.02 1.00
hello-world no-host 150 85 390 403 184 2.60 1.23

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.8 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.1 1.4 8.7 9.3 5.1 2.75 1.62
configure.cpython no-host 34.7 34.5 34.6 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.1 25.9 26.3 26.0 0.99 0.99
configure.util-linux no-host 39.7 39.7 39.7 39.5 39.9 1.00 1.00
configure.yash no-host 33.3 33.4 33.3 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.7 7.1 3.3 2.12 1.04

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.7 3,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 815 1 2 3.5 8.7 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,903 1 72 14.8 34.6 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,961 3 71 21.6 39.7 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,811 1 2 2.8 28.7 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 25.9 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,752 1 2 2.7 33.3 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.4 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 816 1 2 3.5 9.3 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 14,044 2 75 14.9 34.5 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,057 3 71 21.6 39.5 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,804 1 2 2.8 28.7 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.3 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,755 1 2 2.7 33.3 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,238 65,805 42,012 4,980 54,600 57,658 277 3 84,024 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 16 6 11 4.8 bash
15 no-host abuild-print-help 9 5 4 3.8 dash
23 no-host abuild-print-help 22 15 8 9.4 osh-native
31 no-host abuild-print-help 22 15 7 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 632 320 352 3.1 bash
9 no-host bin-true 446 277 175 1.4 dash
17 no-host bin-true 815 312 520 8.7 osh-native
25 no-host bin-true 816 304 530 9.3 osh-nosouffle
33 no-host bin-true 664 312 369 5.1 osh-static
2 no-host configure.cpython 14,316 7,886 6,837 34.7 bash
10 no-host configure.cpython 14,385 7,883 6,922 34.5 dash
18 no-host configure.cpython 13,903 7,462 6,728 34.6 osh-native
26 no-host configure.cpython 14,044 7,433 6,915 34.5 osh-nosouffle
34 no-host configure.cpython 13,427 7,327 6,351 34.5 osh-static
4 no-host configure.ocaml 3,762 1,496 1,308 28.6 bash
12 no-host configure.ocaml 3,702 1,541 1,186 28.7 dash
20 no-host configure.ocaml 3,811 1,550 1,303 28.7 osh-native
28 no-host configure.ocaml 3,804 1,558 1,288 28.7 osh-nosouffle
36 no-host configure.ocaml 3,760 1,543 1,249 28.7 osh-static
5 no-host configure.tcc 47 28 19 26.1 bash
13 no-host configure.tcc 42 25 17 26.1 dash
21 no-host configure.tcc 48 27 22 25.9 osh-native
29 no-host configure.tcc 48 25 23 26.3 osh-nosouffle
37 no-host configure.tcc 45 22 23 26.0 osh-static
3 no-host configure.util-linux 12,950 6,860 6,574 39.7 bash
11 no-host configure.util-linux 13,733 6,689 7,559 39.7 dash
19 no-host configure.util-linux 12,961 6,369 6,829 39.7 osh-native
27 no-host configure.util-linux 13,057 6,533 6,765 39.5 osh-nosouffle
35 no-host configure.util-linux 12,604 6,301 6,531 39.9 osh-static
6 no-host configure.yash 1,783 1,043 749 33.3 bash
14 no-host configure.yash 1,687 959 730 33.4 dash
22 no-host configure.yash 1,752 948 807 33.3 osh-native
30 no-host configure.yash 1,755 976 782 33.3 osh-nosouffle
38 no-host configure.yash 1,717 981 739 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 osh-static

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,391 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,183 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,322 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,402 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,829 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,478 0 0 0 8 0 1,999 59 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,994 52 dash
17 no-host bin-true 132,293 0 0 0 16 0 1,999 90 osh-native
25 no-host bin-true 133,001 0 0 0 16 0 1,998 81 osh-nosouffle
33 no-host bin-true 112,058 0 0 0 8 0 1,998 65 osh-static
2 no-host configure.cpython 1,632,426 0 0 0 25,272 0 14,100 1,067 bash
10 no-host configure.cpython 1,640,423 0 0 0 25,272 0 14,151 1,023 dash
18 no-host configure.cpython 1,576,868 0 0 0 25,280 0 11,287 821 osh-native
26 no-host configure.cpython 1,606,367 0 0 0 25,280 0 11,302 881 osh-nosouffle
34 no-host configure.cpython 1,515,063 0 0 0 25,272 0 11,306 858 osh-static
4 no-host configure.ocaml 299,070 0 0 0 4,432 0 2,014 195 bash
12 no-host configure.ocaml 280,510 0 0 0 4,432 0 2,105 199 dash
20 no-host configure.ocaml 306,983 0 0 0 4,440 0 1,999 205 osh-native
28 no-host configure.ocaml 306,935 0 0 0 4,440 0 1,999 195 osh-nosouffle
36 no-host configure.ocaml 300,096 0 0 0 4,432 0 1,997 223 osh-static
5 no-host configure.tcc 5,217 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,560 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,674 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,124 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,530,102 0 0 0 35,936 0 18,982 1,081 bash
11 no-host configure.util-linux 1,703,078 0 0 0 35,936 0 17,157 1,199 dash
19 no-host configure.util-linux 1,504,511 0 0 0 35,952 0 16,129 965 osh-native
27 no-host configure.util-linux 1,517,519 1 0 0 35,944 0 16,221 996 osh-nosouffle
35 no-host configure.util-linux 1,480,128 1 0 0 35,944 0 16,202 917 osh-static
6 no-host configure.yash 173,384 0 0 0 3,616 0 879 97 bash
14 no-host configure.yash 159,599 0 0 0 3,616 0 995 105 dash
22 no-host configure.yash 176,965 0 0 0 3,624 0 858 104 osh-native
30 no-host configure.yash 177,102 0 0 0 3,632 0 858 110 osh-nosouffle
38 no-host configure.yash 172,742 0 0 0 3,616 0 858 96 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 403 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-38dca7ba
osh-nosouffle osh-9170ca75
osh-static osh-static-200fd70c
host label host id
no-host no-host-bba74091