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 17 10 21 25 21 1.29 1.25
bin-true no-host 655 454 855 863 717 1.30 1.09
configure.cpython no-host 14,531 14,635 14,292 14,321 14,290 0.98 0.98
configure.ocaml no-host 3,812 3,830 3,897 3,960 3,878 1.02 1.02
configure.tcc no-host 51 45 50 53 47 0.98 0.93
configure.util-linux no-host 13,381 14,180 13,179 13,492 13,389 0.98 1.00
configure.yash no-host 1,787 1,728 1,825 1,897 1,808 1.02 1.01
hello-world no-host 1 1 3 3 1 2.35 1.09

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,371 1,162 3,341 3,466 2,792 1.41 1.18
bin-true no-host 101,483 49,416 132,594 135,543 111,322 1.31 1.10
configure.cpython no-host 1,627,362 1,637,285 1,596,801 1,613,128 1,522,011 0.98 0.94
configure.ocaml no-host 298,708 280,897 306,169 307,809 299,682 1.02 1.00
configure.tcc no-host 5,201 4,216 5,578 5,726 5,113 1.07 0.98
configure.util-linux no-host 1,535,552 1,704,961 1,502,925 1,506,570 1,449,112 0.98 0.94
configure.yash no-host 173,478 159,562 176,856 177,236 172,703 1.02 1.00
hello-world no-host 151 86 389 399 181 2.58 1.20

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 3.8 9.6 10.1 6.4 2.03 1.36
bin-true no-host 3.1 1.4 8.8 8.8 5.1 2.79 1.62
configure.cpython no-host 34.5 34.5 34.5 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.0 26.3 26.2 26.3 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.6 39.5 39.6 39.6 0.99 1.00
configure.yash no-host 33.4 33.3 33.4 33.3 33.2 1.00 1.00
hello-world no-host 3.3 1.7 6.7 7.1 3.3 2.04 1.00

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.7 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 855 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 14,292 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,179 3 72 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,897 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 50 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,825 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 21 1 2 3.0 9.6 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 863 1 2 3.5 8.8 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 14,321 2 72 14.9 34.4 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,492 3 70 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,960 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 53 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,897 1 2 2.7 33.3 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 25 1 2 3.0 10.1 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 17 9 8 4.7 bash
15 no-host abuild-print-help 10 6 4 3.8 dash
23 no-host abuild-print-help 21 12 10 9.6 osh-native
31 no-host abuild-print-help 25 10 15 10.1 osh-nosouffle
39 no-host abuild-print-help 21 10 11 6.4 osh-static
1 no-host bin-true 655 327 368 3.1 bash
9 no-host bin-true 454 292 169 1.4 dash
17 no-host bin-true 855 303 569 8.8 osh-native
25 no-host bin-true 863 309 570 8.8 osh-nosouffle
33 no-host bin-true 717 316 419 5.1 osh-static
2 no-host configure.cpython 14,531 7,986 6,943 34.5 bash
10 no-host configure.cpython 14,635 8,055 7,007 34.5 dash
18 no-host configure.cpython 14,292 7,728 6,865 34.5 osh-native
26 no-host configure.cpython 14,321 7,708 6,928 34.4 osh-nosouffle
34 no-host configure.cpython 14,290 7,932 6,619 34.5 osh-static
4 no-host configure.ocaml 3,812 1,605 1,249 28.8 bash
12 no-host configure.ocaml 3,830 1,586 1,270 28.7 dash
20 no-host configure.ocaml 3,897 1,639 1,303 28.5 osh-native
28 no-host configure.ocaml 3,960 1,641 1,369 28.7 osh-nosouffle
36 no-host configure.ocaml 3,878 1,609 1,306 28.7 osh-static
5 no-host configure.tcc 51 31 20 26.0 bash
13 no-host configure.tcc 45 25 20 26.3 dash
21 no-host configure.tcc 50 22 28 26.2 osh-native
29 no-host configure.tcc 53 30 23 26.3 osh-nosouffle
37 no-host configure.tcc 47 25 23 26.3 osh-static
3 no-host configure.util-linux 13,381 7,058 6,826 39.7 bash
11 no-host configure.util-linux 14,180 7,020 7,693 39.6 dash
19 no-host configure.util-linux 13,179 6,534 6,877 39.5 osh-native
27 no-host configure.util-linux 13,492 6,731 7,000 39.6 osh-nosouffle
35 no-host configure.util-linux 13,389 6,823 6,795 39.6 osh-static
6 no-host configure.yash 1,787 1,010 786 33.4 bash
14 no-host configure.yash 1,728 1,003 727 33.3 dash
22 no-host configure.yash 1,825 1,049 779 33.4 osh-native
30 no-host configure.yash 1,897 1,059 840 33.3 osh-nosouffle
38 no-host configure.yash 1,808 1,024 786 33.2 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.7 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,371 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,162 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,341 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,466 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,792 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,483 0 0 0 8 0 1,998 60 bash
9 no-host bin-true 49,416 0 0 0 8 0 2,993 45 dash
17 no-host bin-true 132,594 0 0 0 16 0 1,997 89 osh-native
25 no-host bin-true 135,543 0 0 0 16 0 1,999 83 osh-nosouffle
33 no-host bin-true 111,322 0 0 0 8 0 1,997 82 osh-static
2 no-host configure.cpython 1,627,362 0 0 0 25,272 0 14,096 1,128 bash
10 no-host configure.cpython 1,637,285 0 0 0 25,272 0 14,116 1,042 dash
18 no-host configure.cpython 1,596,801 0 0 0 25,280 0 11,373 908 osh-native
26 no-host configure.cpython 1,613,128 0 0 0 25,280 0 11,406 911 osh-nosouffle
34 no-host configure.cpython 1,522,011 0 0 0 25,272 0 11,311 892 osh-static
4 no-host configure.ocaml 298,708 0 0 0 4,432 0 2,021 184 bash
12 no-host configure.ocaml 280,897 0 0 0 4,432 0 2,112 294 dash
20 no-host configure.ocaml 306,169 0 0 8 4,440 0 1,996 224 osh-native
28 no-host configure.ocaml 307,809 0 0 0 4,440 0 2,002 211 osh-nosouffle
36 no-host configure.ocaml 299,682 0 0 0 4,432 0 2,004 213 osh-static
5 no-host configure.tcc 5,201 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,578 0 0 0 96 0 44 4 osh-native
29 no-host configure.tcc 5,726 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,113 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,552 1 0 0 35,944 0 19,071 1,044 bash
11 no-host configure.util-linux 1,704,961 0 0 0 35,936 0 17,152 1,173 dash
19 no-host configure.util-linux 1,502,925 1 0 0 35,952 0 16,224 996 osh-native
27 no-host configure.util-linux 1,506,570 0 0 0 35,944 0 16,240 1,085 osh-nosouffle
35 no-host configure.util-linux 1,449,112 1 0 0 35,936 0 16,158 1,024 osh-static
6 no-host configure.yash 173,478 0 0 0 3,616 0 878 108 bash
14 no-host configure.yash 159,562 0 0 0 3,616 0 1,002 110 dash
22 no-host configure.yash 176,856 0 0 0 3,632 0 858 101 osh-native
30 no-host configure.yash 177,236 0 0 0 3,624 0 856 114 osh-nosouffle
38 no-host configure.yash 172,703 0 0 0 3,616 0 859 115 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 389 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 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-15f0433e
osh-nosouffle osh-769ba120
osh-static osh-static-71f8b2f8
host label host id
no-host no-host-9c670df1