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 461 22 21 24.82 1.21
bin-true no-host 645 526 2,240 790 792 3.47 1.22
configure.cpython no-host 14,636 14,709 28,130 14,874 14,929 1.92 1.02
configure.ocaml no-host 3,771 3,676 4,594 3,765 3,795 1.22 1.00
configure.tcc no-host 46 40 196 48 48 4.24 1.04
configure.util-linux no-host 13,618 14,454 30,904 13,982 13,919 2.27 1.03
configure.yash no-host 1,790 1,741 2,445 1,796 1,809 1.37 1.00
hello-world no-host 1 1 49 3 3 37.76 2.15

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,538 1,094 23,145 3,201 3,090 9.12 1.26
bin-true no-host 103,403 65,420 766,176 129,221 127,632 7.41 1.25
configure.cpython no-host 1,997,167 2,025,074 5,978,677 2,016,425 1,993,038 2.99 1.01
configure.ocaml no-host 372,942 353,900 606,829 376,981 376,133 1.63 1.01
configure.tcc no-host 6,083 4,996 23,006 6,570 6,513 3.78 1.08
configure.util-linux no-host 1,902,890 2,066,557 5,147,223 1,805,722 1,809,159 2.70 0.95
configure.yash no-host 233,728 221,361 362,967 235,545 235,791 1.55 1.01
hello-world no-host 149 78 3,691 350 342 24.77 2.35

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.4 21.9 9.0 8.3 4.91 2.03
bin-true no-host 2.9 1.4 17.3 8.0 7.6 6.00 2.77
configure.cpython no-host 29.2 29.1 29.1 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.5 22.6 22.5 1.00 1.01
configure.tcc no-host 19.6 19.5 19.7 19.7 19.7 1.01 1.01
configure.util-linux no-host 30.3 30.4 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.3 26.4 26.4 1.00 1.00
hello-world no-host 2.8 1.6 17.3 6.3 5.8 6.29 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.3 6.3 3,761 3,761 0 684 1,900 1,177 2 0 50,000 0
bin-true no-host 790 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,874 1 64 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,982 3 64 21.3 30.2 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,765 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,796 1 2 2.6 26.4 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 9.0 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 792 1 2 2.6 7.6 154,725 12,959 2,766 9,735 78,369 66,621 3,008 3 50,000 0
configure.cpython no-host 14,929 2 66 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,919 3 64 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,795 1 2 2.6 22.5 150,072 10,940 5,110 7,515 71,657 70,900 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,561 30,561 0 1,506 14,824 14,231 226 0 50,000 0
configure.yash no-host 1,809 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 21 1 2 2.8 8.3 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 9 10 4.5 bash
15 no-host abuild-print-help 9 3 7 3.4 dash
23 no-host abuild-print-help 461 406 58 21.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
39 no-host abuild-print-help 21 12 10 8.3 osh-native-souffle
1 no-host bin-true 645 306 374 2.9 bash
9 no-host bin-true 526 266 271 1.4 dash
17 no-host bin-true 2,240 786 1,708 17.3 osh-cpython
25 no-host bin-true 790 301 505 8.0 osh-native
33 no-host bin-true 792 294 515 7.6 osh-native-souffle
2 no-host configure.cpython 14,636 6,663 8,379 29.2 bash
10 no-host configure.cpython 14,709 6,617 8,531 29.1 dash
18 no-host configure.cpython 28,130 14,087 15,910 29.1 osh-cpython
26 no-host configure.cpython 14,874 6,550 8,610 29.2 osh-native
34 no-host configure.cpython 14,929 6,521 8,604 29.1 osh-native-souffle
4 no-host configure.ocaml 3,771 1,289 1,517 22.5 bash
12 no-host configure.ocaml 3,676 1,297 1,398 22.6 dash
20 no-host configure.ocaml 4,594 1,862 1,945 22.5 osh-cpython
28 no-host configure.ocaml 3,765 1,263 1,541 22.6 osh-native
36 no-host configure.ocaml 3,795 1,300 1,534 22.5 osh-native-souffle
5 no-host configure.tcc 46 20 26 19.6 bash
13 no-host configure.tcc 40 16 24 19.5 dash
21 no-host configure.tcc 196 136 63 19.7 osh-cpython
29 no-host configure.tcc 48 30 19 19.7 osh-native
37 no-host configure.tcc 48 18 30 19.7 osh-native-souffle
3 no-host configure.util-linux 13,618 5,916 8,191 30.3 bash
11 no-host configure.util-linux 14,454 5,812 9,155 30.4 dash
19 no-host configure.util-linux 30,904 17,778 14,219 30.2 osh-cpython
27 no-host configure.util-linux 13,982 5,559 8,649 30.2 osh-native
35 no-host configure.util-linux 13,919 5,465 8,680 30.3 osh-native-souffle
6 no-host configure.yash 1,790 884 916 26.4 bash
14 no-host configure.yash 1,741 879 867 26.4 dash
22 no-host configure.yash 2,445 1,333 1,156 26.3 osh-cpython
30 no-host configure.yash 1,796 899 901 26.4 osh-native
38 no-host configure.yash 1,809 913 901 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 49 33 16 17.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 0 3 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,538 0 0 0 16 0 40 4 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,145 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,090 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 103,403 0 0 0 8 0 1,989 171 bash
9 no-host bin-true 65,420 0 0 0 8 0 1,985 69 dash
17 no-host bin-true 766,176 0 0 0 8 0 1,988 229 osh-cpython
25 no-host bin-true 129,221 0 0 0 16 0 1,978 175 osh-native
33 no-host bin-true 127,632 0 0 0 16 0 1,986 122 osh-native-souffle
2 no-host configure.cpython 1,997,167 0 0 0 32,928 0 14,247 1,231 bash
10 no-host configure.cpython 2,025,074 0 0 0 32,992 0 14,372 1,413 dash
18 no-host configure.cpython 5,978,677 0 0 0 27,512 0 13,030 1,286 osh-cpython
26 no-host configure.cpython 2,016,425 0 0 0 27,520 0 13,095 1,282 osh-native
34 no-host configure.cpython 1,993,038 0 0 0 27,520 0 13,094 1,112 osh-native-souffle
4 no-host configure.ocaml 372,942 0 0 0 5,120 0 1,948 201 bash
12 no-host configure.ocaml 353,900 0 0 0 5,112 0 1,940 192 dash
20 no-host configure.ocaml 606,829 0 0 0 5,112 0 1,852 194 osh-cpython
28 no-host configure.ocaml 376,981 0 0 0 5,120 0 1,909 310 osh-native
36 no-host configure.ocaml 376,133 0 0 0 5,120 0 1,922 211 osh-native-souffle
5 no-host configure.tcc 6,083 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,996 0 0 0 96 0 46 1 dash
21 no-host configure.tcc 23,006 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,570 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,513 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,902,890 1 0 0 42,400 0 18,492 1,292 bash
11 no-host configure.util-linux 2,066,557 0 0 0 42,584 0 17,341 1,564 dash
19 no-host configure.util-linux 5,147,223 11 0 0 39,112 0 17,013 1,518 osh-cpython
27 no-host configure.util-linux 1,805,722 2 0 0 39,120 0 16,972 1,251 osh-native
35 no-host configure.util-linux 1,809,159 0 0 0 39,128 0 16,987 1,260 osh-native-souffle
6 no-host configure.yash 233,728 0 0 0 4,120 0 872 94 bash
14 no-host configure.yash 221,361 0 0 0 3,720 0 871 100 dash
22 no-host configure.yash 362,967 0 0 0 3,728 0 852 79 osh-cpython
30 no-host configure.yash 235,545 0 0 0 3,736 0 851 99 osh-native
38 no-host configure.yash 235,791 0 0 0 3,736 0 852 87 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,691 0 0 0 8 0 7 5 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-c1bb97fb
dash dash-0ebcf347
osh-cpython osh-d24cebb1
osh-native osh-fb39dcff
osh-native-souffle osh-6e03057c
host label host id
no-host no-host-e5b8d3ee