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 473 23 21 24.55 1.17
bin-true no-host 693 538 2,297 809 808 3.31 1.17
configure.cpython no-host 15,096 15,078 29,059 15,485 15,396 1.92 1.03
configure.ocaml no-host 3,798 3,769 4,701 3,835 3,824 1.24 1.01
configure.tcc no-host 47 41 208 49 48 4.41 1.03
configure.util-linux no-host 14,065 14,950 31,593 14,427 14,320 2.25 1.03
configure.yash no-host 1,823 1,780 2,480 1,832 1,824 1.36 1.00
hello-world no-host 1 1 57 3 3 37.92 1.88

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,562 1,127 23,897 3,186 3,123 9.33 1.24
bin-true no-host 106,348 65,440 762,807 125,269 125,208 7.17 1.18
configure.cpython no-host 2,218,181 2,238,973 6,216,158 2,216,201 2,202,848 2.80 1.00
configure.ocaml no-host 410,785 390,891 646,169 412,508 412,266 1.57 1.00
configure.tcc no-host 6,570 5,474 24,006 6,965 6,905 3.65 1.06
configure.util-linux no-host 2,105,235 2,262,070 5,366,423 1,998,649 1,988,294 2.55 0.95
configure.yash no-host 255,951 245,057 386,261 258,129 257,882 1.51 1.01
hello-world no-host 154 83 3,928 342 337 25.51 2.22

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.5 3.5 22.4 8.9 8.7 5.03 2.00
bin-true no-host 3.0 1.4 18.1 8.0 7.6 6.01 2.65
configure.cpython no-host 27.3 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.4 19.3 0.99 1.00
configure.util-linux no-host 30.0 30.3 30.3 30.0 30.3 1.01 1.00
configure.yash no-host 24.4 24.4 24.5 24.4 24.4 1.01 1.00
hello-world no-host 2.9 1.4 18.0 6.3 5.9 6.24 2.18

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 809 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,485 1 63 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,427 3 60 21.2 30.0 2,702,513 45,898 65,711 108,691 1,320,585 1,273,237 32,239 41 131,422 1
configure.ocaml no-host 3,835 1 2 2.6 20.4 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,832 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,527 57,233 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 808 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,396 1 62 14.9 27.4 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,320 3 61 21.2 30.3 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,824 1 2 2.6 20.4 150,080 11,050 5,145 7,510 71,612 70,958 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,782 14,284 271 0 50,000 0
configure.yash no-host 1,824 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 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,527 57,231 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 16 4 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 473 429 47 22.4 osh-cpython
31 no-host abuild-print-help 23 14 9 8.9 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 693 512 212 3.0 bash
9 no-host bin-true 538 417 130 1.4 dash
17 no-host bin-true 2,297 1,469 1,088 18.1 osh-cpython
25 no-host bin-true 809 576 247 8.0 osh-native
33 no-host bin-true 808 590 233 7.6 osh-native-souffle
2 no-host configure.cpython 15,096 9,123 6,363 27.3 bash
10 no-host configure.cpython 15,078 8,946 6,536 27.4 dash
18 no-host configure.cpython 29,059 17,793 13,136 27.3 osh-cpython
26 no-host configure.cpython 15,485 9,116 6,637 27.4 osh-native
34 no-host configure.cpython 15,396 9,035 6,497 27.4 osh-native-souffle
4 no-host configure.ocaml 3,798 1,603 1,236 20.6 bash
12 no-host configure.ocaml 3,769 1,604 1,183 20.6 dash
20 no-host configure.ocaml 4,701 2,214 1,700 20.6 osh-cpython
28 no-host configure.ocaml 3,835 1,648 1,226 20.4 osh-native
36 no-host configure.ocaml 3,824 1,569 1,292 20.4 osh-native-souffle
5 no-host configure.tcc 47 35 13 19.4 bash
13 no-host configure.tcc 41 31 11 19.3 dash
21 no-host configure.tcc 208 159 52 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.4 osh-native
37 no-host configure.tcc 48 19 30 19.3 osh-native-souffle
3 no-host configure.util-linux 14,065 8,765 5,768 30.0 bash
11 no-host configure.util-linux 14,950 9,154 6,300 30.3 dash
19 no-host configure.util-linux 31,593 21,088 11,586 30.3 osh-cpython
27 no-host configure.util-linux 14,427 8,512 6,104 30.0 osh-native
35 no-host configure.util-linux 14,320 8,823 5,690 30.3 osh-native-souffle
6 no-host configure.yash 1,823 1,089 740 24.4 bash
14 no-host configure.yash 1,780 966 815 24.4 dash
22 no-host configure.yash 2,480 1,473 1,049 24.5 osh-cpython
30 no-host configure.yash 1,832 1,108 727 24.4 osh-native
38 no-host configure.yash 1,824 915 912 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 48 8 18.0 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,562 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,897 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,123 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,348 0 0 0 8 0 1,994 173 bash
9 no-host bin-true 65,440 0 0 0 8 0 1,989 51 dash
17 no-host bin-true 762,807 0 0 0 8 0 2,002 366 osh-cpython
25 no-host bin-true 125,269 0 0 0 16 0 1,995 92 osh-native
33 no-host bin-true 125,208 0 0 0 16 0 1,993 47 osh-native-souffle
2 no-host configure.cpython 2,218,181 0 0 0 32,928 0 14,480 1,078 bash
10 no-host configure.cpython 2,238,973 0 0 0 32,992 0 14,618 1,005 dash
18 no-host configure.cpython 6,216,158 2 0 0 27,512 0 13,277 1,116 osh-cpython
26 no-host configure.cpython 2,216,201 0 0 0 27,520 0 13,241 971 osh-native
34 no-host configure.cpython 2,202,848 0 0 0 27,520 0 13,245 948 osh-native-souffle
4 no-host configure.ocaml 410,785 0 0 0 5,120 0 1,942 169 bash
12 no-host configure.ocaml 390,891 0 0 0 5,112 0 1,912 137 dash
20 no-host configure.ocaml 646,169 0 0 0 5,112 0 1,851 185 osh-cpython
28 no-host configure.ocaml 412,508 0 0 0 5,120 0 1,924 166 osh-native
36 no-host configure.ocaml 412,266 0 0 0 5,120 0 1,932 137 osh-native-souffle
5 no-host configure.tcc 6,570 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,006 0 0 0 96 0 52 11 osh-cpython
29 no-host configure.tcc 6,965 0 0 0 104 0 46 4 osh-native
37 no-host configure.tcc 6,905 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,105,235 0 0 0 42,400 0 18,680 1,072 bash
11 no-host configure.util-linux 2,262,070 0 0 0 42,584 0 17,507 1,006 dash
19 no-host configure.util-linux 5,366,423 12 0 0 39,112 0 16,966 1,119 osh-cpython
27 no-host configure.util-linux 1,998,649 3 0 0 39,120 0 16,991 974 osh-native
35 no-host configure.util-linux 1,988,294 2 0 0 39,128 0 16,973 886 osh-native-souffle
6 no-host configure.yash 255,951 0 0 0 4,120 0 872 74 bash
14 no-host configure.yash 245,057 0 0 0 3,720 0 866 81 dash
22 no-host configure.yash 386,261 0 0 0 3,728 0 851 87 osh-cpython
30 no-host configure.yash 258,129 0 0 0 3,736 0 851 81 osh-native
38 no-host configure.yash 257,882 0 0 0 3,736 0 853 72 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,928 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-f396b536
dash dash-0ebcf347
osh-cpython osh-41e2e1ab
osh-native osh-41e7300c
osh-native-souffle osh-657a6fd8
host label host id
no-host no-host-556df3ee