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 471 22 21 24.46 1.15
bin-true no-host 669 543 2,312 831 804 3.46 1.24
configure.cpython no-host 14,943 15,035 29,157 15,187 15,489 1.95 1.02
configure.ocaml no-host 3,820 3,738 4,652 3,833 3,841 1.22 1.00
configure.tcc no-host 47 41 203 49 48 4.31 1.04
configure.util-linux no-host 13,987 14,813 31,322 14,378 14,331 2.24 1.03
configure.yash no-host 1,828 1,755 2,483 1,836 1,830 1.36 1.00
hello-world no-host 2 1 56 3 3 36.94 1.91

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,563 1,111 24,089 3,195 3,117 9.40 1.25
bin-true no-host 106,358 66,478 787,982 128,254 123,229 7.41 1.21
configure.cpython no-host 2,222,693 2,235,904 6,271,101 2,219,247 2,210,786 2.82 1.00
configure.ocaml no-host 410,374 390,370 649,059 413,155 411,822 1.58 1.01
configure.tcc no-host 6,559 5,487 24,491 6,924 6,871 3.73 1.06
configure.util-linux no-host 2,103,531 2,260,594 5,414,907 1,992,566 1,989,400 2.57 0.95
configure.yash no-host 256,232 244,070 390,400 256,946 257,448 1.52 1.00
hello-world no-host 155 84 3,996 351 344 25.78 2.26

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 23.1 8.9 8.7 5.19 2.00
bin-true no-host 3.0 1.4 18.8 8.0 7.6 6.24 2.65
configure.cpython no-host 27.3 27.4 27.4 27.4 27.4 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.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.0 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.6 18.8 6.3 5.9 6.53 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.2 6.3 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 831 1 2 2.6 8.0 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,187 1 60 14.9 27.4 1,771,745 49,904 28,593 85,416 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,378 3 59 21.2 30.1 2,702,511 29,654 65,897 108,692 1,320,583 1,273,236 32,239 41 131,794 1
configure.ocaml no-host 3,833 1 2 2.6 20.6 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,836 1 2 2.5 24.2 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,290 64,537 42,747 4,533 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.6 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,489 1 64 14.8 27.4 1,771,744 49,106 28,531 85,417 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,331 2 61 21.2 30.3 2,702,511 29,763 65,835 108,694 1,320,583 1,273,234 32,239 41 131,670 1
configure.ocaml no-host 3,841 1 2 2.6 20.4 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,830 1 2 2.5 24.4 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,289 64,475 42,685 4,534 54,525 57,230 277 3 85,370 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.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 471 433 40 23.1 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 669 485 216 3.0 bash
9 no-host bin-true 543 417 135 1.4 dash
17 no-host bin-true 2,312 1,441 1,126 18.8 osh-cpython
25 no-host bin-true 831 605 241 8.0 osh-native
33 no-host bin-true 804 573 245 7.6 osh-native-souffle
2 no-host configure.cpython 14,943 8,978 6,353 27.3 bash
10 no-host configure.cpython 15,035 8,952 6,478 27.4 dash
18 no-host configure.cpython 29,157 17,590 13,446 27.4 osh-cpython
26 no-host configure.cpython 15,187 9,092 6,357 27.4 osh-native
34 no-host configure.cpython 15,489 9,052 6,616 27.4 osh-native-souffle
4 no-host configure.ocaml 3,820 1,632 1,226 20.6 bash
12 no-host configure.ocaml 3,738 1,564 1,192 20.6 dash
20 no-host configure.ocaml 4,652 2,324 1,540 20.6 osh-cpython
28 no-host configure.ocaml 3,833 1,588 1,283 20.6 osh-native
36 no-host configure.ocaml 3,841 1,624 1,253 20.4 osh-native-souffle
5 no-host configure.tcc 47 19 29 19.3 bash
13 no-host configure.tcc 41 27 15 19.3 dash
21 no-host configure.tcc 203 139 68 19.4 osh-cpython
29 no-host configure.tcc 49 28 21 19.3 osh-native
37 no-host configure.tcc 48 14 34 19.3 osh-native-souffle
3 no-host configure.util-linux 13,987 8,793 5,662 30.0 bash
11 no-host configure.util-linux 14,813 9,020 6,269 30.3 dash
19 no-host configure.util-linux 31,322 20,836 11,544 30.1 osh-cpython
27 no-host configure.util-linux 14,378 8,714 5,854 30.1 osh-native
35 no-host configure.util-linux 14,331 8,534 5,986 30.3 osh-native-souffle
6 no-host configure.yash 1,828 1,044 791 24.2 bash
14 no-host configure.yash 1,755 1,021 737 24.2 dash
22 no-host configure.yash 2,483 1,475 1,050 24.4 osh-cpython
30 no-host configure.yash 1,836 1,058 782 24.2 osh-native
38 no-host configure.yash 1,830 1,094 741 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 36 20 18.8 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,563 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,089 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,117 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,358 0 0 0 8 0 1,988 100 bash
9 no-host bin-true 66,478 0 0 0 8 0 1,984 41 dash
17 no-host bin-true 787,982 0 0 0 8 0 1,996 245 osh-cpython
25 no-host bin-true 128,254 0 0 0 16 0 1,987 173 osh-native
33 no-host bin-true 123,229 0 0 0 16 0 1,997 109 osh-native-souffle
2 no-host configure.cpython 2,222,693 0 0 0 32,928 0 14,479 987 bash
10 no-host configure.cpython 2,235,904 0 0 0 32,992 0 14,575 1,059 dash
18 no-host configure.cpython 6,271,101 0 0 0 27,512 0 13,339 1,219 osh-cpython
26 no-host configure.cpython 2,219,247 0 0 0 27,520 0 13,268 957 osh-native
34 no-host configure.cpython 2,210,786 1 0 0 27,520 0 13,294 941 osh-native-souffle
4 no-host configure.ocaml 410,374 0 0 0 5,120 0 1,946 157 bash
12 no-host configure.ocaml 390,370 0 0 0 5,112 0 1,868 144 dash
20 no-host configure.ocaml 649,059 0 0 0 5,112 0 1,873 175 osh-cpython
28 no-host configure.ocaml 413,155 0 0 0 5,120 0 1,930 158 osh-native
36 no-host configure.ocaml 411,822 0 0 0 5,120 0 1,930 189 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,491 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,924 0 0 0 104 0 47 11 osh-native
37 no-host configure.tcc 6,871 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,103,531 0 0 0 42,400 0 18,488 1,095 bash
11 no-host configure.util-linux 2,260,594 1 0 0 42,584 0 17,344 1,049 dash
19 no-host configure.util-linux 5,414,907 4 0 0 39,112 0 16,916 1,177 osh-cpython
27 no-host configure.util-linux 1,992,566 0 0 0 39,120 0 17,102 979 osh-native
35 no-host configure.util-linux 1,989,400 0 0 0 39,136 0 16,981 946 osh-native-souffle
6 no-host configure.yash 256,232 0 0 0 4,120 0 871 93 bash
14 no-host configure.yash 244,070 0 0 0 3,720 0 870 90 dash
22 no-host configure.yash 390,400 0 0 0 3,728 0 852 115 osh-cpython
30 no-host configure.yash 256,946 0 0 0 3,736 0 847 79 osh-native
38 no-host configure.yash 257,448 0 0 0 3,736 0 850 78 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,996 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a7531b71
dash dash-0ebcf347
osh-cpython osh-76002275
osh-native osh-34874c05
osh-native-souffle osh-f6c92818
host label host id
no-host no-host-556df3ee