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 21 24.75 1.19
bin-true no-host 674 547 2,332 820 811 3.46 1.22
configure.cpython no-host 15,231 15,299 29,359 15,496 15,639 1.93 1.02
configure.ocaml no-host 3,850 3,771 4,739 3,888 3,900 1.23 1.01
configure.tcc no-host 48 42 208 49 50 4.37 1.02
configure.util-linux no-host 14,255 15,082 32,091 14,650 14,556 2.25 1.03
configure.yash no-host 1,832 1,789 2,532 1,855 1,866 1.38 1.01
hello-world no-host 2 1 57 3 3 37.43 1.86

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,566 1,134 23,805 3,211 3,085 9.28 1.25
bin-true no-host 106,335 66,473 768,468 127,212 124,216 7.23 1.20
configure.cpython no-host 2,216,707 2,241,495 6,225,527 2,224,996 2,210,255 2.81 1.00
configure.ocaml no-host 410,178 391,410 646,993 412,997 412,049 1.58 1.01
configure.tcc no-host 6,552 5,477 24,022 6,960 6,935 3.67 1.06
configure.util-linux no-host 2,111,104 2,257,005 5,367,577 1,993,074 1,988,384 2.54 0.94
configure.yash no-host 256,640 245,002 387,906 257,860 257,779 1.51 1.00
hello-world no-host 150 83 3,925 340 336 26.17 2.27

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 22.6 9.0 8.5 5.06 2.03
bin-true no-host 3.0 1.3 18.2 8.0 7.6 6.05 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 27.5 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.0 19.4 19.3 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.6 18.2 6.3 5.9 6.62 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 820 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,496 1 64 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,650 3 64 21.2 30.3 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,888 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 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,782 14,286 271 0 50,000 0
configure.yash no-host 1,855 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,527 57,233 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 811 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,639 1 63 14.9 27.5 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,556 3 63 21.2 30.3 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,900 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,866 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,527 57,231 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 13 7 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 473 429 47 22.6 osh-cpython
31 no-host abuild-print-help 23 12 12 9.0 osh-native
39 no-host abuild-print-help 21 20 2 8.5 osh-native-souffle
1 no-host bin-true 674 516 188 3.0 bash
9 no-host bin-true 547 426 130 1.3 dash
17 no-host bin-true 2,332 1,547 1,050 18.2 osh-cpython
25 no-host bin-true 820 574 260 8.0 osh-native
33 no-host bin-true 811 560 264 7.6 osh-native-souffle
2 no-host configure.cpython 15,231 9,286 6,349 27.4 bash
10 no-host configure.cpython 15,299 9,198 6,475 27.4 dash
18 no-host configure.cpython 29,359 17,648 13,655 27.4 osh-cpython
26 no-host configure.cpython 15,496 9,250 6,520 27.4 osh-native
34 no-host configure.cpython 15,639 9,123 6,651 27.5 osh-native-souffle
4 no-host configure.ocaml 3,850 1,650 1,232 20.6 bash
12 no-host configure.ocaml 3,771 1,680 1,109 20.4 dash
20 no-host configure.ocaml 4,739 2,224 1,727 20.6 osh-cpython
28 no-host configure.ocaml 3,888 1,672 1,254 20.6 osh-native
36 no-host configure.ocaml 3,900 1,705 1,229 20.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 19.0 bash
13 no-host configure.tcc 42 19 23 19.4 dash
21 no-host configure.tcc 208 140 71 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
37 no-host configure.tcc 50 31 20 19.3 osh-native-souffle
3 no-host configure.util-linux 14,255 8,781 5,965 30.1 bash
11 no-host configure.util-linux 15,082 9,224 6,351 30.1 dash
19 no-host configure.util-linux 32,091 21,170 12,031 30.1 osh-cpython
27 no-host configure.util-linux 14,650 8,651 6,202 30.3 osh-native
35 no-host configure.util-linux 14,556 8,702 6,053 30.3 osh-native-souffle
6 no-host configure.yash 1,832 986 855 24.4 bash
14 no-host configure.yash 1,789 998 795 24.4 dash
22 no-host configure.yash 2,532 1,531 1,044 24.2 osh-cpython
30 no-host configure.yash 1,855 1,062 797 24.4 osh-native
38 no-host configure.yash 1,866 1,089 781 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 25 32 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,566 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,134 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,805 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,211 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 106,335 0 0 0 8 0 1,992 69 bash
9 no-host bin-true 66,473 0 0 0 8 0 1,988 84 dash
17 no-host bin-true 768,468 0 0 0 8 0 1,995 274 osh-cpython
25 no-host bin-true 127,212 0 0 0 16 0 1,990 70 osh-native
33 no-host bin-true 124,216 0 0 0 16 0 1,988 60 osh-native-souffle
2 no-host configure.cpython 2,216,707 0 0 0 32,928 0 14,513 1,021 bash
10 no-host configure.cpython 2,241,495 0 0 0 32,992 0 14,616 970 dash
18 no-host configure.cpython 6,225,527 1 0 0 27,512 0 13,223 1,032 osh-cpython
26 no-host configure.cpython 2,224,996 0 0 0 27,520 0 13,190 947 osh-native
34 no-host configure.cpython 2,210,255 0 0 0 27,520 0 13,236 1,137 osh-native-souffle
4 no-host configure.ocaml 410,178 0 0 0 5,120 0 1,959 159 bash
12 no-host configure.ocaml 391,410 0 0 0 5,112 0 1,913 131 dash
20 no-host configure.ocaml 646,993 0 0 0 5,112 0 1,861 173 osh-cpython
28 no-host configure.ocaml 412,997 0 0 0 5,120 0 1,933 143 osh-native
36 no-host configure.ocaml 412,049 0 0 0 5,120 0 1,934 156 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,022 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,935 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,111,104 1 0 0 42,400 0 18,592 1,028 bash
11 no-host configure.util-linux 2,257,005 1 0 0 42,584 0 17,380 1,054 dash
19 no-host configure.util-linux 5,367,577 12 0 0 39,112 0 16,978 1,262 osh-cpython
27 no-host configure.util-linux 1,993,074 1 0 0 39,128 0 17,012 889 osh-native
35 no-host configure.util-linux 1,988,384 1 0 0 39,136 0 16,969 880 osh-native-souffle
6 no-host configure.yash 256,640 0 0 0 4,120 0 872 73 bash
14 no-host configure.yash 245,002 0 0 0 3,720 0 871 70 dash
22 no-host configure.yash 387,906 0 0 0 3,728 0 851 93 osh-cpython
30 no-host configure.yash 257,860 0 0 0 3,736 0 848 81 osh-native
38 no-host configure.yash 257,779 0 0 0 3,736 0 850 72 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,925 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 340 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-3ff5801e
dash dash-0ebcf347
osh-cpython osh-ce4fcfcc
osh-native osh-099fdfba
osh-native-souffle osh-4cbfdbce
host label host id
no-host no-host-556df3ee