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 21 10 471 22 21 22.66 1.07
bin-true no-host 678 557 2,349 820 818 3.47 1.21
configure.cpython no-host 15,358 15,559 29,729 15,577 15,804 1.94 1.01
configure.ocaml no-host 3,884 3,877 4,734 3,895 3,913 1.22 1.00
configure.tcc no-host 49 42 206 50 50 4.15 1.01
configure.util-linux no-host 14,369 15,441 31,852 14,738 14,886 2.22 1.03
configure.yash no-host 1,901 1,844 2,518 1,855 1,851 1.32 0.98
hello-world no-host 2 1 57 3 3 36.83 2.12

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,582 1,107 23,625 3,162 3,089 9.15 1.22
bin-true no-host 105,288 66,478 773,556 126,163 125,197 7.35 1.20
configure.cpython no-host 2,224,192 2,247,579 6,213,918 2,220,263 2,216,083 2.79 1.00
configure.ocaml no-host 410,471 390,946 645,847 413,140 412,747 1.57 1.01
configure.tcc no-host 6,558 5,458 23,971 6,956 6,908 3.66 1.06
configure.util-linux no-host 2,095,561 2,267,912 5,358,749 1,997,216 1,986,189 2.56 0.95
configure.yash no-host 256,745 244,131 388,174 258,437 257,676 1.51 1.01
hello-world no-host 150 82 3,993 346 340 26.62 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.5 3.5 22.7 9.0 8.7 5.09 2.03
bin-true no-host 3.0 1.4 18.5 7.9 7.6 6.12 2.61
configure.cpython no-host 27.3 27.5 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.3 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 29.9 30.1 30.3 30.3 30.3 1.01 1.01
configure.yash no-host 24.2 24.4 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.33 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,791 3,791 0 694 1,863 1,234 2 0 50,000 0
bin-true no-host 820 1 2 2.6 7.9 153,755 12,331 2,896 8,743 76,327 68,685 3,008 3 50,000 0
configure.cpython no-host 15,577 1 67 14.9 27.4 1,771,756 49,614 28,521 85,415 878,120 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,738 3 66 21.2 30.3 2,702,522 53,775 65,700 108,691 1,290,645 1,303,186 32,239 41 131,400 1
configure.ocaml no-host 3,895 1 2 2.6 20.6 150,089 11,121 5,216 7,508 70,974 71,607 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,595 30,595 0 1,518 14,646 14,431 271 0 50,000 0
configure.yash no-host 1,855 1 2 2.5 24.4 139,421 8,033 6,695 5,989 67,947 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,301 64,412 42,622 4,532 54,441 57,328 277 3 85,244 1
hello-world no-host 3 0 0 0.2 5.9 3,790 3,790 0 695 1,863 1,232 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.6 153,754 12,120 2,834 8,744 76,327 68,683 3,008 3 50,000 0
configure.cpython no-host 15,804 2 66 14.9 27.5 1,771,755 49,072 28,459 85,416 878,120 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,886 3 66 21.2 30.3 2,702,522 53,702 65,638 108,693 1,290,645 1,303,184 32,239 41 131,276 1
configure.ocaml no-host 3,913 1 2 2.6 20.6 150,089 11,059 5,154 7,510 70,974 71,605 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,595 30,595 0 1,520 14,646 14,429 271 0 50,000 0
configure.yash no-host 1,851 1 2 2.5 24.4 139,421 7,971 6,633 5,991 67,947 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,300 64,350 42,560 4,533 54,441 57,326 277 3 85,120 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 21 14 6 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 471 431 43 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
39 no-host abuild-print-help 21 18 4 8.7 osh-native-souffle
1 no-host bin-true 678 486 223 3.0 bash
9 no-host bin-true 557 421 143 1.4 dash
17 no-host bin-true 2,349 1,497 1,118 18.5 osh-cpython
25 no-host bin-true 820 559 276 7.9 osh-native
33 no-host bin-true 818 582 251 7.6 osh-native-souffle
2 no-host configure.cpython 15,358 9,216 6,559 27.3 bash
10 no-host configure.cpython 15,559 9,489 6,498 27.5 dash
18 no-host configure.cpython 29,729 18,236 13,455 27.4 osh-cpython
26 no-host configure.cpython 15,577 9,138 6,717 27.4 osh-native
34 no-host configure.cpython 15,804 9,001 6,929 27.5 osh-native-souffle
4 no-host configure.ocaml 3,884 1,648 1,277 20.6 bash
12 no-host configure.ocaml 3,877 1,627 1,270 20.3 dash
20 no-host configure.ocaml 4,734 2,332 1,622 20.4 osh-cpython
28 no-host configure.ocaml 3,895 1,651 1,285 20.6 osh-native
36 no-host configure.ocaml 3,913 1,714 1,235 20.6 osh-native-souffle
5 no-host configure.tcc 49 23 27 19.3 bash
13 no-host configure.tcc 42 35 8 19.3 dash
21 no-host configure.tcc 206 156 53 19.3 osh-cpython
29 no-host configure.tcc 50 33 18 19.3 osh-native
37 no-host configure.tcc 50 29 21 19.3 osh-native-souffle
3 no-host configure.util-linux 14,369 9,008 5,851 29.9 bash
11 no-host configure.util-linux 15,441 9,442 6,510 30.1 dash
19 no-host configure.util-linux 31,852 21,422 11,541 30.3 osh-cpython
27 no-host configure.util-linux 14,738 8,880 6,065 30.3 osh-native
35 no-host configure.util-linux 14,886 8,977 6,113 30.3 osh-native-souffle
6 no-host configure.yash 1,901 1,065 842 24.2 bash
14 no-host configure.yash 1,844 1,032 815 24.4 dash
22 no-host configure.yash 2,518 1,470 1,091 24.2 osh-cpython
30 no-host configure.yash 1,855 1,070 788 24.4 osh-native
38 no-host configure.yash 1,851 1,101 754 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 37 20 18.2 osh-cpython
24 no-host hello-world 3 0 3 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,582 0 0 0 16 0 41 6 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,625 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,162 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,288 0 0 0 8 0 1,989 52 bash
9 no-host bin-true 66,478 0 0 0 8 0 1,987 78 dash
17 no-host bin-true 773,556 0 0 0 8 0 1,981 126 osh-cpython
25 no-host bin-true 126,163 0 0 0 16 0 1,993 80 osh-native
33 no-host bin-true 125,197 0 0 0 16 0 1,994 243 osh-native-souffle
2 no-host configure.cpython 2,224,192 0 0 0 32,928 0 14,553 969 bash
10 no-host configure.cpython 2,247,579 0 0 0 32,992 0 14,632 981 dash
18 no-host configure.cpython 6,213,918 0 0 0 27,512 0 13,294 1,054 osh-cpython
26 no-host configure.cpython 2,220,263 2 0 0 27,520 0 13,285 1,022 osh-native
34 no-host configure.cpython 2,216,083 1 0 0 27,520 0 13,374 941 osh-native-souffle
4 no-host configure.ocaml 410,471 0 0 0 5,120 0 1,935 176 bash
12 no-host configure.ocaml 390,946 0 0 0 5,112 0 1,873 131 dash
20 no-host configure.ocaml 645,847 0 0 0 5,112 0 1,862 187 osh-cpython
28 no-host configure.ocaml 413,140 0 0 0 5,120 0 1,929 163 osh-native
36 no-host configure.ocaml 412,747 0 0 0 5,120 0 1,935 174 osh-native-souffle
5 no-host configure.tcc 6,558 0 0 0 104 0 49 10 bash
13 no-host configure.tcc 5,458 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,971 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 9 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,095,561 0 0 0 42,400 0 18,610 903 bash
11 no-host configure.util-linux 2,267,912 0 0 0 42,584 0 17,511 1,010 dash
19 no-host configure.util-linux 5,358,749 8 0 0 39,112 0 16,961 1,121 osh-cpython
27 no-host configure.util-linux 1,997,216 0 0 0 39,128 0 17,111 978 osh-native
35 no-host configure.util-linux 1,986,189 1 0 0 39,136 0 16,908 928 osh-native-souffle
6 no-host configure.yash 256,745 0 0 0 4,120 0 869 96 bash
14 no-host configure.yash 244,131 0 0 0 3,720 0 869 171 dash
22 no-host configure.yash 388,174 0 0 0 3,728 0 852 92 osh-cpython
30 no-host configure.yash 258,437 0 0 0 3,736 0 850 76 osh-native
38 no-host configure.yash 257,676 0 0 0 3,736 0 846 76 osh-native-souffle
0 no-host hello-world 150 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,993 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-579d22be
dash dash-0ebcf347
osh-cpython osh-987af98b
osh-native osh-8771ff37
osh-native-souffle osh-977c392d
host label host id
no-host no-host-556df3ee