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 465 22 21 23.79 1.15
bin-true no-host 685 556 2,341 825 821 3.41 1.20
configure.cpython no-host 15,580 15,564 29,779 15,653 15,775 1.91 1.00
configure.ocaml no-host 3,904 3,830 4,768 3,949 3,919 1.22 1.01
configure.tcc no-host 49 43 202 51 49 4.11 1.03
configure.util-linux no-host 14,486 15,310 32,281 14,948 14,762 2.23 1.03
configure.yash no-host 1,882 1,811 2,557 1,900 1,893 1.36 1.01
hello-world no-host 2 1 52 3 3 33.04 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,535 1,099 23,323 3,200 3,124 9.20 1.26
bin-true no-host 106,335 65,490 767,379 126,104 124,807 7.22 1.19
configure.cpython no-host 2,217,039 2,240,564 6,204,651 2,227,315 2,207,174 2.80 1.00
configure.ocaml no-host 410,814 390,609 646,227 412,949 412,144 1.57 1.01
configure.tcc no-host 6,570 5,469 23,619 6,987 6,911 3.59 1.06
configure.util-linux no-host 2,109,904 2,262,790 5,352,382 1,996,883 1,992,734 2.54 0.95
configure.yash no-host 255,059 244,198 387,489 257,593 258,354 1.52 1.01
hello-world no-host 151 81 3,735 346 345 24.74 2.29

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.8 9.0 8.7 4.88 2.03
bin-true no-host 2.9 1.4 17.4 8.1 7.9 6.05 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 27.1 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.4 19.4 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.5 24.4 1.01 1.01
hello-world no-host 2.8 1.4 17.6 6.3 5.8 6.38 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.1 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,653 1 62 15.0 27.4 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,948 3 63 21.3 30.1 2,703,490 29,745 65,870 109,675 1,320,579 1,273,236 27,391 41 131,740 1
configure.ocaml no-host 3,949 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,900 1 2 2.6 24.5 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 821 1 2 2.6 7.9 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,775 1 63 14.9 27.1 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,762 3 64 21.3 30.3 2,703,490 42,741 65,808 109,677 1,320,579 1,273,234 27,391 41 131,616 1
configure.ocaml no-host 3,919 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,893 1 2 2.6 24.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 11 9 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 465 425 43 21.8 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 685 518 199 2.9 bash
9 no-host bin-true 556 413 152 1.4 dash
17 no-host bin-true 2,341 1,562 1,053 17.4 osh-cpython
25 no-host bin-true 825 562 279 8.1 osh-native
33 no-host bin-true 821 573 260 7.9 osh-native-souffle
2 no-host configure.cpython 15,580 9,164 6,815 27.4 bash
10 no-host configure.cpython 15,564 9,426 6,566 27.4 dash
18 no-host configure.cpython 29,779 18,080 13,672 27.4 osh-cpython
26 no-host configure.cpython 15,653 9,084 6,840 27.4 osh-native
34 no-host configure.cpython 15,775 9,300 6,637 27.1 osh-native-souffle
4 no-host configure.ocaml 3,904 1,675 1,270 20.6 bash
12 no-host configure.ocaml 3,830 1,716 1,134 20.6 dash
20 no-host configure.ocaml 4,768 2,329 1,655 20.6 osh-cpython
28 no-host configure.ocaml 3,949 1,718 1,269 20.6 osh-native
36 no-host configure.ocaml 3,919 1,578 1,378 20.6 osh-native-souffle
5 no-host configure.tcc 49 29 20 19.4 bash
13 no-host configure.tcc 43 24 19 19.4 dash
21 no-host configure.tcc 202 144 63 19.4 osh-cpython
29 no-host configure.tcc 51 26 25 19.3 osh-native
37 no-host configure.tcc 49 25 25 19.3 osh-native-souffle
3 no-host configure.util-linux 14,486 8,915 6,024 30.1 bash
11 no-host configure.util-linux 15,310 9,288 6,518 30.1 dash
19 no-host configure.util-linux 32,281 21,352 12,064 30.0 osh-cpython
27 no-host configure.util-linux 14,948 8,925 6,238 30.1 osh-native
35 no-host configure.util-linux 14,762 8,853 6,107 30.3 osh-native-souffle
6 no-host configure.yash 1,882 1,095 797 24.4 bash
14 no-host configure.yash 1,811 1,060 756 24.4 dash
22 no-host configure.yash 2,557 1,541 1,063 24.5 osh-cpython
30 no-host configure.yash 1,900 1,088 816 24.5 osh-native
38 no-host configure.yash 1,893 1,166 732 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 52 35 17 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,535 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,323 0 0 0 8 0 45 8 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,124 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,335 0 0 0 8 0 1,987 77 bash
9 no-host bin-true 65,490 0 0 0 8 0 1,985 48 dash
17 no-host bin-true 767,379 0 0 0 8 0 2,000 511 osh-cpython
25 no-host bin-true 126,104 0 0 0 16 0 1,981 79 osh-native
33 no-host bin-true 124,807 0 0 0 16 0 1,991 83 osh-native-souffle
2 no-host configure.cpython 2,217,039 0 0 0 32,928 0 14,501 1,128 bash
10 no-host configure.cpython 2,240,564 0 0 0 32,992 0 14,683 1,046 dash
18 no-host configure.cpython 6,204,651 1 0 0 27,512 0 13,273 1,212 osh-cpython
26 no-host configure.cpython 2,227,315 0 0 0 27,520 0 13,266 1,052 osh-native
34 no-host configure.cpython 2,207,174 0 0 0 27,520 0 13,276 941 osh-native-souffle
4 no-host configure.ocaml 410,814 0 0 0 5,120 0 1,949 197 bash
12 no-host configure.ocaml 390,609 0 0 0 5,112 0 1,888 140 dash
20 no-host configure.ocaml 646,227 0 0 0 5,112 0 1,853 196 osh-cpython
28 no-host configure.ocaml 412,949 0 0 0 5,120 0 1,930 181 osh-native
36 no-host configure.ocaml 412,144 0 0 0 5,120 0 1,933 161 osh-native-souffle
5 no-host configure.tcc 6,570 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,619 0 0 0 96 0 54 7 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,911 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,109,904 0 0 0 42,400 0 18,523 1,130 bash
11 no-host configure.util-linux 2,262,790 0 0 0 42,592 0 17,463 1,220 dash
19 no-host configure.util-linux 5,352,382 7 0 0 39,136 0 16,992 1,389 osh-cpython
27 no-host configure.util-linux 1,996,883 1 0 0 39,128 0 17,047 1,191 osh-native
35 no-host configure.util-linux 1,992,734 2 0 0 39,136 0 16,954 951 osh-native-souffle
6 no-host configure.yash 255,059 0 0 0 4,120 0 869 70 bash
14 no-host configure.yash 244,198 0 0 0 3,720 0 869 77 dash
22 no-host configure.yash 387,489 0 0 0 3,728 0 855 85 osh-cpython
30 no-host configure.yash 257,593 0 0 0 3,736 0 851 78 osh-native
38 no-host configure.yash 258,354 0 0 0 3,736 0 844 83 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,735 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e0ca8878
dash dash-0ebcf347
osh-cpython osh-37da9d20
osh-native osh-4376a278
osh-native-souffle osh-5bef265d
host label host id
no-host no-host-556df3ee