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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 470 22 21 24.73 1.14
bin-true no-host 679 547 2,307 814 811 3.40 1.20
configure.cpython no-host 15,028 15,117 28,716 15,210 15,352 1.91 1.01
configure.ocaml no-host 3,819 3,767 4,659 3,811 3,816 1.22 1.00
configure.tcc no-host 48 42 203 48 48 4.24 1.01
configure.util-linux no-host 14,021 14,916 31,378 14,358 14,395 2.24 1.02
configure.yash no-host 1,811 1,784 2,457 1,818 1,814 1.36 1.00
hello-world no-host 1 1 56 3 3 37.93 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,506 1,097 23,681 3,170 3,109 9.45 1.26
bin-true no-host 107,378 66,413 774,713 126,222 126,255 7.21 1.18
configure.cpython no-host 2,229,323 2,245,920 6,214,524 2,221,098 2,207,617 2.79 1.00
configure.ocaml no-host 409,633 391,025 647,631 413,467 412,645 1.58 1.01
configure.tcc no-host 6,562 5,480 24,077 6,959 6,930 3.67 1.06
configure.util-linux no-host 2,093,435 2,261,444 5,390,232 1,998,136 1,987,671 2.57 0.95
configure.yash no-host 256,218 244,174 388,815 258,301 258,006 1.52 1.01
hello-world no-host 151 81 3,944 345 339 26.12 2.28

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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 22.8 9.0 8.7 5.28 2.09
bin-true no-host 3.0 1.6 18.2 8.3 7.5 6.05 2.74
configure.cpython no-host 27.3 27.4 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.0 30.0 1.00 0.99
configure.yash no-host 24.2 24.2 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 2.29

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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.3 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,210 1 61 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,358 3 60 21.2 30.0 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,811 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,818 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,352 1 60 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,395 3 61 21.2 30.0 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,816 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,814 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 12 7 4.3 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 470 415 57 22.8 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 679 500 212 3.0 bash
9 no-host bin-true 547 411 146 1.6 dash
17 no-host bin-true 2,307 1,473 1,095 18.2 osh-cpython
25 no-host bin-true 814 578 248 8.3 osh-native
33 no-host bin-true 811 588 237 7.5 osh-native-souffle
2 no-host configure.cpython 15,028 9,062 6,373 27.3 bash
10 no-host configure.cpython 15,117 9,117 6,425 27.4 dash
18 no-host configure.cpython 28,716 17,740 12,843 27.4 osh-cpython
26 no-host configure.cpython 15,210 8,880 6,597 27.3 osh-native
34 no-host configure.cpython 15,352 8,937 6,511 27.4 osh-native-souffle
4 no-host configure.ocaml 3,819 1,609 1,234 20.6 bash
12 no-host configure.ocaml 3,767 1,627 1,158 20.6 dash
20 no-host configure.ocaml 4,659 2,242 1,624 20.6 osh-cpython
28 no-host configure.ocaml 3,811 1,588 1,260 20.6 osh-native
36 no-host configure.ocaml 3,816 1,593 1,260 20.6 osh-native-souffle
5 no-host configure.tcc 48 25 23 19.4 bash
13 no-host configure.tcc 42 17 25 19.3 dash
21 no-host configure.tcc 203 147 59 19.4 osh-cpython
29 no-host configure.tcc 48 26 23 19.3 osh-native
37 no-host configure.tcc 48 25 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,021 8,837 5,657 30.3 bash
11 no-host configure.util-linux 14,916 9,194 6,221 30.1 dash
19 no-host configure.util-linux 31,378 21,223 11,254 30.1 osh-cpython
27 no-host configure.util-linux 14,358 8,634 5,922 30.0 osh-native
35 no-host configure.util-linux 14,395 8,710 5,883 30.0 osh-native-souffle
6 no-host configure.yash 1,811 1,022 799 24.2 bash
14 no-host configure.yash 1,784 1,012 776 24.2 dash
22 no-host configure.yash 2,457 1,468 1,031 24.4 osh-cpython
30 no-host configure.yash 1,818 1,035 786 24.2 osh-native
38 no-host configure.yash 1,814 1,066 752 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 22 34 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

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,506 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,681 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,378 0 0 0 8 0 1,990 47 bash
9 no-host bin-true 66,413 0 0 0 8 0 1,984 38 dash
17 no-host bin-true 774,713 0 0 0 8 0 1,998 226 osh-cpython
25 no-host bin-true 126,222 0 0 0 16 0 1,995 67 osh-native
33 no-host bin-true 126,255 0 0 0 16 0 1,989 78 osh-native-souffle
2 no-host configure.cpython 2,229,323 0 0 0 32,928 0 14,508 1,025 bash
10 no-host configure.cpython 2,245,920 1 0 0 32,992 0 14,630 1,100 dash
18 no-host configure.cpython 6,214,524 1 0 0 27,512 0 13,281 1,215 osh-cpython
26 no-host configure.cpython 2,221,098 0 0 0 27,520 0 13,285 1,053 osh-native
34 no-host configure.cpython 2,207,617 0 0 0 27,520 0 13,222 1,001 osh-native-souffle
4 no-host configure.ocaml 409,633 0 0 0 5,120 0 1,953 172 bash
12 no-host configure.ocaml 391,025 0 0 0 5,112 0 1,911 155 dash
20 no-host configure.ocaml 647,631 0 0 0 5,112 0 1,855 179 osh-cpython
28 no-host configure.ocaml 413,467 0 0 0 5,120 0 1,926 163 osh-native
36 no-host configure.ocaml 412,645 0 0 0 5,120 0 1,931 167 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 6 dash
21 no-host configure.tcc 24,077 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,930 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,093,435 1 0 0 42,400 0 18,559 1,129 bash
11 no-host configure.util-linux 2,261,444 0 0 0 42,584 0 17,497 1,017 dash
19 no-host configure.util-linux 5,390,232 10 0 0 39,112 0 16,952 1,108 osh-cpython
27 no-host configure.util-linux 1,998,136 1 0 0 39,120 0 16,975 946 osh-native
35 no-host configure.util-linux 1,987,671 0 0 0 39,136 0 17,102 1,059 osh-native-souffle
6 no-host configure.yash 256,218 0 0 0 4,120 0 871 67 bash
14 no-host configure.yash 244,174 0 0 0 3,720 0 867 80 dash
22 no-host configure.yash 388,815 0 0 0 3,728 0 850 95 osh-cpython
30 no-host configure.yash 258,301 0 0 0 3,736 0 850 67 osh-native
38 no-host configure.yash 258,006 0 0 0 3,736 0 851 82 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,944 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d4a793e7
dash dash-0ebcf347
osh-cpython osh-af3f248e
osh-native osh-c160eb7b
osh-native-souffle osh-83177334
host label host id
no-host no-host-556df3ee