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 487 22 21 25.13 1.14
bin-true no-host 681 549 2,286 823 803 3.36 1.21
configure.cpython no-host 15,262 15,345 29,205 15,717 15,425 1.91 1.03
configure.ocaml no-host 3,897 3,824 4,731 3,833 3,900 1.21 0.98
configure.tcc no-host 48 44 209 49 49 4.36 1.02
configure.util-linux no-host 14,203 15,261 32,028 14,750 14,447 2.26 1.04
configure.yash no-host 1,853 1,807 2,529 1,820 1,839 1.37 0.98
hello-world no-host 1 1 61 3 3 41.60 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,542 1,139 23,687 3,178 3,085 9.32 1.25
bin-true no-host 108,303 66,478 773,723 127,244 126,299 7.14 1.17
configure.cpython no-host 2,225,276 2,242,718 6,208,293 2,222,047 2,203,368 2.79 1.00
configure.ocaml no-host 410,684 391,412 646,964 412,146 412,705 1.58 1.00
configure.tcc no-host 6,555 5,476 24,095 6,959 6,905 3.68 1.06
configure.util-linux no-host 2,099,403 2,263,366 5,380,647 1,992,102 1,990,579 2.56 0.95
configure.yash no-host 256,097 244,099 388,682 258,147 257,460 1.52 1.01
hello-world no-host 154 79 3,948 344 336 25.64 2.23

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.6 9.0 8.7 5.22 2.09
bin-true no-host 3.0 1.4 18.4 8.1 7.7 6.09 2.70
configure.cpython no-host 27.4 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 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.1 30.0 30.0 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.9 1.4 18.4 6.4 5.9 6.37 2.23

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 823 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,717 1 65 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,750 3 66 21.2 30.0 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,833 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,820 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 803 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,425 1 62 14.9 27.3 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,447 3 62 21.2 30.3 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,900 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,839 1 2 2.5 24.4 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 12 8 4.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 487 438 52 22.6 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 16 5 8.7 osh-native-souffle
1 no-host bin-true 681 503 209 3.0 bash
9 no-host bin-true 549 422 135 1.4 dash
17 no-host bin-true 2,286 1,500 1,045 18.4 osh-cpython
25 no-host bin-true 823 603 236 8.1 osh-native
33 no-host bin-true 803 592 229 7.7 osh-native-souffle
2 no-host configure.cpython 15,262 9,260 6,402 27.4 bash
10 no-host configure.cpython 15,345 9,409 6,357 27.4 dash
18 no-host configure.cpython 29,205 17,684 13,415 27.4 osh-cpython
26 no-host configure.cpython 15,717 9,333 6,651 27.4 osh-native
34 no-host configure.cpython 15,425 9,242 6,186 27.3 osh-native-souffle
4 no-host configure.ocaml 3,897 1,663 1,260 20.6 bash
12 no-host configure.ocaml 3,824 1,693 1,149 20.6 dash
20 no-host configure.ocaml 4,731 2,348 1,599 20.6 osh-cpython
28 no-host configure.ocaml 3,833 1,623 1,244 20.6 osh-native
36 no-host configure.ocaml 3,900 1,758 1,176 20.4 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 44 30 14 19.3 dash
21 no-host configure.tcc 209 157 55 19.3 osh-cpython
29 no-host configure.tcc 49 27 23 19.3 osh-native
37 no-host configure.tcc 49 20 30 19.3 osh-native-souffle
3 no-host configure.util-linux 14,203 9,021 5,651 30.1 bash
11 no-host configure.util-linux 15,261 9,321 6,434 30.0 dash
19 no-host configure.util-linux 32,028 21,445 11,692 30.0 osh-cpython
27 no-host configure.util-linux 14,750 8,917 6,022 30.0 osh-native
35 no-host configure.util-linux 14,447 8,662 5,973 30.3 osh-native-souffle
6 no-host configure.yash 1,853 1,056 805 24.2 bash
14 no-host configure.yash 1,807 1,047 759 24.2 dash
22 no-host configure.yash 2,529 1,541 1,029 24.2 osh-cpython
30 no-host configure.yash 1,820 1,066 757 24.4 osh-native
38 no-host configure.yash 1,839 1,009 834 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 61 33 28 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.4 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,542 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,139 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,687 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,085 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 108,303 0 0 0 8 0 1,991 48 bash
9 no-host bin-true 66,478 0 0 0 8 0 1,990 48 dash
17 no-host bin-true 773,723 0 0 0 8 0 1,993 96 osh-cpython
25 no-host bin-true 127,244 0 0 0 16 0 1,993 61 osh-native
33 no-host bin-true 126,299 0 0 0 16 0 1,990 39 osh-native-souffle
2 no-host configure.cpython 2,225,276 0 0 0 32,928 0 14,507 1,168 bash
10 no-host configure.cpython 2,242,718 0 0 0 32,992 0 14,582 1,036 dash
18 no-host configure.cpython 6,208,293 0 0 0 27,512 0 13,247 1,075 osh-cpython
26 no-host configure.cpython 2,222,047 0 0 0 27,520 0 13,283 844 osh-native
34 no-host configure.cpython 2,203,368 0 0 0 27,520 0 13,094 1,007 osh-native-souffle
4 no-host configure.ocaml 410,684 0 0 0 5,120 0 1,955 148 bash
12 no-host configure.ocaml 391,412 0 0 0 5,112 0 1,948 117 dash
20 no-host configure.ocaml 646,964 1 0 0 5,112 0 1,856 167 osh-cpython
28 no-host configure.ocaml 412,146 0 0 0 5,120 0 1,925 165 osh-native
36 no-host configure.ocaml 412,705 0 0 0 5,120 0 1,934 145 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,095 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,905 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,099,403 0 0 0 42,400 0 18,543 950 bash
11 no-host configure.util-linux 2,263,366 2 0 0 42,584 0 17,360 1,153 dash
19 no-host configure.util-linux 5,380,647 10 0 0 39,112 0 17,094 1,148 osh-cpython
27 no-host configure.util-linux 1,992,102 0 0 0 39,120 0 17,004 945 osh-native
35 no-host configure.util-linux 1,990,579 1 0 0 39,128 0 16,989 928 osh-native-souffle
6 no-host configure.yash 256,097 0 0 0 4,120 0 870 75 bash
14 no-host configure.yash 244,099 0 0 0 3,720 0 864 79 dash
22 no-host configure.yash 388,682 0 0 0 3,728 0 854 92 osh-cpython
30 no-host configure.yash 258,147 0 0 0 3,736 0 847 92 osh-native
38 no-host configure.yash 257,460 0 0 0 3,736 0 851 74 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4ed59e2a
dash dash-0ebcf347
osh-cpython osh-efd3140b
osh-native osh-4568b7e2
osh-native-souffle osh-cbfb2446
host label host id
no-host no-host-556df3ee