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 467 21 20 25.24 1.15
bin-true no-host 659 531 2,276 791 791 3.45 1.20
configure.cpython no-host 14,606 14,686 28,242 14,785 14,691 1.93 1.01
configure.ocaml no-host 3,746 3,656 4,568 3,742 3,737 1.22 1.00
configure.tcc no-host 46 40 200 48 47 4.36 1.04
configure.util-linux no-host 13,679 14,379 30,978 13,944 13,794 2.26 1.02
configure.yash no-host 1,845 1,737 2,421 1,783 1,784 1.31 0.97
hello-world no-host 1 1 55 3 3 43.94 2.23

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,515 1,122 23,563 3,171 3,073 9.37 1.26
bin-true no-host 106,407 65,423 758,127 125,158 126,244 7.12 1.18
configure.cpython no-host 1,993,517 2,022,048 5,992,429 2,013,345 1,982,901 3.01 1.01
configure.ocaml no-host 373,187 353,518 606,100 375,925 375,815 1.62 1.01
configure.tcc no-host 6,070 5,016 23,415 6,474 6,453 3.86 1.07
configure.util-linux no-host 1,907,290 2,071,265 5,165,987 1,810,388 1,798,550 2.71 0.95
configure.yash no-host 233,637 221,682 364,258 234,506 234,852 1.56 1.00
hello-world no-host 146 80 3,953 343 334 27.08 2.35

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.7 9.0 8.7 5.10 2.03
bin-true no-host 2.9 1.4 18.4 8.3 7.6 6.38 2.86
configure.cpython no-host 29.1 29.3 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.6 19.4 19.7 19.7 19.8 1.01 1.01
configure.util-linux no-host 30.2 30.3 30.3 30.4 30.2 1.00 1.00
configure.yash no-host 26.4 26.4 26.4 26.5 26.4 1.00 1.00
hello-world no-host 2.8 1.4 18.4 6.3 5.8 6.68 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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.3 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,785 1 66 14.9 29.2 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 13,944 3 64 21.2 30.4 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,742 1 2 2.6 22.5 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,783 1 2 2.5 26.5 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.8 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 791 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 14,691 1 64 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 13,794 3 61 21.2 30.2 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,737 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,784 1 2 2.5 26.4 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,298 64,348 42,558 4,533 54,439 57,326 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 10 9 4.5 bash
15 no-host abuild-print-help 9 5 4 3.4 dash
23 no-host abuild-print-help 467 425 46 22.7 osh-cpython
31 no-host abuild-print-help 21 12 10 9.0 osh-native
39 no-host abuild-print-help 20 10 11 8.7 osh-native-souffle
1 no-host bin-true 659 303 389 2.9 bash
9 no-host bin-true 531 283 259 1.4 dash
17 no-host bin-true 2,276 786 1,749 18.4 osh-cpython
25 no-host bin-true 791 296 511 8.3 osh-native
33 no-host bin-true 791 301 505 7.6 osh-native-souffle
2 no-host configure.cpython 14,606 6,527 8,480 29.1 bash
10 no-host configure.cpython 14,686 6,665 8,449 29.3 dash
18 no-host configure.cpython 28,242 14,119 15,975 29.2 osh-cpython
26 no-host configure.cpython 14,785 6,448 8,616 29.2 osh-native
34 no-host configure.cpython 14,691 6,507 8,448 29.2 osh-native-souffle
4 no-host configure.ocaml 3,746 1,268 1,511 22.6 bash
12 no-host configure.ocaml 3,656 1,270 1,407 22.6 dash
20 no-host configure.ocaml 4,568 1,856 1,923 22.6 osh-cpython
28 no-host configure.ocaml 3,742 1,317 1,466 22.5 osh-native
36 no-host configure.ocaml 3,737 1,271 1,504 22.6 osh-native-souffle
5 no-host configure.tcc 46 25 22 19.6 bash
13 no-host configure.tcc 40 18 22 19.4 dash
21 no-host configure.tcc 200 144 60 19.7 osh-cpython
29 no-host configure.tcc 48 19 29 19.7 osh-native
37 no-host configure.tcc 47 28 20 19.8 osh-native-souffle
3 no-host configure.util-linux 13,679 5,863 8,307 30.2 bash
11 no-host configure.util-linux 14,379 5,783 9,111 30.3 dash
19 no-host configure.util-linux 30,978 17,718 14,365 30.3 osh-cpython
27 no-host configure.util-linux 13,944 5,543 8,622 30.4 osh-native
35 no-host configure.util-linux 13,794 5,532 8,478 30.2 osh-native-souffle
6 no-host configure.yash 1,845 919 928 26.4 bash
14 no-host configure.yash 1,737 887 853 26.4 dash
22 no-host configure.yash 2,421 1,335 1,128 26.4 osh-cpython
30 no-host configure.yash 1,783 909 879 26.5 osh-native
38 no-host configure.yash 1,784 887 902 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 36 19 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 2 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,515 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,563 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 106,407 0 0 0 8 0 1,972 192 bash
9 no-host bin-true 65,423 0 0 0 8 0 1,978 80 dash
17 no-host bin-true 758,127 0 0 0 8 0 1,982 206 osh-cpython
25 no-host bin-true 125,158 0 0 0 16 0 1,969 97 osh-native
33 no-host bin-true 126,244 0 0 0 16 0 1,984 286 osh-native-souffle
2 no-host configure.cpython 1,993,517 0 0 0 32,928 0 14,309 1,211 bash
10 no-host configure.cpython 2,022,048 0 0 0 32,992 0 14,322 1,091 dash
18 no-host configure.cpython 5,992,429 0 0 0 27,512 0 13,033 1,212 osh-cpython
26 no-host configure.cpython 2,013,345 0 0 0 27,520 0 13,127 1,130 osh-native
34 no-host configure.cpython 1,982,901 0 0 0 27,520 0 13,082 1,111 osh-native-souffle
4 no-host configure.ocaml 373,187 0 0 0 5,120 0 1,951 186 bash
12 no-host configure.ocaml 353,518 0 0 0 5,112 0 1,934 172 dash
20 no-host configure.ocaml 606,100 0 0 0 5,112 0 1,853 179 osh-cpython
28 no-host configure.ocaml 375,925 0 0 0 5,120 0 1,924 170 osh-native
36 no-host configure.ocaml 375,815 0 0 0 5,120 0 1,925 182 osh-native-souffle
5 no-host configure.tcc 6,070 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,016 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,415 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,474 0 0 0 104 0 46 6 osh-native
37 no-host configure.tcc 6,453 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,907,290 0 0 0 42,400 0 18,481 1,274 bash
11 no-host configure.util-linux 2,071,265 0 0 0 42,592 0 17,333 1,411 dash
19 no-host configure.util-linux 5,165,987 3 0 0 39,112 0 17,055 1,327 osh-cpython
27 no-host configure.util-linux 1,810,388 0 0 0 39,120 0 17,006 1,213 osh-native
35 no-host configure.util-linux 1,798,550 0 0 0 39,128 0 16,975 1,155 osh-native-souffle
6 no-host configure.yash 233,637 0 0 0 4,120 0 888 80 bash
14 no-host configure.yash 221,682 0 0 0 3,720 0 874 87 dash
22 no-host configure.yash 364,258 0 0 0 3,728 0 853 89 osh-cpython
30 no-host configure.yash 234,506 0 0 0 3,736 0 848 83 osh-native
38 no-host configure.yash 234,852 0 0 0 3,736 0 851 89 osh-native-souffle
0 no-host hello-world 146 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,953 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 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e00cd04a
dash dash-0ebcf347
osh-cpython osh-85c26bd2
osh-native osh-9ce2ead9
osh-native-souffle osh-8c4ac569
host label host id
no-host no-host-e4839999