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 22 18 1.29 1.18
bin-true no-host 622 448 805 800 663 1.29 1.07
configure.cpython no-host 13,741 13,893 13,488 13,437 13,120 0.98 0.95
configure.ocaml no-host 3,686 3,614 3,699 3,736 3,707 1.00 1.01
configure.tcc no-host 45 40 46 47 43 1.01 0.95
configure.util-linux no-host 12,457 13,323 12,451 12,494 12,404 1.00 1.00
configure.yash no-host 1,703 1,642 1,696 1,729 1,692 1.00 0.99
hello-world no-host 1 1 3 3 1 2.52 1.06

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,413 1,187 3,273 3,411 2,855 1.36 1.18
bin-true no-host 104,337 49,396 133,999 131,344 112,656 1.28 1.08
configure.cpython no-host 1,625,012 1,638,023 1,590,685 1,596,878 1,522,682 0.98 0.94
configure.ocaml no-host 299,060 280,710 306,010 307,127 300,074 1.02 1.00
configure.tcc no-host 5,220 4,202 5,588 5,726 5,132 1.07 0.98
configure.util-linux no-host 1,539,307 1,696,615 1,496,181 1,518,222 1,477,337 0.97 0.96
configure.yash no-host 173,103 159,488 176,954 176,705 173,033 1.02 1.00
hello-world no-host 154 88 391 397 182 2.54 1.18

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 3.9 9.4 10.0 6.4 1.89 1.29
bin-true no-host 3.3 1.7 8.8 9.2 5.4 2.68 1.64
configure.cpython no-host 34.4 34.7 34.4 34.4 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.3 26.3 1.00 1.00
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.1 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.3 1.7 6.6 6.9 3.4 2.00 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,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 805 1 2 3.5 8.8 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,488 1 67 14.8 34.4 1,750,789 35,388 28,945 93,077 869,747 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,451 3 66 21.6 39.5 2,705,325 37,460 66,333 119,745 1,291,842 1,293,738 32,527 42 132,666 1
configure.ocaml no-host 3,699 1 2 2.8 28.6 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,696 1 2 2.7 33.4 143,454 11,460 6,616 7,164 70,518 65,772 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 800 1 2 3.5 9.2 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,437 1 65 14.8 34.4 1,750,788 35,393 28,950 93,076 869,747 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,494 3 64 21.6 39.6 2,705,325 37,466 66,339 119,745 1,291,842 1,293,738 32,527 42 132,678 1
configure.ocaml no-host 3,736 1 2 2.8 28.7 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,729 1 2 2.7 33.3 143,454 11,464 6,620 7,164 70,518 65,772 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 10 6 5.0 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 20 8 12 9.4 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 622 293 365 3.3 bash
9 no-host bin-true 448 282 169 1.7 dash
17 no-host bin-true 805 309 511 8.8 osh-native
25 no-host bin-true 800 304 512 9.2 osh-nosouffle
33 no-host bin-true 663 328 352 5.4 osh-static
2 no-host configure.cpython 13,741 7,538 6,587 34.4 bash
10 no-host configure.cpython 13,893 7,567 6,729 34.7 dash
18 no-host configure.cpython 13,488 7,142 6,623 34.4 osh-native
26 no-host configure.cpython 13,437 7,153 6,565 34.4 osh-nosouffle
34 no-host configure.cpython 13,120 7,201 6,159 34.4 osh-static
4 no-host configure.ocaml 3,686 1,490 1,238 28.7 bash
12 no-host configure.ocaml 3,614 1,465 1,174 28.7 dash
20 no-host configure.ocaml 3,699 1,473 1,264 28.6 osh-native
28 no-host configure.ocaml 3,736 1,485 1,292 28.7 osh-nosouffle
36 no-host configure.ocaml 3,707 1,488 1,249 28.7 osh-static
5 no-host configure.tcc 45 27 19 26.2 bash
13 no-host configure.tcc 40 22 19 26.2 dash
21 no-host configure.tcc 46 28 18 26.2 osh-native
29 no-host configure.tcc 47 25 23 26.3 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.3 osh-static
3 no-host configure.util-linux 12,457 6,465 6,456 39.7 bash
11 no-host configure.util-linux 13,323 6,502 7,307 39.6 dash
19 no-host configure.util-linux 12,451 6,155 6,516 39.5 osh-native
27 no-host configure.util-linux 12,494 6,159 6,557 39.6 osh-nosouffle
35 no-host configure.util-linux 12,404 6,380 6,246 39.6 osh-static
6 no-host configure.yash 1,703 999 713 33.4 bash
14 no-host configure.yash 1,642 954 691 33.1 dash
22 no-host configure.yash 1,696 960 739 33.4 osh-native
30 no-host configure.yash 1,729 965 767 33.3 osh-nosouffle
38 no-host configure.yash 1,692 953 741 33.4 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.6 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 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,413 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,187 0 0 0 8 0 41 0 dash
23 no-host abuild-print-help 3,273 0 0 0 16 0 38 2 osh-native
31 no-host abuild-print-help 3,411 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,855 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 104,337 0 0 0 8 0 1,996 69 bash
9 no-host bin-true 49,396 0 0 0 8 0 2,994 81 dash
17 no-host bin-true 133,999 0 0 0 16 0 1,998 85 osh-native
25 no-host bin-true 131,344 0 0 0 16 0 1,999 75 osh-nosouffle
33 no-host bin-true 112,656 0 0 0 8 0 1,996 58 osh-static
2 no-host configure.cpython 1,625,012 0 0 0 25,272 0 14,075 1,062 bash
10 no-host configure.cpython 1,638,023 0 0 0 25,272 0 14,117 991 dash
18 no-host configure.cpython 1,590,685 0 0 0 25,280 0 11,302 856 osh-native
26 no-host configure.cpython 1,596,878 0 0 0 25,280 0 11,317 840 osh-nosouffle
34 no-host configure.cpython 1,522,682 0 0 0 25,272 0 11,308 849 osh-static
4 no-host configure.ocaml 299,060 0 0 0 4,432 0 2,016 179 bash
12 no-host configure.ocaml 280,710 0 0 0 4,432 0 2,094 181 dash
20 no-host configure.ocaml 306,010 0 0 0 4,440 0 2,006 214 osh-native
28 no-host configure.ocaml 307,127 0 0 0 4,440 0 1,996 190 osh-nosouffle
36 no-host configure.ocaml 300,074 0 0 0 4,432 0 1,997 233 osh-static
5 no-host configure.tcc 5,220 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,588 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,726 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,132 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,539,307 1 0 0 35,944 0 18,977 1,023 bash
11 no-host configure.util-linux 1,696,615 1 0 336 35,936 0 17,107 1,216 dash
19 no-host configure.util-linux 1,496,181 1 0 0 35,952 0 16,098 888 osh-native
27 no-host configure.util-linux 1,518,222 1 0 0 35,944 0 16,219 979 osh-nosouffle
35 no-host configure.util-linux 1,477,337 1 0 0 35,936 0 16,199 915 osh-static
6 no-host configure.yash 173,103 0 0 0 3,616 0 877 99 bash
14 no-host configure.yash 159,488 0 0 0 3,624 0 998 100 dash
22 no-host configure.yash 176,954 0 0 0 3,624 0 857 98 osh-native
30 no-host configure.yash 176,705 0 0 0 3,624 0 856 106 osh-nosouffle
38 no-host configure.yash 173,033 0 0 0 3,616 0 853 102 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 397 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-7d67f0ca
osh-nosouffle osh-eaf13889
osh-static osh-static-2603c51d
host label host id
no-host no-host-9c670df1