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 20 10 477 22 22 24.36 1.13
bin-true no-host 683 554 2,317 822 813 3.39 1.20
configure.cpython no-host 15,452 15,436 29,498 15,673 15,754 1.91 1.01
configure.ocaml no-host 3,888 3,829 4,774 3,884 3,907 1.23 1.00
configure.tcc no-host 48 42 206 50 49 4.30 1.05
configure.util-linux no-host 14,365 15,196 32,410 14,734 14,660 2.26 1.03
configure.yash no-host 1,862 1,805 2,529 1,879 1,869 1.36 1.01
hello-world no-host 2 1 59 3 3 38.91 1.89

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,546 1,131 23,674 3,206 3,095 9.30 1.26
bin-true no-host 109,394 66,459 773,733 125,247 125,218 7.07 1.14
configure.cpython no-host 2,219,280 2,248,096 6,211,816 2,210,544 2,210,550 2.80 1.00
configure.ocaml no-host 410,628 391,175 647,539 412,716 412,111 1.58 1.01
configure.tcc no-host 6,570 5,460 24,090 6,982 6,932 3.67 1.06
configure.util-linux no-host 2,101,494 2,263,184 5,386,172 1,997,849 1,993,616 2.56 0.95
configure.yash no-host 254,931 243,547 389,499 257,834 257,399 1.53 1.01
hello-world no-host 151 84 3,948 343 340 26.15 2.27

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.4 22.6 9.0 8.8 5.06 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.7 6.37 2.77
configure.cpython no-host 27.3 27.5 27.4 27.4 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.3 19.4 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.0 30.1 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 18.2 6.3 6.0 6.32 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 822 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,673 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,734 3 64 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,884 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 50 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,879 1 2 2.5 24.4 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,754 1 63 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,660 3 63 21.2 30.3 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,907 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,869 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 22 1 2 2.8 8.8 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 20 13 8 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 477 413 67 22.6 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 22 13 9 8.8 osh-native-souffle
1 no-host bin-true 683 494 223 2.9 bash
9 no-host bin-true 554 421 141 1.4 dash
17 no-host bin-true 2,317 1,431 1,153 18.4 osh-cpython
25 no-host bin-true 822 578 259 8.0 osh-native
33 no-host bin-true 813 582 245 7.7 osh-native-souffle
2 no-host configure.cpython 15,452 9,304 6,494 27.3 bash
10 no-host configure.cpython 15,436 9,116 6,745 27.5 dash
18 no-host configure.cpython 29,498 17,977 13,431 27.4 osh-cpython
26 no-host configure.cpython 15,673 9,107 6,825 27.4 osh-native
34 no-host configure.cpython 15,754 9,213 6,652 27.4 osh-native-souffle
4 no-host configure.ocaml 3,888 1,721 1,202 20.6 bash
12 no-host configure.ocaml 3,829 1,638 1,210 20.6 dash
20 no-host configure.ocaml 4,774 2,287 1,698 20.6 osh-cpython
28 no-host configure.ocaml 3,884 1,628 1,295 20.6 osh-native
36 no-host configure.ocaml 3,907 1,627 1,317 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 42 24 17 19.4 dash
21 no-host configure.tcc 206 129 81 19.4 osh-cpython
29 no-host configure.tcc 50 34 17 19.3 osh-native
37 no-host configure.tcc 49 42 7 19.3 osh-native-souffle
3 no-host configure.util-linux 14,365 9,012 5,832 30.0 bash
11 no-host configure.util-linux 15,196 9,307 6,378 30.1 dash
19 no-host configure.util-linux 32,410 21,536 11,977 30.0 osh-cpython
27 no-host configure.util-linux 14,734 8,760 6,180 30.1 osh-native
35 no-host configure.util-linux 14,660 8,728 6,113 30.3 osh-native-souffle
6 no-host configure.yash 1,862 1,123 746 24.5 bash
14 no-host configure.yash 1,805 967 841 24.4 dash
22 no-host configure.yash 2,529 1,545 1,027 24.2 osh-cpython
30 no-host configure.yash 1,879 1,051 831 24.4 osh-native
38 no-host configure.yash 1,869 1,111 762 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 59 30 29 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,546 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,131 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,674 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,095 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 109,394 0 0 0 8 0 1,988 62 bash
9 no-host bin-true 66,459 0 0 0 8 0 1,982 40 dash
17 no-host bin-true 773,733 0 0 0 8 0 1,998 222 osh-cpython
25 no-host bin-true 125,247 0 0 0 16 0 1,993 67 osh-native
33 no-host bin-true 125,218 0 0 0 16 0 1,988 102 osh-native-souffle
2 no-host configure.cpython 2,219,280 0 0 0 32,928 0 14,519 961 bash
10 no-host configure.cpython 2,248,096 1 0 0 32,992 0 14,659 1,059 dash
18 no-host configure.cpython 6,211,816 1 0 0 27,512 0 13,269 1,242 osh-cpython
26 no-host configure.cpython 2,210,544 0 0 0 27,520 0 13,214 977 osh-native
34 no-host configure.cpython 2,210,550 0 0 0 27,520 0 13,281 932 osh-native-souffle
4 no-host configure.ocaml 410,628 0 0 0 5,120 0 1,960 153 bash
12 no-host configure.ocaml 391,175 0 0 0 5,112 0 1,921 162 dash
20 no-host configure.ocaml 647,539 0 0 0 5,112 0 1,850 177 osh-cpython
28 no-host configure.ocaml 412,716 0 0 0 5,120 0 1,933 182 osh-native
36 no-host configure.ocaml 412,111 0 0 0 5,120 0 1,933 144 osh-native-souffle
5 no-host configure.tcc 6,570 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,090 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,982 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,932 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,101,494 0 0 0 42,408 0 18,613 1,032 bash
11 no-host configure.util-linux 2,263,184 0 0 0 42,592 0 17,437 1,024 dash
19 no-host configure.util-linux 5,386,172 4 0 0 39,136 0 16,967 1,327 osh-cpython
27 no-host configure.util-linux 1,997,849 1 0 0 39,120 0 17,043 899 osh-native
35 no-host configure.util-linux 1,993,616 1 0 0 39,136 0 16,991 940 osh-native-souffle
6 no-host configure.yash 254,931 0 0 0 4,120 0 872 79 bash
14 no-host configure.yash 243,547 0 0 0 3,720 0 867 78 dash
22 no-host configure.yash 389,499 0 0 0 3,728 0 853 101 osh-cpython
30 no-host configure.yash 257,834 0 0 0 3,736 0 849 78 osh-native
38 no-host configure.yash 257,399 0 0 0 3,736 0 848 94 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 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-31d66735
dash dash-0ebcf347
osh-cpython osh-6053c39c
osh-native osh-3700a18b
osh-native-souffle osh-7f967ffa
host label host id
no-host no-host-556df3ee