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 452 22 20 24.41 1.18
bin-true no-host 659 527 2,252 788 783 3.42 1.20
configure.cpython no-host 14,519 14,559 28,077 14,716 14,904 1.93 1.01
configure.ocaml no-host 3,738 3,647 4,549 3,741 3,728 1.22 1.00
configure.tcc no-host 46 40 191 48 47 4.16 1.04
configure.util-linux no-host 13,537 14,325 30,420 13,829 13,857 2.25 1.02
configure.yash no-host 1,776 1,720 2,397 1,798 1,768 1.35 1.01
hello-world no-host 1 1 48 3 3 36.29 2.13

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,088 23,190 3,175 3,107 9.15 1.25
bin-true no-host 105,313 66,437 763,155 129,201 126,873 7.25 1.23
configure.cpython no-host 1,999,432 2,016,449 5,980,194 2,013,175 1,999,084 2.99 1.01
configure.ocaml no-host 373,169 353,964 605,745 377,146 375,822 1.62 1.01
configure.tcc no-host 6,075 4,999 22,969 6,584 6,541 3.78 1.08
configure.util-linux no-host 1,908,967 2,068,797 5,143,958 1,811,258 1,802,707 2.69 0.95
configure.yash no-host 233,361 221,241 363,135 235,370 235,016 1.56 1.01
hello-world no-host 146 76 3,689 350 342 25.27 2.40

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 21.9 8.9 8.7 4.91 2.00
bin-true no-host 3.0 1.6 17.6 8.0 7.5 5.83 2.65
configure.cpython no-host 29.2 28.8 29.3 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.8 19.7 19.7 19.6 1.00 1.00
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.2 26.4 26.3 26.4 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.3 5.8 6.09 2.18

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.3 6.3 3,761 3,761 0 684 1,900 1,177 2 0 50,000 0
bin-true no-host 788 1 2 2.6 8.0 154,726 13,153 2,828 9,734 78,369 66,623 3,008 3 50,000 0
configure.cpython no-host 14,716 1 65 15.0 29.2 1,772,702 49,118 28,538 86,381 908,121 778,200 22,694 60 50,000 0
configure.util-linux no-host 13,829 3 63 21.3 30.3 2,703,438 42,755 65,842 109,643 1,320,619 1,273,176 27,391 41 131,684 1
configure.ocaml no-host 3,741 1 2 2.6 22.6 150,072 11,003 5,173 7,513 71,657 70,902 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,561 30,561 0 1,504 14,824 14,233 226 0 50,000 0
configure.yash no-host 1,798 1 2 2.6 26.3 139,729 7,971 6,630 6,320 70,329 63,080 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,304 64,481 42,691 4,555 54,569 57,180 270 3 85,382 1
hello-world no-host 3 0 0 0.3 5.8 3,760 3,760 0 685 1,900 1,175 2 0 50,000 0
bin-true no-host 783 1 2 2.6 7.5 154,725 12,959 2,766 9,735 78,369 66,621 3,008 3 50,000 0
configure.cpython no-host 14,904 1 61 14.9 29.1 1,772,701 49,056 28,476 86,382 908,121 778,198 22,694 60 50,000 0
configure.util-linux no-host 13,857 3 61 21.3 30.3 2,703,438 44,119 65,779 109,645 1,320,619 1,273,174 27,391 41 131,558 1
configure.ocaml no-host 3,728 1 2 2.6 22.6 150,072 10,940 5,110 7,515 71,657 70,900 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,561 30,561 0 1,506 14,824 14,231 226 0 50,000 0
configure.yash no-host 1,768 1 2 2.6 26.4 139,729 7,909 6,568 6,322 70,329 63,078 1,803 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,303 64,419 42,629 4,556 54,569 57,178 270 3 85,258 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 8 4.5 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 452 394 61 21.9 osh-cpython
31 no-host abuild-print-help 22 12 11 8.9 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 659 304 391 3.0 bash
9 no-host bin-true 527 283 255 1.6 dash
17 no-host bin-true 2,252 762 1,755 17.6 osh-cpython
25 no-host bin-true 788 290 516 8.0 osh-native
33 no-host bin-true 783 304 498 7.5 osh-native-souffle
2 no-host configure.cpython 14,519 6,599 8,336 29.2 bash
10 no-host configure.cpython 14,559 6,647 8,348 28.8 dash
18 no-host configure.cpython 28,077 13,921 16,045 29.3 osh-cpython
26 no-host configure.cpython 14,716 6,486 8,510 29.2 osh-native
34 no-host configure.cpython 14,904 6,497 8,534 29.1 osh-native-souffle
4 no-host configure.ocaml 3,738 1,274 1,494 22.6 bash
12 no-host configure.ocaml 3,647 1,266 1,403 22.5 dash
20 no-host configure.ocaml 4,549 1,793 1,964 22.6 osh-cpython
28 no-host configure.ocaml 3,741 1,268 1,513 22.6 osh-native
36 no-host configure.ocaml 3,728 1,330 1,436 22.6 osh-native-souffle
5 no-host configure.tcc 46 19 28 19.7 bash
13 no-host configure.tcc 40 19 22 19.8 dash
21 no-host configure.tcc 191 122 72 19.7 osh-cpython
29 no-host configure.tcc 48 22 26 19.7 osh-native
37 no-host configure.tcc 47 21 27 19.6 osh-native-souffle
3 no-host configure.util-linux 13,537 5,790 8,237 30.3 bash
11 no-host configure.util-linux 14,325 5,795 9,052 30.2 dash
19 no-host configure.util-linux 30,420 17,308 14,200 30.3 osh-cpython
27 no-host configure.util-linux 13,829 5,540 8,525 30.3 osh-native
35 no-host configure.util-linux 13,857 5,539 8,543 30.3 osh-native-souffle
6 no-host configure.yash 1,776 910 876 26.3 bash
14 no-host configure.yash 1,720 872 853 26.2 dash
22 no-host configure.yash 2,397 1,307 1,133 26.4 osh-cpython
30 no-host configure.yash 1,798 934 869 26.3 osh-native
38 no-host configure.yash 1,768 915 859 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 29 18 17.6 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 1 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 0 bash
15 no-host abuild-print-help 1,088 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,190 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,175 0 0 0 16 0 39 7 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 105,313 0 0 0 8 0 1,977 131 bash
9 no-host bin-true 66,437 0 0 0 8 0 1,974 109 dash
17 no-host bin-true 763,155 0 0 0 8 0 1,980 332 osh-cpython
25 no-host bin-true 129,201 0 0 0 16 0 1,978 129 osh-native
33 no-host bin-true 126,873 0 0 0 16 0 1,978 131 osh-native-souffle
2 no-host configure.cpython 1,999,432 0 0 0 32,928 0 14,211 1,329 bash
10 no-host configure.cpython 2,016,449 0 0 0 32,992 0 14,374 1,302 dash
18 no-host configure.cpython 5,980,194 1 0 0 27,512 0 13,036 1,305 osh-cpython
26 no-host configure.cpython 2,013,175 1 0 0 27,520 0 13,026 1,219 osh-native
34 no-host configure.cpython 1,999,084 0 0 0 27,520 0 13,045 1,353 osh-native-souffle
4 no-host configure.ocaml 373,169 0 0 0 5,120 0 1,964 180 bash
12 no-host configure.ocaml 353,964 0 0 0 5,112 0 1,919 182 dash
20 no-host configure.ocaml 605,745 0 0 0 5,112 0 1,844 229 osh-cpython
28 no-host configure.ocaml 377,146 0 0 0 5,120 0 1,921 215 osh-native
36 no-host configure.ocaml 375,822 0 0 0 5,120 0 1,933 189 osh-native-souffle
5 no-host configure.tcc 6,075 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,999 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,969 0 0 0 96 0 52 5 osh-cpython
29 no-host configure.tcc 6,584 0 0 0 104 0 47 12 osh-native
37 no-host configure.tcc 6,541 0 0 0 104 0 47 7 osh-native-souffle
3 no-host configure.util-linux 1,908,967 0 0 0 42,400 0 18,468 1,361 bash
11 no-host configure.util-linux 2,068,797 1 0 0 42,584 0 17,309 1,395 dash
19 no-host configure.util-linux 5,143,958 5 0 0 39,112 0 17,024 1,453 osh-cpython
27 no-host configure.util-linux 1,811,258 0 0 0 39,120 0 17,058 1,108 osh-native
35 no-host configure.util-linux 1,802,707 0 0 0 39,128 0 16,984 1,227 osh-native-souffle
6 no-host configure.yash 233,361 0 0 0 4,120 0 871 73 bash
14 no-host configure.yash 221,241 0 0 0 3,720 0 873 89 dash
22 no-host configure.yash 363,135 0 0 0 3,728 0 855 85 osh-cpython
30 no-host configure.yash 235,370 0 0 0 3,736 0 853 95 osh-native
38 no-host configure.yash 235,016 0 0 0 3,736 0 848 91 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,689 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3bd37f44
dash dash-0ebcf347
osh-cpython osh-20e255e0
osh-native osh-aa54f332
osh-native-souffle osh-5b91f8ae
host label host id
no-host no-host-e5b8d3ee