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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 22 22 18 1.37 1.15
bin-true no-host 626 460 845 846 663 1.35 1.06
configure.cpython no-host 14,202 14,608 14,317 14,344 13,709 1.01 0.97
configure.ocaml no-host 3,749 3,755 3,866 3,898 3,782 1.03 1.01
configure.tcc no-host 48 42 51 48 45 1.07 0.94
configure.util-linux no-host 12,988 14,062 13,232 13,530 12,810 1.02 0.99
configure.yash no-host 1,779 1,716 1,789 1,810 1,748 1.01 0.98
hello-world no-host 1 1 3 3 1 2.40 0.99

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,348 1,166 3,300 3,444 2,797 1.41 1.19
bin-true no-host 102,431 49,430 137,569 137,571 111,336 1.34 1.09
configure.cpython no-host 1,626,902 1,639,320 1,593,477 1,608,981 1,521,768 0.98 0.94
configure.ocaml no-host 299,488 281,019 306,069 307,156 299,702 1.02 1.00
configure.tcc no-host 5,223 4,210 5,567 5,696 5,127 1.07 0.98
configure.util-linux no-host 1,537,695 1,700,565 1,506,803 1,511,416 1,448,949 0.98 0.94
configure.yash no-host 173,236 159,601 176,981 177,206 172,699 1.02 1.00
hello-world no-host 150 85 388 396 181 2.59 1.21

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.7 4.1 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.3 1.7 8.9 9.2 5.1 2.72 1.56
configure.cpython no-host 34.4 34.5 34.5 34.5 34.6 1.00 1.01
configure.ocaml no-host 28.7 28.7 28.5 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.8 39.6 39.5 39.6 39.7 0.99 1.00
configure.yash no-host 33.1 33.4 33.4 33.1 33.4 1.01 1.01
hello-world no-host 3.1 1.6 6.6 6.9 3.3 2.08 1.04

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.3 6.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 845 1 2 3.5 8.9 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 14,317 1 72 14.8 34.5 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 13,232 3 71 21.6 39.5 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,866 1 2 2.8 28.5 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 51 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,789 1 2 2.7 33.4 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.4 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 846 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 14,344 2 72 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 13,530 3 72 21.6 39.6 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,898 1 2 2.8 28.7 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,810 1 2 2.7 33.1 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,251 65,788 41,998 4,969 54,631 57,651 277 3 83,996 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 16 11 6 4.7 bash
15 no-host abuild-print-help 9 4 6 4.1 dash
23 no-host abuild-print-help 22 13 9 9.4 osh-native
31 no-host abuild-print-help 22 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 626 314 350 3.3 bash
9 no-host bin-true 460 288 177 1.7 dash
17 no-host bin-true 845 314 547 8.9 osh-native
25 no-host bin-true 846 318 543 9.2 osh-nosouffle
33 no-host bin-true 663 328 354 5.1 osh-static
2 no-host configure.cpython 14,202 7,800 6,790 34.4 bash
10 no-host configure.cpython 14,608 7,954 7,062 34.5 dash
18 no-host configure.cpython 14,317 7,579 7,021 34.5 osh-native
26 no-host configure.cpython 14,344 7,459 7,183 34.5 osh-nosouffle
34 no-host configure.cpython 13,709 7,388 6,564 34.6 osh-static
4 no-host configure.ocaml 3,749 1,526 1,266 28.7 bash
12 no-host configure.ocaml 3,755 1,537 1,242 28.7 dash
20 no-host configure.ocaml 3,866 1,515 1,391 28.5 osh-native
28 no-host configure.ocaml 3,898 1,551 1,388 28.7 osh-nosouffle
36 no-host configure.ocaml 3,782 1,504 1,309 28.7 osh-static
5 no-host configure.tcc 48 27 21 26.3 bash
13 no-host configure.tcc 42 24 19 26.1 dash
21 no-host configure.tcc 51 26 26 26.2 osh-native
29 no-host configure.tcc 48 25 23 26.2 osh-nosouffle
37 no-host configure.tcc 45 25 20 26.2 osh-static
3 no-host configure.util-linux 12,988 6,769 6,695 39.8 bash
11 no-host configure.util-linux 14,062 6,730 7,844 39.6 dash
19 no-host configure.util-linux 13,232 6,554 6,903 39.5 osh-native
27 no-host configure.util-linux 13,530 6,736 7,022 39.6 osh-nosouffle
35 no-host configure.util-linux 12,810 6,503 6,523 39.7 osh-static
6 no-host configure.yash 1,779 993 793 33.1 bash
14 no-host configure.yash 1,716 969 747 33.4 dash
22 no-host configure.yash 1,789 1,000 791 33.4 osh-native
30 no-host configure.yash 1,810 1,007 804 33.1 osh-nosouffle
38 no-host configure.yash 1,748 957 790 33.4 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.3 osh-static

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,348 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,166 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,300 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,444 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,797 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,431 0 0 0 8 0 1,997 73 bash
9 no-host bin-true 49,430 0 0 0 8 0 2,998 42 dash
17 no-host bin-true 137,569 0 0 0 16 0 1,999 78 osh-native
25 no-host bin-true 137,571 0 0 0 16 0 1,997 76 osh-nosouffle
33 no-host bin-true 111,336 0 0 0 8 0 1,999 71 osh-static
2 no-host configure.cpython 1,626,902 0 0 0 25,272 0 14,067 1,015 bash
10 no-host configure.cpython 1,639,320 0 0 0 25,272 0 14,111 1,026 dash
18 no-host configure.cpython 1,593,477 0 0 0 25,280 0 11,286 865 osh-native
26 no-host configure.cpython 1,608,981 0 0 0 25,280 0 11,301 835 osh-nosouffle
34 no-host configure.cpython 1,521,768 0 0 0 25,272 0 11,301 833 osh-static
4 no-host configure.ocaml 299,488 0 0 0 4,432 0 2,021 190 bash
12 no-host configure.ocaml 281,019 0 0 0 4,432 0 2,104 178 dash
20 no-host configure.ocaml 306,069 0 0 8 4,440 0 1,994 231 osh-native
28 no-host configure.ocaml 307,156 0 0 0 4,440 0 2,002 195 osh-nosouffle
36 no-host configure.ocaml 299,702 0 0 0 4,432 0 1,999 233 osh-static
5 no-host configure.tcc 5,223 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,567 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,696 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,127 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,537,695 0 0 0 35,944 0 18,965 1,089 bash
11 no-host configure.util-linux 1,700,565 0 0 0 35,936 0 17,098 1,285 dash
19 no-host configure.util-linux 1,506,803 1 0 0 35,952 0 16,142 887 osh-native
27 no-host configure.util-linux 1,511,416 2 0 0 35,944 0 16,212 941 osh-nosouffle
35 no-host configure.util-linux 1,448,949 2 0 0 35,944 0 16,123 881 osh-static
6 no-host configure.yash 173,236 0 0 0 3,616 0 875 102 bash
14 no-host configure.yash 159,601 0 0 0 3,616 0 998 113 dash
22 no-host configure.yash 176,981 0 0 0 3,624 0 857 99 osh-native
30 no-host configure.yash 177,206 0 0 0 3,624 0 853 109 osh-nosouffle
38 no-host configure.yash 172,699 0 0 0 3,616 0 857 282 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-035ea548
osh-nosouffle osh-33515fc3
osh-static osh-static-235ddb0e
host label host id
no-host no-host-9c670df1