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 10 472 22 21 24.64 1.17
bin-true no-host 673 548 2,292 818 813 3.40 1.21
configure.cpython no-host 15,057 15,194 29,298 15,398 15,529 1.95 1.02
configure.ocaml no-host 3,835 3,768 4,709 3,838 3,844 1.23 1.00
configure.tcc no-host 49 42 206 49 48 4.21 1.01
configure.util-linux no-host 14,086 14,944 31,563 14,541 14,416 2.24 1.03
configure.yash no-host 1,845 1,776 2,494 1,835 1,826 1.35 0.99
hello-world no-host 2 1 56 3 3 36.14 1.82

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,534 1,135 23,705 3,218 3,099 9.35 1.27
bin-true no-host 104,362 65,391 771,532 126,299 125,315 7.39 1.21
configure.cpython no-host 2,220,358 2,238,834 6,201,077 2,218,325 2,215,118 2.79 1.00
configure.ocaml no-host 410,696 391,465 645,342 412,647 412,233 1.57 1.00
configure.tcc no-host 6,549 5,471 24,065 6,992 6,933 3.67 1.07
configure.util-linux no-host 2,105,471 2,261,158 5,390,566 1,996,561 1,991,844 2.56 0.95
configure.yash no-host 256,128 245,179 388,407 257,786 257,694 1.52 1.01
hello-world no-host 151 84 3,949 343 337 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.3 3.4 22.7 9.2 8.8 5.25 2.12
bin-true no-host 2.9 1.4 18.4 8.1 7.7 6.37 2.82
configure.cpython no-host 27.3 27.4 27.5 27.4 27.3 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.3 20.6 1.00 0.99
configure.tcc no-host 19.1 19.3 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.0 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.6 18.2 6.3 5.9 6.62 2.29

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 818 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,398 2 64 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,541 3 63 21.2 30.0 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,838 1 2 2.6 20.3 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,835 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 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,529 1 61 14.9 27.3 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,416 3 61 21.2 30.1 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,844 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 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,826 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.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 19 14 6 4.3 bash
15 no-host abuild-print-help 10 4 5 3.4 dash
23 no-host abuild-print-help 472 425 49 22.7 osh-cpython
31 no-host abuild-print-help 22 16 7 9.2 osh-native
39 no-host abuild-print-help 21 13 8 8.8 osh-native-souffle
1 no-host bin-true 673 501 204 2.9 bash
9 no-host bin-true 548 411 145 1.4 dash
17 no-host bin-true 2,292 1,457 1,090 18.4 osh-cpython
25 no-host bin-true 818 580 251 8.1 osh-native
33 no-host bin-true 813 556 270 7.7 osh-native-souffle
2 no-host configure.cpython 15,057 8,977 6,469 27.3 bash
10 no-host configure.cpython 15,194 9,062 6,546 27.4 dash
18 no-host configure.cpython 29,298 17,758 13,386 27.5 osh-cpython
26 no-host configure.cpython 15,398 9,195 6,468 27.4 osh-native
34 no-host configure.cpython 15,529 8,972 6,653 27.3 osh-native-souffle
4 no-host configure.ocaml 3,835 1,690 1,187 20.6 bash
12 no-host configure.ocaml 3,768 1,546 1,240 20.6 dash
20 no-host configure.ocaml 4,709 2,302 1,617 20.6 osh-cpython
28 no-host configure.ocaml 3,838 1,599 1,277 20.3 osh-native
36 no-host configure.ocaml 3,844 1,585 1,294 20.6 osh-native-souffle
5 no-host configure.tcc 49 35 14 19.1 bash
13 no-host configure.tcc 42 16 27 19.3 dash
21 no-host configure.tcc 206 155 54 19.4 osh-cpython
29 no-host configure.tcc 49 27 23 19.4 osh-native
37 no-host configure.tcc 48 25 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,086 8,990 5,570 30.1 bash
11 no-host configure.util-linux 14,944 9,211 6,212 30.1 dash
19 no-host configure.util-linux 31,563 21,119 11,506 30.0 osh-cpython
27 no-host configure.util-linux 14,541 8,734 5,994 30.0 osh-native
35 no-host configure.util-linux 14,416 8,526 6,079 30.1 osh-native-souffle
6 no-host configure.yash 1,845 1,064 789 24.4 bash
14 no-host configure.yash 1,776 1,044 735 24.2 dash
22 no-host configure.yash 2,494 1,503 1,033 24.4 osh-cpython
30 no-host configure.yash 1,835 988 850 24.2 osh-native
38 no-host configure.yash 1,826 999 831 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.6 dash
16 no-host hello-world 56 44 12 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,534 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,135 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,705 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,218 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,362 0 0 0 8 0 1,997 159 bash
9 no-host bin-true 65,391 0 0 0 8 0 1,993 112 dash
17 no-host bin-true 771,532 0 0 0 8 0 2,002 106 osh-cpython
25 no-host bin-true 126,299 0 0 0 16 0 1,993 145 osh-native
33 no-host bin-true 125,315 0 0 0 16 0 1,993 199 osh-native-souffle
2 no-host configure.cpython 2,220,358 0 0 0 32,928 0 14,439 1,047 bash
10 no-host configure.cpython 2,238,834 0 0 0 32,992 0 14,690 997 dash
18 no-host configure.cpython 6,201,077 0 0 0 27,512 0 13,289 1,184 osh-cpython
26 no-host configure.cpython 2,218,325 0 0 0 27,520 0 13,269 1,194 osh-native
34 no-host configure.cpython 2,215,118 0 0 0 27,520 0 13,198 913 osh-native-souffle
4 no-host configure.ocaml 410,696 0 0 0 5,120 0 1,943 151 bash
12 no-host configure.ocaml 391,465 0 0 0 5,112 0 1,866 142 dash
20 no-host configure.ocaml 645,342 0 0 0 5,112 0 1,860 190 osh-cpython
28 no-host configure.ocaml 412,647 0 0 0 5,120 0 1,932 166 osh-native
36 no-host configure.ocaml 412,233 0 0 0 5,120 0 1,932 176 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 48 11 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 10 dash
21 no-host configure.tcc 24,065 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,992 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,933 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,105,471 1 0 0 42,400 0 18,660 1,079 bash
11 no-host configure.util-linux 2,261,158 0 0 0 42,584 0 17,474 1,151 dash
19 no-host configure.util-linux 5,390,566 6 0 0 39,112 0 16,968 1,159 osh-cpython
27 no-host configure.util-linux 1,996,561 3 0 0 39,120 0 16,999 902 osh-native
35 no-host configure.util-linux 1,991,844 1 0 0 39,136 0 16,988 1,064 osh-native-souffle
6 no-host configure.yash 256,128 0 0 0 4,120 0 869 78 bash
14 no-host configure.yash 245,179 0 0 0 3,720 0 870 79 dash
22 no-host configure.yash 388,407 0 0 0 3,728 0 856 117 osh-cpython
30 no-host configure.yash 257,786 0 0 0 3,736 0 850 81 osh-native
38 no-host configure.yash 257,694 0 0 0 3,736 0 851 83 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,949 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 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3f227a2b
dash dash-0ebcf347
osh-cpython osh-f0d6e18c
osh-native osh-603ca52d
osh-native-souffle osh-8e469463
host label host id
no-host no-host-556df3ee