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 460 22 21 24.08 1.17
bin-true no-host 672 542 2,326 804 809 3.46 1.20
configure.cpython no-host 15,017 15,066 28,696 15,131 15,279 1.91 1.01
configure.ocaml no-host 3,783 3,732 4,652 3,797 3,804 1.23 1.00
configure.tcc no-host 48 41 204 49 49 4.26 1.02
configure.util-linux no-host 13,931 14,858 31,601 14,344 14,269 2.27 1.03
configure.yash no-host 1,809 1,770 2,460 1,817 1,814 1.36 1.00
hello-world no-host 2 1 57 3 3 37.63 1.92

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,566 1,100 23,668 3,205 3,096 9.22 1.25
bin-true no-host 105,358 66,424 775,677 125,295 126,222 7.36 1.19
configure.cpython no-host 2,223,538 2,239,691 6,214,839 2,217,202 2,204,738 2.80 1.00
configure.ocaml no-host 410,449 391,091 646,959 413,697 412,049 1.58 1.01
configure.tcc no-host 6,580 5,464 24,061 6,930 6,903 3.66 1.05
configure.util-linux no-host 2,102,413 2,262,937 5,388,898 1,993,823 1,990,695 2.56 0.95
configure.yash no-host 256,728 244,167 389,271 257,814 258,046 1.52 1.00
hello-world no-host 153 81 3,942 342 337 25.76 2.24

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.3 22.7 9.2 8.7 5.25 2.12
bin-true no-host 3.0 1.6 18.4 8.0 7.9 6.09 2.65
configure.cpython no-host 27.5 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.9 1.00 0.99
configure.tcc no-host 19.3 19.4 19.1 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.3 30.1 30.3 30.0 1.00 1.01
configure.yash no-host 24.4 24.2 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.37 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 804 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,131 1 61 14.9 27.5 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,344 3 61 21.2 30.3 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,797 1 2 2.6 20.4 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.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,817 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.2 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 809 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,279 1 61 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,269 3 60 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,804 1 2 2.6 20.9 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.4 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.2 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 16 3 4.3 bash
15 no-host abuild-print-help 9 10 0 3.3 dash
23 no-host abuild-print-help 460 422 40 22.7 osh-cpython
31 no-host abuild-print-help 22 14 8 9.2 osh-native
39 no-host abuild-print-help 21 14 8 8.7 osh-native-souffle
1 no-host bin-true 672 502 202 3.0 bash
9 no-host bin-true 542 433 118 1.6 dash
17 no-host bin-true 2,326 1,494 1,097 18.4 osh-cpython
25 no-host bin-true 804 589 233 8.0 osh-native
33 no-host bin-true 809 571 252 7.9 osh-native-souffle
2 no-host configure.cpython 15,017 8,972 6,436 27.5 bash
10 no-host configure.cpython 15,066 9,136 6,355 27.4 dash
18 no-host configure.cpython 28,696 17,582 12,982 27.4 osh-cpython
26 no-host configure.cpython 15,131 8,978 6,422 27.5 osh-native
34 no-host configure.cpython 15,279 8,989 6,431 27.4 osh-native-souffle
4 no-host configure.ocaml 3,783 1,681 1,142 20.6 bash
12 no-host configure.ocaml 3,732 1,590 1,160 20.6 dash
20 no-host configure.ocaml 4,652 2,214 1,651 20.6 osh-cpython
28 no-host configure.ocaml 3,797 1,719 1,119 20.4 osh-native
36 no-host configure.ocaml 3,804 1,616 1,225 20.9 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 41 20 21 19.4 dash
21 no-host configure.tcc 204 141 66 19.1 osh-cpython
29 no-host configure.tcc 49 32 18 19.3 osh-native
37 no-host configure.tcc 49 34 16 19.4 osh-native-souffle
3 no-host configure.util-linux 13,931 8,765 5,647 30.0 bash
11 no-host configure.util-linux 14,858 9,172 6,177 30.3 dash
19 no-host configure.util-linux 31,601 21,201 11,515 30.1 osh-cpython
27 no-host configure.util-linux 14,344 8,702 5,841 30.3 osh-native
35 no-host configure.util-linux 14,269 8,613 5,851 30.0 osh-native-souffle
6 no-host configure.yash 1,809 1,068 751 24.4 bash
14 no-host configure.yash 1,770 1,024 750 24.2 dash
22 no-host configure.yash 2,460 1,548 954 24.4 osh-cpython
30 no-host configure.yash 1,817 1,034 786 24.2 osh-native
38 no-host configure.yash 1,814 1,031 787 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 41 16 18.4 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,566 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,668 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,358 0 0 0 8 0 1,990 119 bash
9 no-host bin-true 66,424 0 0 0 8 0 1,988 31 dash
17 no-host bin-true 775,677 0 0 0 8 0 1,996 294 osh-cpython
25 no-host bin-true 125,295 0 0 0 16 0 1,993 65 osh-native
33 no-host bin-true 126,222 0 0 0 16 0 1,988 65 osh-native-souffle
2 no-host configure.cpython 2,223,538 0 0 0 32,952 0 14,530 1,047 bash
10 no-host configure.cpython 2,239,691 0 0 0 32,992 0 14,627 1,157 dash
18 no-host configure.cpython 6,214,839 0 0 0 27,512 0 13,275 1,075 osh-cpython
26 no-host configure.cpython 2,217,202 0 0 0 27,520 0 13,151 972 osh-native
34 no-host configure.cpython 2,204,738 1 0 0 27,520 0 13,252 973 osh-native-souffle
4 no-host configure.ocaml 410,449 0 0 0 5,120 0 1,950 154 bash
12 no-host configure.ocaml 391,091 0 0 0 5,112 0 1,871 154 dash
20 no-host configure.ocaml 646,959 0 0 0 5,112 0 1,851 146 osh-cpython
28 no-host configure.ocaml 413,697 0 0 0 5,120 0 1,926 169 osh-native
36 no-host configure.ocaml 412,049 0 0 0 5,120 0 1,931 155 osh-native-souffle
5 no-host configure.tcc 6,580 0 0 0 104 0 48 9 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,061 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,930 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,903 0 0 0 104 0 47 10 osh-native-souffle
3 no-host configure.util-linux 2,102,413 1 0 0 42,400 0 18,592 920 bash
11 no-host configure.util-linux 2,262,937 1 0 0 42,584 0 17,423 935 dash
19 no-host configure.util-linux 5,388,898 15 0 0 39,112 0 16,963 1,211 osh-cpython
27 no-host configure.util-linux 1,993,823 0 0 0 39,120 0 17,012 1,138 osh-native
35 no-host configure.util-linux 1,990,695 0 0 0 39,128 0 16,959 933 osh-native-souffle
6 no-host configure.yash 256,728 0 0 0 4,120 0 871 85 bash
14 no-host configure.yash 244,167 0 0 0 3,720 0 864 79 dash
22 no-host configure.yash 389,271 0 0 0 3,728 0 856 96 osh-cpython
30 no-host configure.yash 257,814 0 0 0 3,736 0 847 88 osh-native
38 no-host configure.yash 258,046 0 0 0 3,736 0 851 79 osh-native-souffle
0 no-host hello-world 153 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,942 0 0 0 8 0 7 5 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-254f26de
dash dash-0ebcf347
osh-cpython osh-928642e6
osh-native osh-89a1a7ab
osh-native-souffle osh-7e9ed778
host label host id
no-host no-host-556df3ee