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 467 22 21 24.31 1.16
bin-true no-host 674 544 2,318 808 809 3.44 1.20
configure.cpython no-host 15,305 15,308 29,294 15,467 15,521 1.91 1.01
configure.ocaml no-host 3,827 3,755 4,702 3,886 3,855 1.23 1.02
configure.tcc no-host 48 41 205 49 49 4.26 1.01
configure.util-linux no-host 14,222 15,047 31,702 14,572 14,577 2.23 1.02
configure.yash no-host 1,833 1,827 2,499 1,849 1,854 1.36 1.01
hello-world no-host 1 1 57 3 3 38.53 1.99

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,536 1,116 23,708 3,199 3,102 9.35 1.26
bin-true no-host 106,333 66,387 771,316 127,274 125,243 7.25 1.20
configure.cpython no-host 2,216,508 2,239,584 6,216,335 2,221,589 2,205,129 2.80 1.00
configure.ocaml no-host 410,685 390,776 646,913 413,598 412,702 1.58 1.01
configure.tcc no-host 6,542 5,478 24,084 6,961 6,892 3.68 1.06
configure.util-linux no-host 2,099,645 2,264,535 5,374,709 1,997,421 1,985,138 2.56 0.95
configure.yash no-host 256,022 244,077 388,850 257,564 258,276 1.52 1.01
hello-world no-host 151 83 3,942 347 334 26.11 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.3 3.4 22.4 9.0 8.7 5.19 2.09
bin-true no-host 2.9 1.4 18.5 8.1 7.6 6.41 2.82
configure.cpython no-host 27.4 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.5 0.99 1.00
hello-world no-host 2.8 1.4 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 808 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,467 2 67 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,572 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,886 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.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,849 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 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 809 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,521 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,577 3 63 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,855 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 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,854 1 2 2.5 24.5 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.7 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 15 4 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 467 414 56 22.4 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 674 505 199 2.9 bash
9 no-host bin-true 544 418 135 1.4 dash
17 no-host bin-true 2,318 1,589 987 18.5 osh-cpython
25 no-host bin-true 808 565 257 8.1 osh-native
33 no-host bin-true 809 600 222 7.6 osh-native-souffle
2 no-host configure.cpython 15,305 9,161 6,551 27.4 bash
10 no-host configure.cpython 15,308 9,290 6,444 27.3 dash
18 no-host configure.cpython 29,294 17,740 13,431 27.4 osh-cpython
26 no-host configure.cpython 15,467 8,987 6,747 27.4 osh-native
34 no-host configure.cpython 15,521 9,143 6,522 27.4 osh-native-souffle
4 no-host configure.ocaml 3,827 1,528 1,340 20.6 bash
12 no-host configure.ocaml 3,755 1,641 1,133 20.6 dash
20 no-host configure.ocaml 4,702 2,242 1,668 20.4 osh-cpython
28 no-host configure.ocaml 3,886 1,649 1,275 20.6 osh-native
36 no-host configure.ocaml 3,855 1,696 1,197 20.4 osh-native-souffle
5 no-host configure.tcc 48 21 28 19.4 bash
13 no-host configure.tcc 41 22 19 19.3 dash
21 no-host configure.tcc 205 152 56 19.3 osh-cpython
29 no-host configure.tcc 49 25 24 19.3 osh-native
37 no-host configure.tcc 49 28 21 19.3 osh-native-souffle
3 no-host configure.util-linux 14,222 9,028 5,672 30.3 bash
11 no-host configure.util-linux 15,047 9,286 6,258 30.1 dash
19 no-host configure.util-linux 31,702 21,179 11,604 30.1 osh-cpython
27 no-host configure.util-linux 14,572 8,694 6,067 30.1 osh-native
35 no-host configure.util-linux 14,577 8,808 5,958 30.1 osh-native-souffle
6 no-host configure.yash 1,833 1,062 780 24.4 bash
14 no-host configure.yash 1,827 1,049 780 24.4 dash
22 no-host configure.yash 2,499 1,604 937 24.2 osh-cpython
30 no-host configure.yash 1,849 985 868 24.4 osh-native
38 no-host configure.yash 1,854 1,056 803 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 45 12 18.2 osh-cpython
24 no-host hello-world 3 0 3 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,536 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,708 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,102 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,333 0 0 0 8 0 1,989 52 bash
9 no-host bin-true 66,387 0 0 0 8 0 1,987 33 dash
17 no-host bin-true 771,316 0 0 0 8 0 1,995 486 osh-cpython
25 no-host bin-true 127,274 0 0 0 16 0 1,981 78 osh-native
33 no-host bin-true 125,243 0 0 0 16 0 1,992 52 osh-native-souffle
2 no-host configure.cpython 2,216,508 0 0 0 32,928 0 14,546 1,165 bash
10 no-host configure.cpython 2,239,584 0 0 0 32,992 0 14,683 980 dash
18 no-host configure.cpython 6,216,335 0 0 0 27,512 0 13,262 1,116 osh-cpython
26 no-host configure.cpython 2,221,589 0 0 0 27,520 0 13,265 949 osh-native
34 no-host configure.cpython 2,205,129 0 0 0 27,520 0 13,285 1,070 osh-native-souffle
4 no-host configure.ocaml 410,685 0 0 0 5,120 0 1,947 150 bash
12 no-host configure.ocaml 390,776 0 0 0 5,112 0 1,926 145 dash
20 no-host configure.ocaml 646,913 0 0 0 5,112 0 1,858 176 osh-cpython
28 no-host configure.ocaml 413,598 0 0 0 5,120 0 1,934 165 osh-native
36 no-host configure.ocaml 412,702 0 0 0 5,120 0 1,935 125 osh-native-souffle
5 no-host configure.tcc 6,542 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,084 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,961 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,892 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,099,645 1 0 0 42,400 0 18,532 1,036 bash
11 no-host configure.util-linux 2,264,535 1 0 0 42,584 0 17,424 896 dash
19 no-host configure.util-linux 5,374,709 8 0 0 39,112 0 16,951 1,391 osh-cpython
27 no-host configure.util-linux 1,997,421 1 0 0 39,128 0 16,996 947 osh-native
35 no-host configure.util-linux 1,985,138 0 0 0 39,136 0 16,979 980 osh-native-souffle
6 no-host configure.yash 256,022 0 0 0 4,120 0 872 72 bash
14 no-host configure.yash 244,077 0 0 0 3,720 0 867 71 dash
22 no-host configure.yash 388,850 0 0 0 3,728 0 855 117 osh-cpython
30 no-host configure.yash 257,564 0 0 0 3,736 0 852 89 osh-native
38 no-host configure.yash 258,276 0 0 0 3,736 0 850 91 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,942 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cdb3c6fd
dash dash-0ebcf347
osh-cpython osh-1b6969df
osh-native osh-0163df8e
osh-native-souffle osh-40c51ab8
host label host id
no-host no-host-556df3ee