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 494 22 22 25.94 1.15
bin-true no-host 681 546 2,295 817 816 3.37 1.20
configure.cpython no-host 15,385 14,963 29,229 15,435 15,534 1.90 1.00
configure.ocaml no-host 3,842 3,749 4,782 3,847 3,864 1.24 1.00
configure.tcc no-host 48 41 208 51 49 4.33 1.06
configure.util-linux no-host 14,190 14,755 32,139 14,479 14,536 2.26 1.02
configure.yash no-host 1,824 1,750 2,516 1,870 1,885 1.38 1.03
hello-world no-host 2 1 56 3 3 34.18 1.81

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,535 1,111 23,799 3,167 3,107 9.39 1.25
bin-true no-host 104,380 66,421 765,452 125,311 126,311 7.33 1.20
configure.cpython no-host 2,217,272 2,246,212 6,218,670 2,222,562 2,205,139 2.80 1.00
configure.ocaml no-host 410,279 390,848 647,769 413,319 412,321 1.58 1.01
configure.tcc no-host 6,520 5,473 24,062 6,960 6,899 3.69 1.07
configure.util-linux no-host 2,091,921 2,262,360 5,395,270 1,998,737 1,993,313 2.58 0.96
configure.yash no-host 256,673 245,034 387,916 258,614 257,543 1.51 1.01
hello-world no-host 151 85 3,951 346 337 26.17 2.29

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.8 9.0 8.3 5.12 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.7 6.09 2.70
configure.cpython no-host 27.5 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.7 20.6 1.00 1.01
configure.tcc no-host 19.3 19.3 19.3 19.1 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.1 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.4 24.4 1.01 1.00
hello-world no-host 2.6 1.4 18.0 6.3 5.8 6.85 2.40

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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,435 1 66 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,479 3 63 21.2 30.0 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,847 1 2 2.6 20.7 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.1 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,870 1 2 2.5 24.4 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.8 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.7 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,534 2 63 14.9 27.3 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,536 3 62 21.2 30.1 2,702,514 53,694 65,630 108,693 1,290,641 1,303,180 32,239 41 131,260 1
configure.ocaml no-host 3,864 1 2 2.6 20.6 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,885 1 2 2.5 24.4 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.3 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 11 9 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 494 422 74 22.8 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 22 16 7 8.3 osh-native-souffle
1 no-host bin-true 681 499 214 3.0 bash
9 no-host bin-true 546 425 131 1.4 dash
17 no-host bin-true 2,295 1,485 1,067 18.4 osh-cpython
25 no-host bin-true 817 582 249 8.1 osh-native
33 no-host bin-true 816 574 257 7.7 osh-native-souffle
2 no-host configure.cpython 15,385 9,333 6,456 27.5 bash
10 no-host configure.cpython 14,963 9,124 6,254 27.4 dash
18 no-host configure.cpython 29,229 17,785 13,345 27.4 osh-cpython
26 no-host configure.cpython 15,435 9,063 6,643 27.4 osh-native
34 no-host configure.cpython 15,534 9,183 6,438 27.3 osh-native-souffle
4 no-host configure.ocaml 3,842 1,596 1,276 20.4 bash
12 no-host configure.ocaml 3,749 1,604 1,165 20.6 dash
20 no-host configure.ocaml 4,782 2,229 1,775 20.4 osh-cpython
28 no-host configure.ocaml 3,847 1,680 1,205 20.7 osh-native
36 no-host configure.ocaml 3,864 1,665 1,235 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 41 33 9 19.3 dash
21 no-host configure.tcc 208 162 49 19.3 osh-cpython
29 no-host configure.tcc 51 39 13 19.1 osh-native
37 no-host configure.tcc 49 36 14 19.3 osh-native-souffle
3 no-host configure.util-linux 14,190 8,857 5,806 30.0 bash
11 no-host configure.util-linux 14,755 9,165 6,077 30.1 dash
19 no-host configure.util-linux 32,139 21,495 11,771 30.1 osh-cpython
27 no-host configure.util-linux 14,479 8,707 5,971 30.0 osh-native
35 no-host configure.util-linux 14,536 8,536 6,189 30.1 osh-native-souffle
6 no-host configure.yash 1,824 1,082 751 24.4 bash
14 no-host configure.yash 1,750 1,088 666 24.4 dash
22 no-host configure.yash 2,516 1,586 973 24.5 osh-cpython
30 no-host configure.yash 1,870 1,118 756 24.4 osh-native
38 no-host configure.yash 1,885 1,012 875 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 44 12 18.0 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,535 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,799 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,167 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,107 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,380 0 0 0 8 0 1,994 66 bash
9 no-host bin-true 66,421 0 0 0 8 0 1,987 68 dash
17 no-host bin-true 765,452 0 0 0 8 0 2,003 171 osh-cpython
25 no-host bin-true 125,311 0 0 0 16 0 1,993 53 osh-native
33 no-host bin-true 126,311 0 0 0 16 0 1,991 77 osh-native-souffle
2 no-host configure.cpython 2,217,272 0 0 0 32,928 0 14,532 1,285 bash
10 no-host configure.cpython 2,246,212 0 0 0 32,992 0 14,665 1,063 dash
18 no-host configure.cpython 6,218,670 0 0 0 27,512 0 13,287 1,209 osh-cpython
26 no-host configure.cpython 2,222,562 0 0 0 27,520 0 13,246 1,035 osh-native
34 no-host configure.cpython 2,205,139 1 0 0 27,520 0 13,201 922 osh-native-souffle
4 no-host configure.ocaml 410,279 0 0 0 5,120 0 1,955 165 bash
12 no-host configure.ocaml 390,848 0 0 0 5,112 0 1,927 145 dash
20 no-host configure.ocaml 647,769 1 0 0 5,112 0 1,864 184 osh-cpython
28 no-host configure.ocaml 413,319 0 0 0 5,120 0 1,927 156 osh-native
36 no-host configure.ocaml 412,321 0 0 0 5,120 0 1,938 169 osh-native-souffle
5 no-host configure.tcc 6,520 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 48 4 dash
21 no-host configure.tcc 24,062 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,899 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,091,921 0 0 0 42,400 0 18,533 1,134 bash
11 no-host configure.util-linux 2,262,360 0 0 0 42,584 0 17,452 1,077 dash
19 no-host configure.util-linux 5,395,270 4 0 0 39,112 0 17,148 1,221 osh-cpython
27 no-host configure.util-linux 1,998,737 0 0 0 39,120 0 16,984 973 osh-native
35 no-host configure.util-linux 1,993,313 3 0 0 39,136 0 16,959 1,096 osh-native-souffle
6 no-host configure.yash 256,673 0 0 0 4,120 0 871 67 bash
14 no-host configure.yash 245,034 0 0 0 3,720 0 872 77 dash
22 no-host configure.yash 387,916 0 0 0 3,728 0 850 254 osh-cpython
30 no-host configure.yash 258,614 0 0 0 3,736 0 846 95 osh-native
38 no-host configure.yash 257,543 0 0 0 3,736 0 849 85 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,951 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 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-f1b1cd7e
dash dash-0ebcf347
osh-cpython osh-0d9fe095
osh-native osh-0b6ab33b
osh-native-souffle osh-98e0fa31
host label host id
no-host no-host-556df3ee