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 477 23 21 25.02 1.19
bin-true no-host 678 544 2,313 815 813 3.41 1.20
configure.cpython no-host 15,364 15,328 29,273 15,631 15,765 1.91 1.02
configure.ocaml no-host 3,868 3,781 4,731 3,984 3,890 1.22 1.03
configure.tcc no-host 47 42 206 51 50 4.39 1.09
configure.util-linux no-host 14,460 15,240 32,145 14,719 14,704 2.22 1.02
configure.yash no-host 1,836 1,811 2,513 1,877 1,861 1.37 1.02
hello-world no-host 2 1 60 3 3 39.02 1.84

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,531 1,104 23,962 3,188 3,093 9.47 1.26
bin-true no-host 106,276 65,398 769,578 127,282 125,250 7.24 1.20
configure.cpython no-host 2,219,597 2,243,300 6,234,101 2,221,800 2,206,068 2.81 1.00
configure.ocaml no-host 410,720 391,416 646,911 413,027 412,976 1.58 1.01
configure.tcc no-host 6,536 5,501 24,071 6,967 6,897 3.68 1.07
configure.util-linux no-host 2,100,238 2,257,628 5,382,789 1,994,917 1,990,291 2.56 0.95
configure.yash no-host 256,911 243,938 388,669 258,065 257,478 1.51 1.00
hello-world no-host 152 80 3,957 346 337 26.03 2.28

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.5 22.4 8.9 8.5 5.19 2.06
bin-true no-host 2.9 1.4 18.2 8.3 7.6 6.32 2.86
configure.cpython no-host 27.4 27.5 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 21.0 20.4 20.6 1.03 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.0 30.1 1.00 0.99
configure.yash no-host 24.4 24.1 24.2 24.4 24.2 0.99 1.00
hello-world no-host 2.8 1.4 18.4 6.3 5.9 6.67 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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.3 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,631 1 67 14.9 27.5 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,719 3 65 21.2 30.0 2,702,514 53,767 65,692 108,691 1,290,641 1,303,182 32,239 41 131,384 1
configure.ocaml no-host 3,984 1 2 2.6 20.4 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.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,877 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 23 1 2 2.8 8.9 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.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.6 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,765 1 64 14.9 27.4 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,704 3 63 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,890 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 50 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,861 1 2 2.5 24.2 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 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 18 2 4.3 bash
15 no-host abuild-print-help 10 6 5 3.5 dash
23 no-host abuild-print-help 477 435 45 22.4 osh-cpython
31 no-host abuild-print-help 23 18 5 8.9 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 678 518 194 2.9 bash
9 no-host bin-true 544 439 113 1.4 dash
17 no-host bin-true 2,313 1,501 1,074 18.2 osh-cpython
25 no-host bin-true 815 575 254 8.3 osh-native
33 no-host bin-true 813 573 254 7.6 osh-native-souffle
2 no-host configure.cpython 15,364 9,072 6,701 27.4 bash
10 no-host configure.cpython 15,328 9,339 6,414 27.5 dash
18 no-host configure.cpython 29,273 17,776 13,399 27.3 osh-cpython
26 no-host configure.cpython 15,631 9,153 6,739 27.5 osh-native
34 no-host configure.cpython 15,765 9,147 6,670 27.4 osh-native-souffle
4 no-host configure.ocaml 3,868 1,647 1,252 20.4 bash
12 no-host configure.ocaml 3,781 1,539 1,261 20.6 dash
20 no-host configure.ocaml 4,731 2,364 1,583 21.0 osh-cpython
28 no-host configure.ocaml 3,984 1,682 1,340 20.4 osh-native
36 no-host configure.ocaml 3,890 1,707 1,218 20.6 osh-native-souffle
5 no-host configure.tcc 47 25 22 19.3 bash
13 no-host configure.tcc 42 24 19 19.3 dash
21 no-host configure.tcc 206 163 47 19.4 osh-cpython
29 no-host configure.tcc 51 21 30 19.3 osh-native
37 no-host configure.tcc 50 28 22 19.3 osh-native-souffle
3 no-host configure.util-linux 14,460 8,980 5,923 30.3 bash
11 no-host configure.util-linux 15,240 9,266 6,460 30.3 dash
19 no-host configure.util-linux 32,145 21,447 11,804 30.3 osh-cpython
27 no-host configure.util-linux 14,719 8,741 6,168 30.0 osh-native
35 no-host configure.util-linux 14,704 8,782 6,108 30.1 osh-native-souffle
6 no-host configure.yash 1,836 1,085 756 24.4 bash
14 no-host configure.yash 1,811 1,011 802 24.1 dash
22 no-host configure.yash 2,513 1,559 997 24.2 osh-cpython
30 no-host configure.yash 1,877 1,117 763 24.4 osh-native
38 no-host configure.yash 1,861 1,078 787 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 60 36 23 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,531 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,962 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,093 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,276 0 0 0 8 0 1,989 51 bash
9 no-host bin-true 65,398 0 0 0 8 0 1,985 48 dash
17 no-host bin-true 769,578 0 0 0 8 0 1,998 215 osh-cpython
25 no-host bin-true 127,282 0 0 0 16 0 1,979 61 osh-native
33 no-host bin-true 125,250 0 0 0 16 0 1,988 100 osh-native-souffle
2 no-host configure.cpython 2,219,597 0 0 0 32,928 0 14,568 1,163 bash
10 no-host configure.cpython 2,243,300 1 0 0 32,992 0 14,693 1,007 dash
18 no-host configure.cpython 6,234,101 0 0 0 27,512 0 13,283 1,123 osh-cpython
26 no-host configure.cpython 2,221,800 0 0 0 27,520 0 13,129 940 osh-native
34 no-host configure.cpython 2,206,068 0 0 0 27,520 0 13,278 985 osh-native-souffle
4 no-host configure.ocaml 410,720 0 0 0 5,120 0 1,957 147 bash
12 no-host configure.ocaml 391,416 0 0 0 5,112 0 1,935 141 dash
20 no-host configure.ocaml 646,911 0 0 0 5,112 0 1,857 167 osh-cpython
28 no-host configure.ocaml 413,027 0 0 0 5,120 0 1,934 163 osh-native
36 no-host configure.ocaml 412,976 0 0 0 5,120 0 1,931 156 osh-native-souffle
5 no-host configure.tcc 6,536 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,501 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,071 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,897 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,100,238 0 0 0 42,400 0 18,585 945 bash
11 no-host configure.util-linux 2,257,628 0 0 0 42,584 0 17,462 1,161 dash
19 no-host configure.util-linux 5,382,789 12 0 0 39,136 0 16,980 1,231 osh-cpython
27 no-host configure.util-linux 1,994,917 0 0 0 39,120 0 17,116 954 osh-native
35 no-host configure.util-linux 1,990,291 0 0 0 39,128 0 16,963 981 osh-native-souffle
6 no-host configure.yash 256,911 0 0 0 4,120 0 868 69 bash
14 no-host configure.yash 243,938 0 0 0 3,720 0 865 76 dash
22 no-host configure.yash 388,669 0 0 0 3,728 0 851 110 osh-cpython
30 no-host configure.yash 258,065 0 0 0 3,736 0 848 94 osh-native
38 no-host configure.yash 257,478 0 0 0 3,736 0 850 73 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,957 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 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-0bc63a08
dash dash-0ebcf347
osh-cpython osh-6cf5d570
osh-native osh-104cf088
osh-native-souffle osh-5a2eba87
host label host id
no-host no-host-556df3ee