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 13 7 17 19 16 1.37 1.24
bin-true no-host 455 311 615 614 492 1.35 1.08
configure.cpython no-host 11,715 11,713 11,585 11,578 11,168 0.99 0.95
configure.ocaml no-host 3,336 3,269 3,350 3,349 3,328 1.00 1.00
configure.tcc no-host 38 34 40 40 37 1.05 0.97
configure.util-linux no-host 10,473 11,041 10,581 10,652 10,276 1.01 0.98
configure.yash no-host 1,455 1,417 1,454 1,474 1,441 1.00 0.99
hello-world no-host 1 0 2 2 1 2.47 1.04

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,445 1,176 3,338 3,404 2,818 1.37 1.15
bin-true no-host 102,889 49,809 135,814 134,374 111,424 1.32 1.08
configure.cpython no-host 1,626,959 1,637,290 1,592,061 1,610,675 1,526,514 0.98 0.94
configure.ocaml no-host 300,290 281,459 306,220 307,755 301,564 1.02 1.00
configure.tcc no-host 5,260 4,229 5,647 5,733 5,172 1.07 0.98
configure.util-linux no-host 1,547,403 1,706,749 1,501,065 1,521,939 1,462,016 0.97 0.94
configure.yash no-host 173,451 159,915 177,077 177,811 173,366 1.02 1.00
hello-world no-host 155 87 391 400 181 2.52 1.17

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 5.0 4.1 9.6 9.8 6.4 1.92 1.29
bin-true no-host 3.0 1.6 8.8 9.3 5.2 2.91 1.74
configure.cpython no-host 34.4 34.5 34.6 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.8 28.6 28.7 28.9 28.9 1.00 1.01
configure.tcc no-host 26.0 26.1 26.2 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.9 39.8 39.5 39.7 39.5 0.99 0.99
configure.yash no-host 33.4 33.1 33.5 33.2 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.4 7.1 3.4 1.96 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 2 0 0 0.3 6.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 615 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 11,585 1 59 14.8 34.6 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,581 3 63 21.6 39.5 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,350 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,454 1 2 2.7 33.5 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 17 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 2 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 614 1 2 3.5 9.3 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 11,578 1 60 14.8 34.4 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,652 3 63 21.6 39.7 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,349 1 2 2.8 28.9 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,474 1 2 2.7 33.2 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 9.8 117,212 65,788 41,998 4,969 54,592 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 13 8 5 5.0 bash
15 no-host abuild-print-help 7 5 2 4.1 dash
23 no-host abuild-print-help 17 11 7 9.6 osh-native
31 no-host abuild-print-help 19 9 10 9.8 osh-nosouffle
39 no-host abuild-print-help 16 10 6 6.4 osh-static
1 no-host bin-true 455 284 201 3.0 bash
9 no-host bin-true 311 224 87 1.6 dash
17 no-host bin-true 615 321 305 8.8 osh-native
25 no-host bin-true 614 336 290 9.3 osh-nosouffle
33 no-host bin-true 492 301 203 5.2 osh-static
2 no-host configure.cpython 11,715 7,631 4,333 34.4 bash
10 no-host configure.cpython 11,713 7,694 4,274 34.5 dash
18 no-host configure.cpython 11,585 7,273 4,473 34.6 osh-native
26 no-host configure.cpython 11,578 7,257 4,493 34.4 osh-nosouffle
34 no-host configure.cpython 11,168 7,148 4,147 34.5 osh-static
4 no-host configure.ocaml 3,336 1,547 800 28.8 bash
12 no-host configure.ocaml 3,269 1,485 775 28.6 dash
20 no-host configure.ocaml 3,350 1,469 889 28.7 osh-native
28 no-host configure.ocaml 3,349 1,488 873 28.9 osh-nosouffle
36 no-host configure.ocaml 3,328 1,499 830 28.9 osh-static
5 no-host configure.tcc 38 22 15 26.0 bash
13 no-host configure.tcc 34 22 12 26.1 dash
21 no-host configure.tcc 40 23 17 26.2 osh-native
29 no-host configure.tcc 40 26 14 26.2 osh-nosouffle
37 no-host configure.tcc 37 26 11 26.3 osh-static
3 no-host configure.util-linux 10,473 6,728 4,085 39.9 bash
11 no-host configure.util-linux 11,041 6,577 4,811 39.8 dash
19 no-host configure.util-linux 10,581 6,373 4,331 39.5 osh-native
27 no-host configure.util-linux 10,652 6,335 4,442 39.7 osh-nosouffle
35 no-host configure.util-linux 10,276 6,280 4,116 39.5 osh-static
6 no-host configure.yash 1,455 950 499 33.4 bash
14 no-host configure.yash 1,417 921 482 33.1 dash
22 no-host configure.yash 1,454 941 505 33.5 osh-native
30 no-host configure.yash 1,474 951 513 33.2 osh-nosouffle
38 no-host configure.yash 1,441 943 486 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 0 0 0 1.6 dash
16 no-host hello-world 2 1 1 6.4 osh-native
24 no-host hello-world 2 2 0 7.1 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,445 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,338 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,404 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,818 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,889 0 0 0 8 0 1,998 51 bash
9 no-host bin-true 49,809 0 0 0 8 0 2,999 48 dash
17 no-host bin-true 135,814 0 0 0 16 0 1,998 81 osh-native
25 no-host bin-true 134,374 0 0 0 16 0 1,996 63 osh-nosouffle
33 no-host bin-true 111,424 0 0 0 8 0 1,997 64 osh-static
2 no-host configure.cpython 1,626,959 0 0 0 25,272 0 14,089 962 bash
10 no-host configure.cpython 1,637,290 0 0 0 25,272 0 14,118 970 dash
18 no-host configure.cpython 1,592,061 0 0 0 25,280 0 11,280 852 osh-native
26 no-host configure.cpython 1,610,675 1 0 0 25,280 0 11,305 818 osh-nosouffle
34 no-host configure.cpython 1,526,514 0 0 0 25,272 0 11,322 821 osh-static
4 no-host configure.ocaml 300,290 0 0 0 4,432 0 2,016 190 bash
12 no-host configure.ocaml 281,459 0 0 0 4,432 0 2,112 174 dash
20 no-host configure.ocaml 306,220 0 0 0 4,440 0 2,001 186 osh-native
28 no-host configure.ocaml 307,755 0 0 0 4,440 0 2,004 188 osh-nosouffle
36 no-host configure.ocaml 301,564 0 0 0 4,432 0 1,999 203 osh-static
5 no-host configure.tcc 5,260 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,229 0 0 0 88 0 51 4 dash
21 no-host configure.tcc 5,647 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,733 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,172 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,547,403 0 0 232 35,944 0 18,745 993 bash
11 no-host configure.util-linux 1,706,749 1 0 0 35,936 0 16,985 1,109 dash
19 no-host configure.util-linux 1,501,065 3 0 0 35,952 0 16,208 906 osh-native
27 no-host configure.util-linux 1,521,939 3 0 0 35,952 0 16,218 842 osh-nosouffle
35 no-host configure.util-linux 1,462,016 2 0 0 35,936 0 16,175 841 osh-static
6 no-host configure.yash 173,451 0 0 0 3,616 0 879 88 bash
14 no-host configure.yash 159,915 0 0 0 3,616 0 1,002 103 dash
22 no-host configure.yash 177,077 0 0 0 3,624 0 854 90 osh-native
30 no-host configure.yash 177,811 0 0 0 3,624 0 856 100 osh-nosouffle
38 no-host configure.yash 173,366 0 0 0 3,616 0 857 94 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 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 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-85fb5b2e
osh-nosouffle osh-dc89581d
osh-static osh-static-f824a6d4
host label host id
no-host no-host-9c670df1