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 20 10 457 22 21 23.24 1.14
bin-true no-host 679 549 2,272 815 821 3.35 1.20
configure.cpython no-host 15,233 15,292 28,928 15,429 15,407 1.90 1.01
configure.ocaml no-host 3,890 3,775 4,671 3,853 3,856 1.20 0.99
configure.tcc no-host 48 42 195 49 48 4.06 1.02
configure.util-linux no-host 14,194 15,168 31,368 14,499 14,421 2.21 1.02
configure.yash no-host 1,833 1,781 2,472 1,843 1,830 1.35 1.01
hello-world no-host 1 1 49 3 3 32.65 1.87

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,540 1,090 23,349 3,200 3,155 9.19 1.26
bin-true no-host 105,266 66,440 750,990 125,083 126,203 7.13 1.19
configure.cpython no-host 2,225,669 2,241,066 6,183,103 2,229,459 2,221,716 2.78 1.00
configure.ocaml no-host 410,796 390,872 645,062 413,674 412,918 1.57 1.01
configure.tcc no-host 6,537 5,456 23,510 6,996 6,927 3.60 1.07
configure.util-linux no-host 2,104,679 2,261,030 5,324,014 1,992,665 1,991,108 2.53 0.95
configure.yash no-host 256,436 245,041 387,002 258,330 256,461 1.51 1.01
hello-world no-host 150 82 3,730 349 341 24.87 2.33

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 21.9 8.9 8.7 4.91 2.00
bin-true no-host 2.9 1.4 17.7 8.0 7.6 6.14 2.77
configure.cpython no-host 27.4 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 19.1 1.00 1.01
configure.util-linux no-host 30.0 30.4 30.0 30.3 30.0 1.00 1.01
configure.yash no-host 24.4 24.1 24.5 24.2 24.4 1.01 0.99
hello-world no-host 2.8 1.4 17.7 6.0 5.9 6.43 2.19

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.0 3,710 3,710 0 691 1,832 1,187 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.0 154,675 12,909 2,811 9,741 78,301 66,633 3,008 3 50,000 0
configure.cpython no-host 15,429 1 66 14.9 27.5 1,772,657 49,101 28,521 86,394 908,053 778,210 22,694 60 50,000 0
configure.util-linux no-host 14,499 3 62 21.3 30.3 2,703,393 44,165 65,805 109,656 1,320,551 1,273,186 27,391 41 131,610 1
configure.ocaml no-host 3,853 1 2 2.6 20.6 150,027 10,986 5,156 7,526 71,585 70,916 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,516 30,516 0 1,517 14,756 14,243 226 0 50,000 0
configure.yash no-host 1,843 1 2 2.6 24.2 139,684 7,954 6,613 6,333 70,261 63,090 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,259 64,464 42,674 4,568 54,501 57,190 270 3 85,348 1
hello-world no-host 3 0 0 0.2 5.9 3,709 3,709 0 692 1,832 1,185 2 0 50,000 0
bin-true no-host 821 1 2 2.6 7.6 154,674 12,774 2,749 9,742 78,301 66,631 3,008 3 50,000 0
configure.cpython no-host 15,407 1 65 15.0 27.4 1,772,656 44,553 28,459 86,395 908,053 778,208 22,694 60 50,000 0
configure.util-linux no-host 14,421 3 62 21.3 30.0 2,703,393 44,639 65,762 109,658 1,320,551 1,273,184 27,391 41 131,524 1
configure.ocaml no-host 3,856 1 2 2.6 20.6 150,027 10,923 5,093 7,528 71,585 70,914 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,516 30,516 0 1,519 14,756 14,241 226 0 50,000 0
configure.yash no-host 1,830 1 2 2.6 24.4 139,684 7,892 6,551 6,335 70,261 63,088 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,258 64,402 42,612 4,569 54,501 57,188 270 3 85,224 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 20 13 7 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 457 418 42 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 679 499 212 2.9 bash
9 no-host bin-true 549 428 129 1.4 dash
17 no-host bin-true 2,272 1,496 1,039 17.7 osh-cpython
25 no-host bin-true 815 577 255 8.0 osh-native
33 no-host bin-true 821 591 245 7.6 osh-native-souffle
2 no-host configure.cpython 15,233 9,152 6,488 27.4 bash
10 no-host configure.cpython 15,292 9,050 6,666 27.4 dash
18 no-host configure.cpython 28,928 17,762 13,041 27.4 osh-cpython
26 no-host configure.cpython 15,429 9,034 6,664 27.5 osh-native
34 no-host configure.cpython 15,407 8,968 6,619 27.4 osh-native-souffle
4 no-host configure.ocaml 3,890 1,645 1,268 20.6 bash
12 no-host configure.ocaml 3,775 1,584 1,209 20.6 dash
20 no-host configure.ocaml 4,671 2,236 1,648 20.6 osh-cpython
28 no-host configure.ocaml 3,853 1,665 1,224 20.6 osh-native
36 no-host configure.ocaml 3,856 1,596 1,294 20.6 osh-native-souffle
5 no-host configure.tcc 48 34 15 19.3 bash
13 no-host configure.tcc 42 20 22 19.4 dash
21 no-host configure.tcc 195 132 66 19.3 osh-cpython
29 no-host configure.tcc 49 40 10 19.4 osh-native
37 no-host configure.tcc 48 26 23 19.1 osh-native-souffle
3 no-host configure.util-linux 14,194 8,906 5,776 30.0 bash
11 no-host configure.util-linux 15,168 9,227 6,434 30.4 dash
19 no-host configure.util-linux 31,368 20,850 11,599 30.0 osh-cpython
27 no-host configure.util-linux 14,499 8,605 6,085 30.3 osh-native
35 no-host configure.util-linux 14,421 8,546 6,061 30.0 osh-native-souffle
6 no-host configure.yash 1,833 1,063 779 24.4 bash
14 no-host configure.yash 1,781 980 805 24.1 dash
22 no-host configure.yash 2,472 1,596 919 24.5 osh-cpython
30 no-host configure.yash 1,843 1,040 807 24.2 osh-native
38 no-host configure.yash 1,830 1,024 810 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 29 20 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,540 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,349 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,155 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,266 0 0 0 8 0 1,989 113 bash
9 no-host bin-true 66,440 0 0 0 8 0 1,993 42 dash
17 no-host bin-true 750,990 0 0 0 8 0 1,988 180 osh-cpython
25 no-host bin-true 125,083 0 0 0 16 0 1,982 64 osh-native
33 no-host bin-true 126,203 0 0 0 16 0 1,993 138 osh-native-souffle
2 no-host configure.cpython 2,225,669 1 0 0 32,928 0 14,524 1,067 bash
10 no-host configure.cpython 2,241,066 0 0 0 32,992 0 14,701 1,268 dash
18 no-host configure.cpython 6,183,103 0 0 0 27,512 0 13,257 1,206 osh-cpython
26 no-host configure.cpython 2,229,459 0 0 0 27,520 0 13,204 987 osh-native
34 no-host configure.cpython 2,221,716 0 0 0 27,520 0 13,234 959 osh-native-souffle
4 no-host configure.ocaml 410,796 0 0 0 5,120 0 1,966 259 bash
12 no-host configure.ocaml 390,872 0 0 0 5,112 0 1,873 163 dash
20 no-host configure.ocaml 645,062 0 0 0 5,112 0 1,867 193 osh-cpython
28 no-host configure.ocaml 413,674 0 0 0 5,120 0 1,929 193 osh-native
36 no-host configure.ocaml 412,918 0 0 0 5,120 0 1,933 163 osh-native-souffle
5 no-host configure.tcc 6,537 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,456 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,510 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,927 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,104,679 0 0 0 42,400 0 18,763 1,011 bash
11 no-host configure.util-linux 2,261,030 0 0 0 42,584 0 17,454 1,066 dash
19 no-host configure.util-linux 5,324,014 6 0 0 39,112 0 16,992 1,292 osh-cpython
27 no-host configure.util-linux 1,992,665 0 0 0 39,128 0 16,939 935 osh-native
35 no-host configure.util-linux 1,991,108 0 0 0 39,136 0 16,972 1,182 osh-native-souffle
6 no-host configure.yash 256,436 0 0 0 4,120 0 867 79 bash
14 no-host configure.yash 245,041 0 0 0 3,720 0 870 70 dash
22 no-host configure.yash 387,002 0 0 0 3,728 0 853 101 osh-cpython
30 no-host configure.yash 258,330 0 0 0 3,736 0 852 82 osh-native
38 no-host configure.yash 256,461 0 0 0 3,736 0 849 73 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,730 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b5e87305
dash dash-0ebcf347
osh-cpython osh-2176e840
osh-native osh-07067b57
osh-native-souffle osh-07b47394
host label host id
no-host no-host-556df3ee