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 9 469 22 21 24.41 1.13
bin-true no-host 694 545 2,281 815 807 3.29 1.17
configure.cpython no-host 15,136 15,147 29,019 15,279 15,459 1.92 1.01
configure.ocaml no-host 3,852 3,741 4,667 3,824 3,848 1.21 0.99
configure.tcc no-host 48 44 204 49 49 4.27 1.03
configure.util-linux no-host 14,051 14,938 31,709 14,408 14,301 2.26 1.03
configure.yash no-host 1,839 1,778 2,483 1,826 1,830 1.35 0.99
hello-world no-host 1 1 56 3 3 37.77 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,544 1,090 23,709 3,172 3,097 9.32 1.25
bin-true no-host 105,324 65,345 772,241 127,241 123,298 7.33 1.21
configure.cpython no-host 2,218,601 2,242,960 6,188,123 2,224,963 2,211,122 2.79 1.00
configure.ocaml no-host 410,312 390,962 644,510 412,908 412,705 1.57 1.01
configure.tcc no-host 6,547 5,488 24,039 6,958 6,901 3.67 1.06
configure.util-linux no-host 2,105,712 2,263,566 5,381,036 1,994,388 1,986,460 2.56 0.95
configure.yash no-host 256,568 244,032 387,396 257,857 258,158 1.51 1.01
hello-world no-host 148 83 3,944 342 336 26.65 2.31

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.5 22.6 8.9 8.5 5.21 2.06
bin-true no-host 2.9 1.6 18.4 8.1 7.9 6.37 2.82
configure.cpython no-host 27.4 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.0 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.3 30.0 30.1 1.01 1.00
configure.yash no-host 24.4 24.4 24.5 24.2 24.5 1.01 0.99
hello-world no-host 2.6 1.4 18.2 6.2 6.0 6.96 2.35

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,279 1 65 14.9 27.4 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,408 3 62 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,824 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 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,826 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 8.9 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,459 1 62 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,301 3 60 21.2 30.1 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,848 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 49 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,830 1 2 2.5 24.5 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.5 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 15 4 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 469 409 63 22.6 osh-cpython
31 no-host abuild-print-help 22 19 3 8.9 osh-native
39 no-host abuild-print-help 21 15 7 8.5 osh-native-souffle
1 no-host bin-true 694 520 208 2.9 bash
9 no-host bin-true 545 411 144 1.6 dash
17 no-host bin-true 2,281 1,458 1,073 18.4 osh-cpython
25 no-host bin-true 815 568 261 8.1 osh-native
33 no-host bin-true 807 580 241 7.9 osh-native-souffle
2 no-host configure.cpython 15,136 9,080 6,470 27.4 bash
10 no-host configure.cpython 15,147 9,182 6,383 27.5 dash
18 no-host configure.cpython 29,019 17,873 13,012 27.4 osh-cpython
26 no-host configure.cpython 15,279 8,883 6,670 27.4 osh-native
34 no-host configure.cpython 15,459 8,967 6,569 27.4 osh-native-souffle
4 no-host configure.ocaml 3,852 1,619 1,272 20.4 bash
12 no-host configure.ocaml 3,741 1,545 1,213 20.4 dash
20 no-host configure.ocaml 4,667 2,300 1,578 20.6 osh-cpython
28 no-host configure.ocaml 3,824 1,578 1,286 20.6 osh-native
36 no-host configure.ocaml 3,848 1,589 1,294 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 44 33 11 19.0 dash
21 no-host configure.tcc 204 151 56 19.3 osh-cpython
29 no-host configure.tcc 49 22 27 19.4 osh-native
37 no-host configure.tcc 49 29 20 19.3 osh-native-souffle
3 no-host configure.util-linux 14,051 8,935 5,592 30.0 bash
11 no-host configure.util-linux 14,938 9,217 6,217 30.1 dash
19 no-host configure.util-linux 31,709 21,002 11,804 30.3 osh-cpython
27 no-host configure.util-linux 14,408 8,639 5,956 30.0 osh-native
35 no-host configure.util-linux 14,301 8,566 5,934 30.1 osh-native-souffle
6 no-host configure.yash 1,839 1,086 762 24.4 bash
14 no-host configure.yash 1,778 1,049 733 24.4 dash
22 no-host configure.yash 2,483 1,513 1,011 24.5 osh-cpython
30 no-host configure.yash 1,826 1,080 751 24.2 osh-native
38 no-host configure.yash 1,830 1,082 751 24.5 osh-native-souffle
0 no-host hello-world 1 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 52 4 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 6.0 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,544 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,709 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,172 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,324 0 0 0 8 0 1,994 123 bash
9 no-host bin-true 65,345 0 0 0 8 0 1,985 50 dash
17 no-host bin-true 772,241 0 0 0 8 0 1,999 174 osh-cpython
25 no-host bin-true 127,241 0 0 0 16 0 1,992 88 osh-native
33 no-host bin-true 123,298 0 0 0 16 0 1,987 51 osh-native-souffle
2 no-host configure.cpython 2,218,601 0 0 0 32,928 0 14,563 1,104 bash
10 no-host configure.cpython 2,242,960 0 0 0 32,992 0 14,708 1,028 dash
18 no-host configure.cpython 6,188,123 0 0 0 27,512 0 13,268 1,063 osh-cpython
26 no-host configure.cpython 2,224,963 0 0 0 27,520 0 13,212 913 osh-native
34 no-host configure.cpython 2,211,122 0 0 0 27,520 0 13,155 946 osh-native-souffle
4 no-host configure.ocaml 410,312 0 0 0 5,120 0 1,947 141 bash
12 no-host configure.ocaml 390,962 0 0 0 5,112 0 1,873 152 dash
20 no-host configure.ocaml 644,510 0 0 0 5,112 0 1,859 159 osh-cpython
28 no-host configure.ocaml 412,908 0 0 0 5,120 0 1,928 191 osh-native
36 no-host configure.ocaml 412,705 0 0 0 5,120 0 1,928 218 osh-native-souffle
5 no-host configure.tcc 6,547 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 24,039 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,958 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,901 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,105,712 0 0 0 42,400 0 18,574 946 bash
11 no-host configure.util-linux 2,263,566 1 0 0 42,584 0 17,450 980 dash
19 no-host configure.util-linux 5,381,036 11 0 0 39,120 0 16,956 1,225 osh-cpython
27 no-host configure.util-linux 1,994,388 1 0 0 39,120 0 16,975 917 osh-native
35 no-host configure.util-linux 1,986,460 1 0 0 39,128 0 17,021 900 osh-native-souffle
6 no-host configure.yash 256,568 0 0 0 4,120 0 868 84 bash
14 no-host configure.yash 244,032 0 0 0 3,720 0 864 76 dash
22 no-host configure.yash 387,396 0 0 0 3,728 0 856 93 osh-cpython
30 no-host configure.yash 257,857 0 0 0 3,736 0 850 65 osh-native
38 no-host configure.yash 258,158 0 0 0 3,736 0 851 94 osh-native-souffle
0 no-host hello-world 148 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,944 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 336 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-56485852
dash dash-0ebcf347
osh-cpython osh-a669a965
osh-native osh-7b509d8d
osh-native-souffle osh-0b25b048
host label host id
no-host no-host-556df3ee