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 20 25.41 1.17
bin-true no-host 659 525 2,290 784 780 3.47 1.19
configure.cpython no-host 14,416 14,473 28,105 14,606 14,547 1.95 1.01
configure.ocaml no-host 3,696 3,633 4,551 3,726 3,713 1.23 1.01
configure.tcc no-host 46 40 203 47 47 4.39 1.02
configure.util-linux no-host 13,414 14,218 30,739 13,775 13,736 2.29 1.03
configure.yash no-host 1,787 1,708 2,414 1,763 1,762 1.35 0.99
hello-world no-host 1 1 56 3 3 43.71 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,532 1,098 23,864 3,203 3,107 9.42 1.27
bin-true no-host 107,369 66,452 780,389 126,128 124,242 7.27 1.17
configure.cpython no-host 1,995,384 2,027,444 6,035,114 1,997,776 1,985,088 3.02 1.00
configure.ocaml no-host 373,357 353,493 611,422 376,284 375,622 1.64 1.01
configure.tcc no-host 6,102 5,016 23,759 6,504 6,435 3.89 1.07
configure.util-linux no-host 1,905,352 2,063,989 5,208,736 1,804,811 1,798,175 2.73 0.95
configure.yash no-host 233,144 222,460 367,097 235,416 235,462 1.57 1.01
hello-world no-host 148 78 3,965 346 334 26.79 2.34

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 22.6 9.0 8.8 5.07 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.9 6.38 2.77
configure.cpython no-host 29.2 29.3 29.1 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.7 19.6 19.8 19.6 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.3 30.2 1.00 1.00
configure.yash no-host 26.4 26.3 26.4 26.3 26.3 1.00 1.00
hello-world no-host 2.9 1.6 18.3 6.4 5.9 6.34 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 784 1 2 2.6 8.0 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,606 2 64 14.9 29.1 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 13,775 3 61 21.2 30.3 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,726 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,763 1 2 2.5 26.3 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 780 1 2 2.6 7.9 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,547 1 64 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,736 3 60 21.2 30.2 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,713 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,762 1 2 2.5 26.3 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.8 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 11 8 4.5 bash
15 no-host abuild-print-help 9 3 7 3.5 dash
23 no-host abuild-print-help 471 419 56 22.6 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 20 13 8 8.8 osh-native-souffle
1 no-host bin-true 659 300 393 2.9 bash
9 no-host bin-true 525 289 246 1.4 dash
17 no-host bin-true 2,290 794 1,753 18.4 osh-cpython
25 no-host bin-true 784 300 502 8.0 osh-native
33 no-host bin-true 780 293 504 7.9 osh-native-souffle
2 no-host configure.cpython 14,416 6,513 8,313 29.2 bash
10 no-host configure.cpython 14,473 6,520 8,384 29.3 dash
18 no-host configure.cpython 28,105 14,012 15,939 29.1 osh-cpython
26 no-host configure.cpython 14,606 6,413 8,481 29.1 osh-native
34 no-host configure.cpython 14,547 6,490 8,333 29.2 osh-native-souffle
4 no-host configure.ocaml 3,696 1,256 1,481 22.6 bash
12 no-host configure.ocaml 3,633 1,277 1,376 22.6 dash
20 no-host configure.ocaml 4,551 1,826 1,935 22.6 osh-cpython
28 no-host configure.ocaml 3,726 1,303 1,464 22.6 osh-native
36 no-host configure.ocaml 3,713 1,290 1,463 22.6 osh-native-souffle
5 no-host configure.tcc 46 22 25 19.6 bash
13 no-host configure.tcc 40 18 22 19.7 dash
21 no-host configure.tcc 203 141 65 19.6 osh-cpython
29 no-host configure.tcc 47 23 24 19.8 osh-native
37 no-host configure.tcc 47 25 22 19.6 osh-native-souffle
3 no-host configure.util-linux 13,414 5,793 8,119 30.3 bash
11 no-host configure.util-linux 14,218 5,757 8,980 30.3 dash
19 no-host configure.util-linux 30,739 17,494 14,311 30.3 osh-cpython
27 no-host configure.util-linux 13,775 5,518 8,465 30.3 osh-native
35 no-host configure.util-linux 13,736 5,493 8,479 30.2 osh-native-souffle
6 no-host configure.yash 1,787 884 908 26.4 bash
14 no-host configure.yash 1,708 895 817 26.3 dash
22 no-host configure.yash 2,414 1,300 1,155 26.4 osh-cpython
30 no-host configure.yash 1,763 887 880 26.3 osh-native
38 no-host configure.yash 1,762 877 890 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 37 19 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.4 osh-native
32 no-host hello-world 3 1 2 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,532 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,864 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,107 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,369 0 0 0 8 0 1,987 226 bash
9 no-host bin-true 66,452 0 0 0 8 0 1,977 126 dash
17 no-host bin-true 780,389 0 0 0 8 0 1,974 151 osh-cpython
25 no-host bin-true 126,128 0 0 0 16 0 1,977 161 osh-native
33 no-host bin-true 124,242 0 0 0 16 0 1,979 157 osh-native-souffle
2 no-host configure.cpython 1,995,384 0 0 0 32,928 0 14,236 1,229 bash
10 no-host configure.cpython 2,027,444 0 0 0 32,992 0 14,335 1,215 dash
18 no-host configure.cpython 6,035,114 0 0 0 27,512 0 13,063 1,160 osh-cpython
26 no-host configure.cpython 1,997,776 0 0 0 27,520 0 13,081 1,089 osh-native
34 no-host configure.cpython 1,985,088 0 0 0 27,520 0 13,013 1,229 osh-native-souffle
4 no-host configure.ocaml 373,357 0 0 0 5,120 0 1,946 214 bash
12 no-host configure.ocaml 353,493 0 0 0 5,112 0 1,940 181 dash
20 no-host configure.ocaml 611,422 0 0 0 5,112 0 1,852 167 osh-cpython
28 no-host configure.ocaml 376,284 0 0 0 5,120 0 1,925 197 osh-native
36 no-host configure.ocaml 375,622 0 0 0 5,120 0 1,914 211 osh-native-souffle
5 no-host configure.tcc 6,102 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,016 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,759 0 0 0 96 0 52 4 osh-cpython
29 no-host configure.tcc 6,504 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,435 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,905,352 0 0 0 42,400 0 18,421 1,373 bash
11 no-host configure.util-linux 2,063,989 2 0 0 42,592 0 17,286 1,332 dash
19 no-host configure.util-linux 5,208,736 8 0 0 39,112 0 16,995 1,385 osh-cpython
27 no-host configure.util-linux 1,804,811 0 0 0 39,120 0 17,004 1,183 osh-native
35 no-host configure.util-linux 1,798,175 0 0 0 39,136 0 17,006 1,115 osh-native-souffle
6 no-host configure.yash 233,144 0 0 0 4,120 0 894 83 bash
14 no-host configure.yash 222,460 0 0 0 3,720 0 868 77 dash
22 no-host configure.yash 367,097 0 0 0 3,728 0 853 111 osh-cpython
30 no-host configure.yash 235,416 0 0 0 3,736 0 851 90 osh-native
38 no-host configure.yash 235,462 0 0 0 3,736 0 846 86 osh-native-souffle
0 no-host hello-world 148 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,965 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d72ca947
dash dash-0ebcf347
osh-cpython osh-dcf2d685
osh-native osh-544a9956
osh-native-souffle osh-ef16df62
host label host id
no-host no-host-e4839999