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.11
bin-true no-host 618 448 804 815 659 1.30 1.07
configure.cpython no-host 14,134 14,401 13,386 13,511 13,052 0.95 0.92
configure.ocaml no-host 3,737 3,605 3,807 3,691 3,639 1.02 0.97
configure.tcc no-host 47 42 47 47 43 1.01 0.93
configure.util-linux no-host 12,916 13,678 12,498 12,512 12,101 0.97 0.94
configure.yash no-host 1,789 1,658 1,731 1,691 1,654 0.97 0.92
hello-world no-host 1 1 3 3 1 2.36 1.01

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,424 1,160 3,316 3,407 2,830 1.37 1.17
bin-true no-host 100,482 49,398 130,291 137,034 112,075 1.30 1.12
configure.cpython no-host 1,624,946 1,635,592 1,592,614 1,604,569 1,512,224 0.98 0.93
configure.ocaml no-host 298,993 280,971 305,736 307,051 300,176 1.02 1.00
configure.tcc no-host 5,198 4,190 5,583 5,683 5,112 1.07 0.98
configure.util-linux no-host 1,535,305 1,701,495 1,502,313 1,515,781 1,469,959 0.98 0.96
configure.yash no-host 173,172 159,494 176,675 177,317 172,798 1.02 1.00
hello-world no-host 150 84 393 398 184 2.62 1.23

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.6 3.9 9.4 10.1 6.3 2.06 1.37
bin-true no-host 3.3 1.4 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.5 34.6 34.5 34.5 34.3 1.00 0.99
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.1 26.3 26.2 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.8 39.5 39.9 39.6 0.99 1.00
configure.yash no-host 33.3 33.4 33.2 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.9 3.4 2.04 1.08

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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 804 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,386 1 67 14.8 34.5 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,498 3 65 21.6 39.5 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,807 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,731 1 2 2.7 33.2 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 815 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,511 1 65 14.9 34.5 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,512 3 65 21.6 39.9 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,691 1 2 2.8 28.7 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,691 1 2 2.7 33.4 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,239 65,805 42,012 4,980 54,601 57,658 277 3 84,024 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 5 12 4.6 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 21 10 12 9.4 osh-native
31 no-host abuild-print-help 22 11 12 10.1 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.3 osh-static
1 no-host bin-true 618 312 345 3.3 bash
9 no-host bin-true 448 277 178 1.4 dash
17 no-host bin-true 804 308 512 8.7 osh-native
25 no-host bin-true 815 309 522 9.2 osh-nosouffle
33 no-host bin-true 659 299 376 5.1 osh-static
2 no-host configure.cpython 14,134 7,744 6,796 34.5 bash
10 no-host configure.cpython 14,401 7,804 6,893 34.6 dash
18 no-host configure.cpython 13,386 7,210 6,457 34.5 osh-native
26 no-host configure.cpython 13,511 7,150 6,654 34.5 osh-nosouffle
34 no-host configure.cpython 13,052 7,222 6,068 34.3 osh-static
4 no-host configure.ocaml 3,737 1,505 1,275 28.7 bash
12 no-host configure.ocaml 3,605 1,459 1,170 28.6 dash
20 no-host configure.ocaml 3,807 1,531 1,315 28.7 osh-native
28 no-host configure.ocaml 3,691 1,474 1,258 28.7 osh-nosouffle
36 no-host configure.ocaml 3,639 1,482 1,188 28.7 osh-static
5 no-host configure.tcc 47 25 23 26.1 bash
13 no-host configure.tcc 42 23 19 26.1 dash
21 no-host configure.tcc 47 23 24 26.3 osh-native
29 no-host configure.tcc 47 22 25 26.2 osh-nosouffle
37 no-host configure.tcc 43 24 20 26.3 osh-static
3 no-host configure.util-linux 12,916 6,800 6,604 39.7 bash
11 no-host configure.util-linux 13,678 6,813 7,375 39.8 dash
19 no-host configure.util-linux 12,498 6,248 6,473 39.5 osh-native
27 no-host configure.util-linux 12,512 6,198 6,543 39.9 osh-nosouffle
35 no-host configure.util-linux 12,101 6,165 6,162 39.6 osh-static
6 no-host configure.yash 1,789 998 799 33.3 bash
14 no-host configure.yash 1,658 949 710 33.4 dash
22 no-host configure.yash 1,731 975 759 33.2 osh-native
30 no-host configure.yash 1,691 974 721 33.4 osh-nosouffle
38 no-host configure.yash 1,654 932 725 33.1 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 0 3 6.4 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.4 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,424 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,316 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,407 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,830 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,482 0 0 0 8 0 1,999 53 bash
9 no-host bin-true 49,398 0 0 0 8 0 2,996 43 dash
17 no-host bin-true 130,291 0 0 0 16 0 1,999 87 osh-native
25 no-host bin-true 137,034 0 0 0 16 0 1,997 82 osh-nosouffle
33 no-host bin-true 112,075 0 0 0 8 0 1,998 77 osh-static
2 no-host configure.cpython 1,624,946 0 0 0 25,272 0 14,084 1,034 bash
10 no-host configure.cpython 1,635,592 0 0 0 25,272 0 14,122 1,021 dash
18 no-host configure.cpython 1,592,614 0 0 0 25,280 0 11,296 851 osh-native
26 no-host configure.cpython 1,604,569 0 0 0 25,280 0 11,307 820 osh-nosouffle
34 no-host configure.cpython 1,512,224 1 0 0 25,272 0 11,301 841 osh-static
4 no-host configure.ocaml 298,993 0 0 0 4,432 0 2,017 191 bash
12 no-host configure.ocaml 280,971 0 0 0 4,432 0 2,095 203 dash
20 no-host configure.ocaml 305,736 0 0 0 4,440 0 2,000 210 osh-native
28 no-host configure.ocaml 307,051 0 0 0 4,440 0 2,002 192 osh-nosouffle
36 no-host configure.ocaml 300,176 0 0 0 4,432 0 2,004 234 osh-static
5 no-host configure.tcc 5,198 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,190 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,583 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,683 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,112 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,305 1 0 0 35,936 0 18,988 1,064 bash
11 no-host configure.util-linux 1,701,495 3 0 0 35,936 0 17,068 1,212 dash
19 no-host configure.util-linux 1,502,313 1 0 0 35,952 0 16,127 965 osh-native
27 no-host configure.util-linux 1,515,781 1 0 0 35,944 0 16,203 936 osh-nosouffle
35 no-host configure.util-linux 1,469,959 2 0 0 35,936 0 16,206 891 osh-static
6 no-host configure.yash 173,172 0 0 0 3,616 0 879 108 bash
14 no-host configure.yash 159,494 0 0 0 3,616 0 1,002 93 dash
22 no-host configure.yash 176,675 0 0 0 3,632 0 857 92 osh-native
30 no-host configure.yash 177,317 0 0 0 3,624 0 857 98 osh-nosouffle
38 no-host configure.yash 172,798 0 0 0 3,616 0 859 86 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 184 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-33fa061b
osh-nosouffle osh-dc891caf
osh-static osh-static-f86191d2
host label host id
no-host no-host-bba74091