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 473 23 22 24.40 1.18
bin-true no-host 687 553 2,385 823 818 3.47 1.20
configure.cpython no-host 15,405 15,425 29,730 15,669 15,719 1.93 1.02
configure.ocaml no-host 3,883 3,805 4,754 3,947 3,920 1.22 1.02
configure.tcc no-host 48 42 209 51 50 4.34 1.05
configure.util-linux no-host 14,267 15,085 32,150 14,743 14,728 2.25 1.03
configure.yash no-host 1,852 1,850 2,519 1,911 1,881 1.36 1.03
hello-world no-host 2 1 60 3 3 38.84 1.94

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,147 23,955 3,142 3,126 9.45 1.24
bin-true no-host 105,372 65,371 792,498 126,237 126,196 7.52 1.20
configure.cpython no-host 2,215,956 2,242,053 6,282,426 2,214,834 2,203,374 2.84 1.00
configure.ocaml no-host 410,689 391,385 650,227 412,611 412,144 1.58 1.00
configure.tcc no-host 6,579 5,486 24,464 6,953 6,888 3.72 1.06
configure.util-linux no-host 2,106,484 2,254,508 5,413,872 2,003,835 1,992,454 2.57 0.95
configure.yash no-host 256,244 245,261 391,184 257,782 255,984 1.53 1.01
hello-world no-host 152 80 3,988 349 343 26.24 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.5 3.5 23.3 9.2 8.7 5.22 2.06
bin-true no-host 3.0 1.3 18.9 8.0 7.9 6.28 2.65
configure.cpython no-host 27.4 27.3 27.4 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.2 24.2 24.4 24.2 0.99 0.99
hello-world no-host 2.8 1.4 18.6 6.3 5.8 6.76 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,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 823 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,669 1 64 14.9 27.3 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,743 3 62 21.2 30.1 2,702,511 29,749 65,877 108,692 1,320,583 1,273,236 32,239 41 131,754 1
configure.ocaml no-host 3,947 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 51 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,911 1 2 2.5 24.4 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 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.8 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.9 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,719 1 66 14.8 27.3 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,728 3 64 21.2 30.3 2,702,511 29,763 65,815 108,694 1,320,583 1,273,234 32,239 41 131,630 1
configure.ocaml no-host 3,920 1 2 2.6 20.6 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,881 1 2 2.5 24.2 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 22 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 13 7 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 473 423 53 23.3 osh-cpython
31 no-host abuild-print-help 23 16 7 9.2 osh-native
39 no-host abuild-print-help 22 15 8 8.7 osh-native-souffle
1 no-host bin-true 687 500 222 3.0 bash
9 no-host bin-true 553 427 135 1.3 dash
17 no-host bin-true 2,385 1,532 1,119 18.9 osh-cpython
25 no-host bin-true 823 581 254 8.0 osh-native
33 no-host bin-true 818 578 256 7.9 osh-native-souffle
2 no-host configure.cpython 15,405 9,388 6,427 27.4 bash
10 no-host configure.cpython 15,425 9,287 6,567 27.3 dash
18 no-host configure.cpython 29,730 17,669 13,995 27.4 osh-cpython
26 no-host configure.cpython 15,669 9,234 6,703 27.3 osh-native
34 no-host configure.cpython 15,719 9,267 6,631 27.3 osh-native-souffle
4 no-host configure.ocaml 3,883 1,662 1,250 20.6 bash
12 no-host configure.ocaml 3,805 1,646 1,178 20.4 dash
20 no-host configure.ocaml 4,754 2,302 1,670 20.6 osh-cpython
28 no-host configure.ocaml 3,947 1,658 1,327 20.6 osh-native
36 no-host configure.ocaml 3,920 1,710 1,245 20.6 osh-native-souffle
5 no-host configure.tcc 48 32 17 19.4 bash
13 no-host configure.tcc 42 29 13 19.3 dash
21 no-host configure.tcc 209 171 41 19.3 osh-cpython
29 no-host configure.tcc 51 34 17 19.3 osh-native
37 no-host configure.tcc 50 18 32 19.4 osh-native-souffle
3 no-host configure.util-linux 14,267 8,999 5,757 30.3 bash
11 no-host configure.util-linux 15,085 9,179 6,398 30.3 dash
19 no-host configure.util-linux 32,150 21,327 11,931 30.1 osh-cpython
27 no-host configure.util-linux 14,743 8,854 6,090 30.1 osh-native
35 no-host configure.util-linux 14,728 8,775 6,109 30.3 osh-native-souffle
6 no-host configure.yash 1,852 1,030 830 24.5 bash
14 no-host configure.yash 1,850 994 860 24.2 dash
22 no-host configure.yash 2,519 1,556 1,008 24.2 osh-cpython
30 no-host configure.yash 1,911 1,102 813 24.4 osh-native
38 no-host configure.yash 1,881 1,053 832 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 35 25 18.6 osh-cpython
24 no-host hello-world 3 0 3 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,535 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,147 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,955 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,142 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,126 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,372 0 0 0 8 0 1,992 44 bash
9 no-host bin-true 65,371 0 0 0 8 0 1,987 84 dash
17 no-host bin-true 792,498 0 0 0 8 0 1,996 230 osh-cpython
25 no-host bin-true 126,237 0 0 0 16 0 1,989 140 osh-native
33 no-host bin-true 126,196 0 0 0 16 0 1,990 118 osh-native-souffle
2 no-host configure.cpython 2,215,956 0 0 0 32,928 0 14,472 896 bash
10 no-host configure.cpython 2,242,053 0 0 0 32,992 0 14,630 1,040 dash
18 no-host configure.cpython 6,282,426 0 0 0 27,512 0 13,178 1,189 osh-cpython
26 no-host configure.cpython 2,214,834 0 0 0 27,520 0 13,255 933 osh-native
34 no-host configure.cpython 2,203,374 1 0 0 27,520 0 13,247 953 osh-native-souffle
4 no-host configure.ocaml 410,689 0 0 0 5,120 0 1,964 151 bash
12 no-host configure.ocaml 391,385 0 0 0 5,112 0 1,908 150 dash
20 no-host configure.ocaml 650,227 0 0 0 5,112 0 1,860 237 osh-cpython
28 no-host configure.ocaml 412,611 0 0 0 5,120 0 1,928 170 osh-native
36 no-host configure.ocaml 412,144 0 0 0 5,120 0 1,931 152 osh-native-souffle
5 no-host configure.tcc 6,579 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,464 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,888 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,106,484 1 0 0 42,400 0 18,565 1,128 bash
11 no-host configure.util-linux 2,254,508 1 0 0 42,584 0 17,412 1,110 dash
19 no-host configure.util-linux 5,413,872 7 0 0 39,112 0 16,936 1,216 osh-cpython
27 no-host configure.util-linux 2,003,835 0 0 0 39,128 0 16,905 968 osh-native
35 no-host configure.util-linux 1,992,454 0 0 0 39,136 0 16,968 1,086 osh-native-souffle
6 no-host configure.yash 256,244 0 0 0 4,120 0 870 72 bash
14 no-host configure.yash 245,261 0 0 0 3,720 0 872 71 dash
22 no-host configure.yash 391,184 0 0 0 3,728 0 856 88 osh-cpython
30 no-host configure.yash 257,782 0 0 0 3,736 0 849 77 osh-native
38 no-host configure.yash 255,984 0 0 0 3,736 0 850 80 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,988 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0bfc3791
dash dash-0ebcf347
osh-cpython osh-432d6e74
osh-native osh-7d3c43a6
osh-native-souffle osh-49acd859
host label host id
no-host no-host-556df3ee