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 474 22 21 25.13 1.15
bin-true no-host 657 529 2,342 797 793 3.56 1.21
configure.cpython no-host 14,747 14,789 28,724 14,989 14,930 1.95 1.02
configure.ocaml no-host 3,791 3,706 4,686 3,791 3,782 1.24 1.00
configure.tcc no-host 47 40 205 48 47 4.41 1.03
configure.util-linux no-host 13,744 14,601 31,416 14,103 14,021 2.29 1.03
configure.yash no-host 1,800 1,764 2,462 1,810 1,806 1.37 1.01
hello-world no-host 1 1 57 3 3 43.79 2.10

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,570 1,122 23,949 3,186 3,109 9.32 1.24
bin-true no-host 105,358 65,427 781,587 126,209 126,243 7.42 1.20
configure.cpython no-host 1,999,472 2,020,137 6,053,742 1,999,813 1,991,963 3.03 1.00
configure.ocaml no-host 373,648 354,013 611,273 376,114 375,605 1.64 1.01
configure.tcc no-host 6,054 4,997 23,787 6,482 6,430 3.93 1.07
configure.util-linux no-host 1,906,105 2,070,046 5,232,604 1,812,102 1,799,367 2.75 0.95
configure.yash no-host 233,713 222,388 367,670 234,330 234,084 1.57 1.00
hello-world no-host 149 78 3,979 343 339 26.70 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.4 22.6 9.0 8.4 5.07 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.6 6.10 2.70
configure.cpython no-host 29.1 29.1 29.3 29.2 29.3 1.01 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.7 19.6 19.7 19.7 19.7 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.2 26.4 26.3 26.3 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.2 5.9 6.33 2.14

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.2 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,989 2 66 14.9 29.2 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,103 3 65 21.2 30.2 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,791 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 48 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,810 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 793 1 2 2.6 7.6 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,930 1 68 14.9 29.3 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 14,021 3 65 21.2 30.3 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,782 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.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,806 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 21 1 2 2.8 8.4 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 9 4.5 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 474 423 54 22.6 osh-cpython
31 no-host abuild-print-help 22 10 12 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.4 osh-native-souffle
1 no-host bin-true 657 294 395 3.0 bash
9 no-host bin-true 529 274 267 1.4 dash
17 no-host bin-true 2,342 771 1,832 18.4 osh-cpython
25 no-host bin-true 797 306 507 8.1 osh-native
33 no-host bin-true 793 301 508 7.6 osh-native-souffle
2 no-host configure.cpython 14,747 6,686 8,479 29.1 bash
10 no-host configure.cpython 14,789 6,720 8,507 29.1 dash
18 no-host configure.cpython 28,724 14,176 16,452 29.3 osh-cpython
26 no-host configure.cpython 14,989 6,629 8,647 29.2 osh-native
34 no-host configure.cpython 14,930 6,604 8,609 29.3 osh-native-souffle
4 no-host configure.ocaml 3,791 1,321 1,498 22.5 bash
12 no-host configure.ocaml 3,706 1,318 1,409 22.6 dash
20 no-host configure.ocaml 4,686 1,944 1,959 22.6 osh-cpython
28 no-host configure.ocaml 3,791 1,293 1,539 22.6 osh-native
36 no-host configure.ocaml 3,782 1,309 1,511 22.6 osh-native-souffle
5 no-host configure.tcc 47 22 25 19.7 bash
13 no-host configure.tcc 40 17 24 19.6 dash
21 no-host configure.tcc 205 142 67 19.7 osh-cpython
29 no-host configure.tcc 48 22 26 19.7 osh-native
37 no-host configure.tcc 47 18 30 19.7 osh-native-souffle
3 no-host configure.util-linux 13,744 5,922 8,324 30.3 bash
11 no-host configure.util-linux 14,601 5,878 9,243 30.3 dash
19 no-host configure.util-linux 31,416 17,938 14,586 30.2 osh-cpython
27 no-host configure.util-linux 14,103 5,654 8,676 30.2 osh-native
35 no-host configure.util-linux 14,021 5,562 8,684 30.3 osh-native-souffle
6 no-host configure.yash 1,800 914 891 26.4 bash
14 no-host configure.yash 1,764 895 874 26.2 dash
22 no-host configure.yash 2,462 1,340 1,165 26.4 osh-cpython
30 no-host configure.yash 1,810 940 876 26.3 osh-native
38 no-host configure.yash 1,806 902 909 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 36 21 18.3 osh-cpython
24 no-host hello-world 3 1 1 6.2 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,570 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,949 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 38 1 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 7 osh-native-souffle
1 no-host bin-true 105,358 0 0 0 8 0 1,981 131 bash
9 no-host bin-true 65,427 0 0 0 8 0 1,980 68 dash
17 no-host bin-true 781,587 0 0 0 8 0 1,991 511 osh-cpython
25 no-host bin-true 126,209 0 0 0 16 0 1,983 224 osh-native
33 no-host bin-true 126,243 0 0 0 16 0 1,982 119 osh-native-souffle
2 no-host configure.cpython 1,999,472 0 0 0 32,928 0 14,293 1,181 bash
10 no-host configure.cpython 2,020,137 0 0 0 32,992 0 14,438 1,178 dash
18 no-host configure.cpython 6,053,742 0 0 0 27,512 0 13,073 1,127 osh-cpython
26 no-host configure.cpython 1,999,813 0 0 0 27,520 0 13,061 1,037 osh-native
34 no-host configure.cpython 1,991,963 0 0 0 27,520 0 13,099 1,040 osh-native-souffle
4 no-host configure.ocaml 373,648 0 0 0 5,120 0 1,955 177 bash
12 no-host configure.ocaml 354,013 0 0 0 5,112 0 1,939 168 dash
20 no-host configure.ocaml 611,273 0 0 0 5,112 0 1,848 201 osh-cpython
28 no-host configure.ocaml 376,114 0 0 0 5,120 0 1,925 201 osh-native
36 no-host configure.ocaml 375,605 0 0 0 5,120 0 1,926 207 osh-native-souffle
5 no-host configure.tcc 6,054 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,997 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,787 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,482 0 0 0 104 0 46 1 osh-native
37 no-host configure.tcc 6,430 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,906,105 2 0 0 42,400 0 18,419 1,171 bash
11 no-host configure.util-linux 2,070,046 1 0 0 42,584 0 17,279 1,303 dash
19 no-host configure.util-linux 5,232,604 9 0 0 39,136 0 17,014 1,178 osh-cpython
27 no-host configure.util-linux 1,812,102 0 0 0 39,120 0 16,985 1,159 osh-native
35 no-host configure.util-linux 1,799,367 0 0 0 39,128 0 16,944 1,133 osh-native-souffle
6 no-host configure.yash 233,713 0 0 0 4,120 0 870 83 bash
14 no-host configure.yash 222,388 0 0 0 3,720 0 868 92 dash
22 no-host configure.yash 367,670 0 0 0 3,728 0 853 98 osh-cpython
30 no-host configure.yash 234,330 0 0 0 3,736 0 845 81 osh-native
38 no-host configure.yash 234,084 0 0 0 3,736 0 847 79 osh-native-souffle
0 no-host hello-world 149 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,979 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-02c2cce8
dash dash-0ebcf347
osh-cpython osh-c70c8a5e
osh-native osh-a65eeb0b
osh-native-souffle osh-58444939
host label host id
no-host no-host-e4839999