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 9 471 22 21 24.08 1.13
bin-true no-host 686 548 2,291 818 805 3.34 1.19
configure.cpython no-host 14,989 15,087 28,723 15,403 15,359 1.92 1.03
configure.ocaml no-host 3,833 3,753 4,716 3,816 3,839 1.23 1.00
configure.tcc no-host 48 41 204 49 48 4.30 1.04
configure.util-linux no-host 14,060 14,869 31,395 14,259 14,652 2.23 1.01
configure.yash no-host 1,907 1,757 2,488 1,804 1,866 1.30 0.95
hello-world no-host 2 1 56 3 3 36.97 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,560 1,121 23,870 3,169 3,091 9.32 1.24
bin-true no-host 107,326 66,369 771,510 125,259 125,224 7.19 1.17
configure.cpython no-host 2,219,142 2,242,520 6,246,594 2,220,042 2,206,790 2.81 1.00
configure.ocaml no-host 410,496 391,122 647,621 412,911 412,530 1.58 1.01
configure.tcc no-host 6,570 5,483 24,117 6,976 6,914 3.67 1.06
configure.util-linux no-host 2,100,385 2,260,812 5,396,222 1,995,577 1,993,138 2.57 0.95
configure.yash no-host 256,140 243,615 389,544 258,237 257,847 1.52 1.01
hello-world no-host 150 81 3,939 345 339 26.26 2.30

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.5 5.06 2.03
bin-true no-host 3.0 1.6 18.4 7.9 7.6 6.09 2.61
configure.cpython no-host 27.4 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.4 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 29.9 30.0 30.3 30.3 30.3 1.01 1.01
configure.yash no-host 24.4 24.4 24.2 24.4 24.2 0.99 1.00
hello-world no-host 2.8 1.4 18.4 6.2 6.0 6.67 2.24

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 818 1 2 2.6 7.9 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,403 1 63 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,259 3 59 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,816 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,804 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 805 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,359 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,652 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,839 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 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,641 14,425 271 0 50,000 0
configure.yash no-host 1,866 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.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 20 19 1 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 471 415 60 22.6 osh-cpython
31 no-host abuild-print-help 22 17 5 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.5 osh-native-souffle
1 no-host bin-true 686 514 203 3.0 bash
9 no-host bin-true 548 418 138 1.6 dash
17 no-host bin-true 2,291 1,413 1,134 18.4 osh-cpython
25 no-host bin-true 818 569 264 7.9 osh-native
33 no-host bin-true 805 570 250 7.6 osh-native-souffle
2 no-host configure.cpython 14,989 9,132 6,265 27.4 bash
10 no-host configure.cpython 15,087 9,094 6,420 27.4 dash
18 no-host configure.cpython 28,723 17,723 12,852 27.4 osh-cpython
26 no-host configure.cpython 15,403 8,929 6,725 27.4 osh-native
34 no-host configure.cpython 15,359 9,047 6,445 27.4 osh-native-souffle
4 no-host configure.ocaml 3,833 1,620 1,251 20.4 bash
12 no-host configure.ocaml 3,753 1,552 1,219 20.6 dash
20 no-host configure.ocaml 4,716 2,310 1,616 20.6 osh-cpython
28 no-host configure.ocaml 3,816 1,667 1,185 20.6 osh-native
36 no-host configure.ocaml 3,839 1,612 1,265 20.4 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.3 bash
13 no-host configure.tcc 41 24 17 19.3 dash
21 no-host configure.tcc 204 165 43 19.3 osh-cpython
29 no-host configure.tcc 49 33 17 19.4 osh-native
37 no-host configure.tcc 48 27 22 19.3 osh-native-souffle
3 no-host configure.util-linux 14,060 8,860 5,685 29.9 bash
11 no-host configure.util-linux 14,869 9,033 6,319 30.0 dash
19 no-host configure.util-linux 31,395 20,983 11,503 30.3 osh-cpython
27 no-host configure.util-linux 14,259 8,650 5,796 30.3 osh-native
35 no-host configure.util-linux 14,652 8,808 6,027 30.3 osh-native-souffle
6 no-host configure.yash 1,907 1,116 796 24.4 bash
14 no-host configure.yash 1,757 967 793 24.4 dash
22 no-host configure.yash 2,488 1,520 1,010 24.2 osh-cpython
30 no-host configure.yash 1,804 1,030 778 24.4 osh-native
38 no-host configure.yash 1,866 1,087 783 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 47 9 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 0 3 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,560 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,121 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,870 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,169 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,326 0 0 0 8 0 1,993 151 bash
9 no-host bin-true 66,369 0 0 0 8 0 1,993 33 dash
17 no-host bin-true 771,510 0 0 0 8 0 1,993 94 osh-cpython
25 no-host bin-true 125,259 0 0 0 16 0 1,991 52 osh-native
33 no-host bin-true 125,224 0 0 0 16 0 1,995 43 osh-native-souffle
2 no-host configure.cpython 2,219,142 1 0 0 32,928 0 14,522 957 bash
10 no-host configure.cpython 2,242,520 0 0 0 32,992 0 14,596 1,147 dash
18 no-host configure.cpython 6,246,594 0 0 0 27,512 0 13,277 1,163 osh-cpython
26 no-host configure.cpython 2,220,042 0 0 0 27,520 0 13,238 1,131 osh-native
34 no-host configure.cpython 2,206,790 0 0 0 27,520 0 13,235 1,055 osh-native-souffle
4 no-host configure.ocaml 410,496 0 0 0 5,120 0 1,947 139 bash
12 no-host configure.ocaml 391,122 0 0 0 5,112 0 1,903 166 dash
20 no-host configure.ocaml 647,621 0 0 0 5,112 0 1,862 173 osh-cpython
28 no-host configure.ocaml 412,911 0 0 0 5,120 0 1,921 169 osh-native
36 no-host configure.ocaml 412,530 0 0 0 5,120 0 1,927 141 osh-native-souffle
5 no-host configure.tcc 6,570 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,117 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,100,385 1 0 0 42,400 0 18,585 1,030 bash
11 no-host configure.util-linux 2,260,812 2 0 0 42,592 0 17,588 1,136 dash
19 no-host configure.util-linux 5,396,222 7 0 0 39,112 0 16,966 1,230 osh-cpython
27 no-host configure.util-linux 1,995,577 0 0 0 39,120 0 16,938 1,025 osh-native
35 no-host configure.util-linux 1,993,138 0 0 0 39,128 0 16,942 914 osh-native-souffle
6 no-host configure.yash 256,140 0 0 0 4,120 0 878 70 bash
14 no-host configure.yash 243,615 0 0 0 3,720 0 871 80 dash
22 no-host configure.yash 389,544 0 0 0 3,728 0 855 80 osh-cpython
30 no-host configure.yash 258,237 0 0 0 3,736 0 849 77 osh-native
38 no-host configure.yash 257,847 0 0 0 3,736 0 847 80 osh-native-souffle
0 no-host hello-world 150 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,939 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b150ecf5
dash dash-0ebcf347
osh-cpython osh-a2fb8d2b
osh-native osh-bfc498a2
osh-native-souffle osh-e24641bd
host label host id
no-host no-host-556df3ee