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 15 9 20 21 18 1.28 1.18
bin-true no-host 610 437 788 800 643 1.29 1.05
configure.cpython no-host 13,360 13,436 13,043 13,112 12,568 0.98 0.94
configure.ocaml no-host 3,579 3,528 3,615 3,626 3,586 1.01 1.00
configure.tcc no-host 45 41 46 46 42 1.02 0.95
configure.util-linux no-host 12,179 12,951 12,145 12,258 11,779 1.00 0.97
configure.yash no-host 1,645 1,593 1,648 1,646 1,635 1.00 0.99
hello-world no-host 1 1 3 3 1 2.47 1.03

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,361 1,157 3,244 3,397 2,833 1.37 1.20
bin-true no-host 99,481 49,370 132,009 134,419 111,682 1.33 1.12
configure.cpython no-host 1,623,870 1,634,079 1,586,205 1,602,706 1,519,869 0.98 0.94
configure.ocaml no-host 298,731 280,509 305,979 307,363 300,182 1.02 1.00
configure.tcc no-host 5,218 4,213 5,537 5,654 5,119 1.06 0.98
configure.util-linux no-host 1,537,858 1,704,289 1,523,836 1,523,513 1,447,367 0.99 0.94
configure.yash no-host 173,204 159,614 176,349 176,595 172,971 1.02 1.00
hello-world no-host 152 84 393 400 182 2.59 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 4.1 9.4 10.1 6.4 2.00 1.36
bin-true no-host 3.1 1.6 8.7 9.2 5.1 2.75 1.62
configure.cpython no-host 34.4 34.4 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.5 28.6 28.7 0.99 1.00
configure.tcc no-host 26.2 26.0 26.3 26.1 26.0 1.00 0.99
configure.util-linux no-host 39.7 39.7 39.9 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.2 33.4 0.99 1.00
hello-world no-host 3.3 1.4 6.6 6.9 3.3 2.00 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.6 3,913 3,913 0 722 1,921 1,270 2 0 50,000 0
bin-true no-host 788 1 2 3.5 8.7 151,898 10,761 2,975 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 13,043 1 61 14.8 34.4 1,750,825 35,396 28,951 93,077 869,762 787,986 25,789 61 50,000 0
configure.util-linux no-host 12,145 3 60 21.6 39.9 2,705,391 37,468 66,339 119,745 1,291,872 1,293,774 32,527 42 132,678 1
configure.ocaml no-host 3,615 1 2 2.8 28.5 149,698 12,653 6,568 9,213 70,295 70,190 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,648 1 2 2.7 33.1 143,474 11,505 6,622 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,229 65,795 42,005 4,975 54,597 57,657 277 3 84,010 1
hello-world no-host 3 0 0 0.3 6.9 3,912 3,912 0 721 1,921 1,270 2 0 50,000 0
bin-true no-host 800 1 2 3.5 9.2 151,898 10,765 2,979 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 13,112 1 61 14.8 34.5 1,750,824 35,401 28,956 93,076 869,762 787,986 25,789 61 50,000 0
configure.util-linux no-host 12,258 3 61 21.6 39.6 2,705,391 37,474 66,345 119,745 1,291,872 1,293,774 32,527 42 132,690 1
configure.ocaml no-host 3,626 1 2 2.8 28.6 149,698 12,658 6,573 9,213 70,295 70,190 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,646 1 2 2.7 33.2 143,474 11,509 6,626 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,229 65,799 42,009 4,975 54,597 57,657 277 3 84,018 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 15 7 9 4.7 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 20 12 8 9.4 osh-native
31 no-host abuild-print-help 21 10 12 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.4 osh-static
1 no-host bin-true 610 304 342 3.1 bash
9 no-host bin-true 437 277 164 1.6 dash
17 no-host bin-true 788 310 494 8.7 osh-native
25 no-host bin-true 800 325 491 9.2 osh-nosouffle
33 no-host bin-true 643 305 355 5.1 osh-static
2 no-host configure.cpython 13,360 7,333 6,411 34.4 bash
10 no-host configure.cpython 13,436 7,409 6,423 34.4 dash
18 no-host configure.cpython 13,043 6,938 6,378 34.4 osh-native
26 no-host configure.cpython 13,112 6,935 6,459 34.5 osh-nosouffle
34 no-host configure.cpython 12,568 6,948 5,852 34.4 osh-static
4 no-host configure.ocaml 3,579 1,388 1,230 28.7 bash
12 no-host configure.ocaml 3,528 1,410 1,142 28.7 dash
20 no-host configure.ocaml 3,615 1,454 1,200 28.5 osh-native
28 no-host configure.ocaml 3,626 1,436 1,230 28.6 osh-nosouffle
36 no-host configure.ocaml 3,586 1,437 1,180 28.7 osh-static
5 no-host configure.tcc 45 23 22 26.2 bash
13 no-host configure.tcc 41 20 21 26.0 dash
21 no-host configure.tcc 46 22 24 26.3 osh-native
29 no-host configure.tcc 46 23 24 26.1 osh-nosouffle
37 no-host configure.tcc 42 28 15 26.0 osh-static
3 no-host configure.util-linux 12,179 6,429 6,211 39.7 bash
11 no-host configure.util-linux 12,951 6,315 7,123 39.7 dash
19 no-host configure.util-linux 12,145 5,960 6,404 39.9 osh-native
27 no-host configure.util-linux 12,258 6,037 6,449 39.6 osh-nosouffle
35 no-host configure.util-linux 11,779 6,079 5,912 39.6 osh-static
6 no-host configure.yash 1,645 909 745 33.4 bash
14 no-host configure.yash 1,593 919 677 33.4 dash
22 no-host configure.yash 1,648 909 742 33.1 osh-native
30 no-host configure.yash 1,646 936 713 33.2 osh-nosouffle
38 no-host configure.yash 1,635 950 688 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 0 3 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,361 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,244 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,397 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,481 0 0 0 8 0 1,998 54 bash
9 no-host bin-true 49,370 0 0 0 8 0 2,996 61 dash
17 no-host bin-true 132,009 0 0 0 16 0 1,997 79 osh-native
25 no-host bin-true 134,419 0 0 0 16 0 1,999 79 osh-nosouffle
33 no-host bin-true 111,682 0 0 0 8 0 2,000 51 osh-static
2 no-host configure.cpython 1,623,870 0 0 0 25,272 0 14,069 957 bash
10 no-host configure.cpython 1,634,079 0 0 0 25,272 0 14,120 995 dash
18 no-host configure.cpython 1,586,205 0 0 0 25,280 0 11,316 821 osh-native
26 no-host configure.cpython 1,602,706 0 0 0 25,280 0 11,305 831 osh-nosouffle
34 no-host configure.cpython 1,519,869 0 0 0 25,272 0 11,307 877 osh-static
4 no-host configure.ocaml 298,731 0 0 0 4,432 0 2,017 187 bash
12 no-host configure.ocaml 280,509 0 0 0 4,432 0 2,102 197 dash
20 no-host configure.ocaml 305,979 0 0 0 4,440 0 2,000 221 osh-native
28 no-host configure.ocaml 307,363 0 0 0 4,440 0 1,998 221 osh-nosouffle
36 no-host configure.ocaml 300,182 0 0 0 4,432 0 1,996 205 osh-static
5 no-host configure.tcc 5,218 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,537 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,654 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,537,858 1 0 0 35,944 0 18,969 981 bash
11 no-host configure.util-linux 1,704,289 0 0 496 35,936 0 17,102 1,211 dash
19 no-host configure.util-linux 1,523,836 1 0 0 35,952 0 16,144 934 osh-native
27 no-host configure.util-linux 1,523,513 3 0 0 35,952 0 16,230 979 osh-nosouffle
35 no-host configure.util-linux 1,447,367 1 0 0 35,936 0 16,226 856 osh-static
6 no-host configure.yash 173,204 0 0 0 3,616 0 878 95 bash
14 no-host configure.yash 159,614 0 0 0 3,616 0 1,001 94 dash
22 no-host configure.yash 176,349 0 0 0 3,624 0 858 99 osh-native
30 no-host configure.yash 176,595 0 0 0 3,624 0 857 106 osh-nosouffle
38 no-host configure.yash 172,971 0 0 0 3,624 0 859 91 osh-static
0 no-host hello-world 152 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 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 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-f836dafa
osh-nosouffle osh-8f6ba655
osh-static osh-static-3a518b95
host label host id
no-host no-host-9c670df1