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 12 7 18 18 16 1.46 1.27
bin-true no-host 469 300 569 630 470 1.21 1.00
configure.cpython no-host 11,836 11,598 11,572 11,390 10,891 0.98 0.92
configure.ocaml no-host 3,359 3,195 3,424 3,291 3,239 1.02 0.96
configure.tcc no-host 38 35 43 40 36 1.13 0.94
configure.util-linux no-host 10,388 10,740 10,459 10,307 10,109 1.01 0.97
configure.yash no-host 1,444 1,376 1,546 1,452 1,409 1.07 0.98
hello-world no-host 1 1 2 2 1 2.00 0.95

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,444 1,200 3,330 3,436 2,856 1.36 1.17
bin-true no-host 103,920 49,829 128,458 132,787 113,183 1.24 1.09
configure.cpython no-host 1,637,435 1,649,522 1,596,114 1,603,063 1,527,893 0.97 0.93
configure.ocaml no-host 300,195 281,411 306,449 307,889 301,102 1.02 1.00
configure.tcc no-host 5,258 4,234 5,623 5,713 5,148 1.07 0.98
configure.util-linux no-host 1,540,762 1,707,817 1,498,758 1,519,171 1,455,949 0.97 0.94
configure.yash no-host 173,916 159,923 176,827 177,238 173,311 1.02 1.00
hello-world no-host 156 85 391 402 183 2.51 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 4.8 4.1 9.4 10.0 6.4 1.95 1.32
bin-true no-host 3.1 1.6 8.8 9.2 5.4 2.79 1.71
configure.cpython no-host 34.8 34.8 34.5 34.5 34.5 0.99 0.99
configure.ocaml no-host 28.9 28.8 28.8 28.8 28.8 0.99 1.00
configure.tcc no-host 26.2 26.0 26.3 26.3 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.6 39.6 39.6 39.5 1.00 0.99
configure.yash no-host 33.5 33.5 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.4 1.6 6.6 7.1 3.4 1.92 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 2 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 569 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 11,572 1 59 14.8 34.5 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,459 3 63 21.6 39.6 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,424 1 2 2.8 28.8 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 43 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,546 1 2 2.7 33.4 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 18 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 2 0 0 0.3 7.1 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 630 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 11,390 1 61 14.8 34.5 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,307 4 64 21.6 39.6 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,291 1 2 2.8 28.8 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 40 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,452 1 2 2.7 33.4 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 18 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 12 6 7 4.8 bash
15 no-host abuild-print-help 7 4 3 4.1 dash
23 no-host abuild-print-help 18 10 8 9.4 osh-native
31 no-host abuild-print-help 18 11 7 10.0 osh-nosouffle
39 no-host abuild-print-help 16 12 5 6.4 osh-static
1 no-host bin-true 469 286 206 3.1 bash
9 no-host bin-true 300 222 78 1.6 dash
17 no-host bin-true 569 309 271 8.8 osh-native
25 no-host bin-true 630 310 329 9.2 osh-nosouffle
33 no-host bin-true 470 283 199 5.4 osh-static
2 no-host configure.cpython 11,836 7,648 4,460 34.8 bash
10 no-host configure.cpython 11,598 7,573 4,277 34.8 dash
18 no-host configure.cpython 11,572 7,223 4,507 34.5 osh-native
26 no-host configure.cpython 11,390 7,044 4,529 34.5 osh-nosouffle
34 no-host configure.cpython 10,891 7,042 4,010 34.5 osh-static
4 no-host configure.ocaml 3,359 1,519 856 28.9 bash
12 no-host configure.ocaml 3,195 1,476 723 28.8 dash
20 no-host configure.ocaml 3,424 1,535 908 28.8 osh-native
28 no-host configure.ocaml 3,291 1,469 842 28.8 osh-nosouffle
36 no-host configure.ocaml 3,239 1,472 784 28.8 osh-static
5 no-host configure.tcc 38 23 15 26.2 bash
13 no-host configure.tcc 35 27 8 26.0 dash
21 no-host configure.tcc 43 26 16 26.3 osh-native
29 no-host configure.tcc 40 23 17 26.3 osh-nosouffle
37 no-host configure.tcc 36 21 15 26.3 osh-static
3 no-host configure.util-linux 10,388 6,619 4,104 39.7 bash
11 no-host configure.util-linux 10,740 6,583 4,515 39.6 dash
19 no-host configure.util-linux 10,459 6,230 4,364 39.6 osh-native
27 no-host configure.util-linux 10,307 6,193 4,259 39.6 osh-nosouffle
35 no-host configure.util-linux 10,109 6,188 4,056 39.5 osh-static
6 no-host configure.yash 1,444 949 496 33.5 bash
14 no-host configure.yash 1,376 929 444 33.5 dash
22 no-host configure.yash 1,546 990 550 33.4 osh-native
30 no-host configure.yash 1,452 945 504 33.4 osh-nosouffle
38 no-host configure.yash 1,409 912 494 33.1 osh-static
0 no-host hello-world 1 1 0 3.4 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 2 1 1 6.6 osh-native
24 no-host hello-world 2 0 2 7.1 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,444 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,200 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,330 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,436 0 0 0 16 0 39 3 osh-nosouffle
39 no-host abuild-print-help 2,856 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,920 0 0 0 8 0 1,999 47 bash
9 no-host bin-true 49,829 0 0 0 8 0 2,997 48 dash
17 no-host bin-true 128,458 0 0 0 16 0 2,001 66 osh-native
25 no-host bin-true 132,787 0 0 0 16 0 1,988 63 osh-nosouffle
33 no-host bin-true 113,183 0 0 0 8 0 1,998 61 osh-static
2 no-host configure.cpython 1,637,435 0 0 0 25,272 0 14,060 1,087 bash
10 no-host configure.cpython 1,649,522 0 0 0 25,272 0 14,083 945 dash
18 no-host configure.cpython 1,596,114 0 0 0 25,280 0 11,279 868 osh-native
26 no-host configure.cpython 1,603,063 0 0 0 25,280 0 11,326 780 osh-nosouffle
34 no-host configure.cpython 1,527,893 0 0 0 25,272 0 11,287 807 osh-static
4 no-host configure.ocaml 300,195 0 0 0 4,432 0 2,019 179 bash
12 no-host configure.ocaml 281,411 0 0 0 4,432 0 2,114 163 dash
20 no-host configure.ocaml 306,449 0 0 0 4,440 0 1,995 203 osh-native
28 no-host configure.ocaml 307,889 0 0 0 4,440 0 2,004 195 osh-nosouffle
36 no-host configure.ocaml 301,102 0 0 0 4,432 0 2,004 202 osh-static
5 no-host configure.tcc 5,258 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,234 0 0 0 88 0 51 0 dash
21 no-host configure.tcc 5,623 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,713 0 0 0 96 0 46 3 osh-nosouffle
37 no-host configure.tcc 5,148 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,540,762 0 0 232 35,944 0 18,872 1,008 bash
11 no-host configure.util-linux 1,707,817 0 0 0 35,936 0 16,962 1,042 dash
19 no-host configure.util-linux 1,498,758 4 0 0 35,952 0 16,187 869 osh-native
27 no-host configure.util-linux 1,519,171 3 0 0 35,952 0 16,257 853 osh-nosouffle
35 no-host configure.util-linux 1,455,949 0 0 0 35,936 0 16,176 887 osh-static
6 no-host configure.yash 173,916 0 0 0 3,616 0 880 94 bash
14 no-host configure.yash 159,923 0 0 0 3,616 0 1,005 96 dash
22 no-host configure.yash 176,827 0 0 0 3,624 0 854 94 osh-native
30 no-host configure.yash 177,238 0 0 0 3,624 0 857 89 osh-nosouffle
38 no-host configure.yash 173,311 0 0 0 3,616 0 858 87 osh-static
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 402 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 183 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-34801474
osh-nosouffle osh-828ae402
osh-static osh-static-726c5ac2
host label host id
no-host no-host-9c670df1