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 21 22 18 1.28 1.15
bin-true no-host 618 446 815 816 651 1.32 1.05
configure.cpython no-host 14,046 14,114 13,917 13,983 13,287 0.99 0.95
configure.ocaml no-host 3,689 3,654 3,828 3,736 3,705 1.04 1.00
configure.tcc no-host 46 42 49 48 44 1.06 0.95
configure.util-linux no-host 12,683 13,523 12,848 12,764 12,400 1.01 0.98
configure.yash no-host 1,735 1,683 1,723 1,725 1,708 0.99 0.98
hello-world no-host 1 1 3 3 1 2.47 1.05

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,358 1,198 3,330 3,413 2,805 1.41 1.19
bin-true no-host 103,458 49,440 138,911 138,605 111,300 1.34 1.08
configure.cpython no-host 1,621,386 1,640,444 1,589,457 1,604,379 1,522,221 0.98 0.94
configure.ocaml no-host 298,907 280,481 305,339 307,145 299,699 1.02 1.00
configure.tcc no-host 5,232 4,237 5,618 5,650 5,129 1.07 0.98
configure.util-linux no-host 1,535,396 1,697,084 1,497,006 1,504,552 1,450,279 0.97 0.94
configure.yash no-host 173,363 159,525 176,772 177,254 172,761 1.02 1.00
hello-world no-host 150 89 388 397 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 3.8 9.6 10.0 6.4 2.03 1.36
bin-true no-host 3.1 1.6 8.9 9.0 5.1 2.83 1.62
configure.cpython no-host 34.4 34.4 34.7 34.7 34.4 1.01 1.00
configure.ocaml no-host 28.6 28.5 28.8 28.6 28.5 1.01 1.00
configure.tcc no-host 26.3 26.3 26.3 26.2 26.4 1.00 1.01
configure.util-linux no-host 39.8 39.5 39.5 39.9 39.6 0.99 1.00
configure.yash no-host 33.3 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.7 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 815 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 13,917 2 70 14.8 34.7 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,848 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,828 1 2 2.8 28.8 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 49 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,723 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 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 816 1 2 3.5 9.0 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,983 1 72 14.9 34.7 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,764 3 71 21.6 39.9 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,736 1 2 2.8 28.6 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,725 1 2 2.7 33.4 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 9 7 4.7 bash
15 no-host abuild-print-help 9 4 6 3.8 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.4 osh-static
1 no-host bin-true 618 299 356 3.1 bash
9 no-host bin-true 446 273 178 1.6 dash
17 no-host bin-true 815 310 520 8.9 osh-native
25 no-host bin-true 816 316 518 9.0 osh-nosouffle
33 no-host bin-true 651 324 344 5.1 osh-static
2 no-host configure.cpython 14,046 7,668 6,755 34.4 bash
10 no-host configure.cpython 14,114 7,661 6,860 34.4 dash
18 no-host configure.cpython 13,917 7,332 6,836 34.7 osh-native
26 no-host configure.cpython 13,983 7,419 6,851 34.7 osh-nosouffle
34 no-host configure.cpython 13,287 7,285 6,240 34.4 osh-static
4 no-host configure.ocaml 3,689 1,474 1,255 28.6 bash
12 no-host configure.ocaml 3,654 1,473 1,200 28.5 dash
20 no-host configure.ocaml 3,828 1,527 1,338 28.8 osh-native
28 no-host configure.ocaml 3,736 1,478 1,299 28.6 osh-nosouffle
36 no-host configure.ocaml 3,705 1,515 1,220 28.5 osh-static
5 no-host configure.tcc 46 25 21 26.3 bash
13 no-host configure.tcc 42 20 23 26.3 dash
21 no-host configure.tcc 49 21 28 26.3 osh-native
29 no-host configure.tcc 48 22 26 26.2 osh-nosouffle
37 no-host configure.tcc 44 21 23 26.4 osh-static
3 no-host configure.util-linux 12,683 6,751 6,396 39.8 bash
11 no-host configure.util-linux 13,523 6,624 7,392 39.5 dash
19 no-host configure.util-linux 12,848 6,308 6,744 39.5 osh-native
27 no-host configure.util-linux 12,764 6,275 6,711 39.9 osh-nosouffle
35 no-host configure.util-linux 12,400 6,305 6,307 39.6 osh-static
6 no-host configure.yash 1,735 968 775 33.3 bash
14 no-host configure.yash 1,683 979 705 33.4 dash
22 no-host configure.yash 1,723 953 772 33.4 osh-native
30 no-host configure.yash 1,725 956 771 33.4 osh-nosouffle
38 no-host configure.yash 1,708 980 730 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 3 0 6.9 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,358 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,198 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,330 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,413 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,805 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 103,458 0 0 0 8 0 2,000 86 bash
9 no-host bin-true 49,440 0 0 0 8 0 2,992 65 dash
17 no-host bin-true 138,911 0 0 0 16 0 1,997 88 osh-native
25 no-host bin-true 138,605 0 0 0 16 0 1,999 68 osh-nosouffle
33 no-host bin-true 111,300 0 0 0 8 0 1,999 71 osh-static
2 no-host configure.cpython 1,621,386 0 0 0 25,272 0 14,074 1,015 bash
10 no-host configure.cpython 1,640,444 0 0 0 25,272 0 14,121 1,036 dash
18 no-host configure.cpython 1,589,457 0 0 0 25,280 0 11,299 858 osh-native
26 no-host configure.cpython 1,604,379 0 0 0 25,280 0 11,294 863 osh-nosouffle
34 no-host configure.cpython 1,522,221 0 0 0 25,272 0 11,302 803 osh-static
4 no-host configure.ocaml 298,907 0 0 0 4,432 0 2,017 178 bash
12 no-host configure.ocaml 280,481 0 0 0 4,432 0 2,105 221 dash
20 no-host configure.ocaml 305,339 0 0 8 4,440 0 1,998 229 osh-native
28 no-host configure.ocaml 307,145 0 0 0 4,440 0 1,999 217 osh-nosouffle
36 no-host configure.ocaml 299,699 0 0 0 4,432 0 1,999 231 osh-static
5 no-host configure.tcc 5,232 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,237 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,618 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,650 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,535,396 0 0 0 35,944 0 18,993 1,055 bash
11 no-host configure.util-linux 1,697,084 1 0 0 35,936 0 17,111 1,175 dash
19 no-host configure.util-linux 1,497,006 1 0 0 35,952 0 16,194 880 osh-native
27 no-host configure.util-linux 1,504,552 0 0 0 35,944 0 16,204 884 osh-nosouffle
35 no-host configure.util-linux 1,450,279 2 0 0 35,936 0 16,217 900 osh-static
6 no-host configure.yash 173,363 0 0 0 3,616 0 885 100 bash
14 no-host configure.yash 159,525 0 0 0 3,616 0 1,003 96 dash
22 no-host configure.yash 176,772 0 0 0 3,632 0 861 108 osh-native
30 no-host configure.yash 177,254 0 0 0 3,624 0 857 98 osh-nosouffle
38 no-host configure.yash 172,761 0 0 0 3,616 0 855 111 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 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 397 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-f6817cf2
osh-nosouffle osh-6aff9066
osh-static osh-static-8af3c5f6
host label host id
no-host no-host-9c670df1