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 19 1.33 1.18
bin-true no-host 631 444 813 807 674 1.29 1.07
configure.cpython no-host 14,061 14,252 13,849 13,982 13,389 0.98 0.95
configure.ocaml no-host 3,759 3,656 3,776 3,776 3,731 1.00 0.99
configure.tcc no-host 46 42 47 48 44 1.02 0.96
configure.util-linux no-host 12,925 13,558 12,811 12,940 12,567 0.99 0.97
configure.yash no-host 1,752 1,675 1,735 1,738 1,717 0.99 0.98
hello-world no-host 1 1 3 3 1 2.41 1.16

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,431 1,152 3,342 3,380 2,851 1.37 1.17
bin-true no-host 102,395 49,424 133,946 132,364 111,752 1.31 1.09
configure.cpython no-host 1,614,780 1,647,383 1,599,049 1,608,335 1,524,250 0.99 0.94
configure.ocaml no-host 299,368 281,172 305,858 307,245 300,112 1.02 1.00
configure.tcc no-host 5,207 4,207 5,586 5,695 5,140 1.07 0.99
configure.util-linux no-host 1,543,273 1,698,008 1,492,428 1,513,976 1,480,143 0.97 0.96
configure.yash no-host 173,473 159,500 176,627 176,890 172,976 1.02 1.00
hello-world no-host 152 86 396 398 182 2.61 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.8 3.8 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.7 9.3 5.2 2.75 1.67
configure.cpython no-host 34.6 34.5 34.5 34.2 34.6 1.00 1.00
configure.ocaml no-host 28.5 28.5 28.7 28.6 28.7 1.01 1.00
configure.tcc no-host 26.1 26.0 26.1 26.0 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.6 39.7 39.6 39.7 1.01 1.01
configure.yash no-host 33.4 33.4 33.5 33.1 33.1 1.00 0.99
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 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.6 3,910 3,910 0 722 1,924 1,264 2 0 50,000 0
bin-true no-host 813 1 2 3.5 8.7 151,895 10,758 2,972 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,849 1 71 14.8 34.5 1,750,792 35,391 28,948 93,077 869,750 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,811 3 71 21.6 39.7 2,705,328 37,463 66,336 119,745 1,291,845 1,293,738 32,527 42 132,672 1
configure.ocaml no-host 3,776 1 2 2.8 28.7 149,695 12,650 6,565 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,735 1 2 2.7 33.5 143,457 11,463 6,619 7,164 70,521 65,772 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,226 65,792 42,002 4,976 54,602 57,648 277 3 84,004 1
hello-world no-host 3 0 0 0.3 6.9 3,909 3,909 0 721 1,924 1,264 2 0 50,000 0
bin-true no-host 807 1 2 3.5 9.3 151,895 10,762 2,976 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,982 1 70 14.8 34.2 1,750,791 35,396 28,953 93,076 869,750 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,940 3 70 21.6 39.6 2,705,328 37,469 66,342 119,745 1,291,845 1,293,738 32,527 42 132,684 1
configure.ocaml no-host 3,776 1 2 2.8 28.6 149,695 12,655 6,570 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.0 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.7 33.1 143,457 11,467 6,623 7,164 70,521 65,772 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,226 65,796 42,006 4,976 54,602 57,648 277 3 84,012 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 11 6 4.8 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 21 9 13 9.6 osh-native
31 no-host abuild-print-help 22 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 10 9 6.3 osh-static
1 no-host bin-true 631 313 354 3.1 bash
9 no-host bin-true 444 279 172 1.6 dash
17 no-host bin-true 813 300 528 8.7 osh-native
25 no-host bin-true 807 318 506 9.3 osh-nosouffle
33 no-host bin-true 674 336 344 5.2 osh-static
2 no-host configure.cpython 14,061 7,679 6,754 34.6 bash
10 no-host configure.cpython 14,252 7,795 6,846 34.5 dash
18 no-host configure.cpython 13,849 7,329 6,793 34.5 osh-native
26 no-host configure.cpython 13,982 7,351 6,895 34.2 osh-nosouffle
34 no-host configure.cpython 13,389 7,423 6,181 34.6 osh-static
4 no-host configure.ocaml 3,759 1,489 1,311 28.5 bash
12 no-host configure.ocaml 3,656 1,483 1,196 28.5 dash
20 no-host configure.ocaml 3,776 1,545 1,269 28.7 osh-native
28 no-host configure.ocaml 3,776 1,512 1,304 28.6 osh-nosouffle
36 no-host configure.ocaml 3,731 1,532 1,231 28.7 osh-static
5 no-host configure.tcc 46 30 16 26.1 bash
13 no-host configure.tcc 42 25 17 26.0 dash
21 no-host configure.tcc 47 23 24 26.1 osh-native
29 no-host configure.tcc 48 24 24 26.0 osh-nosouffle
37 no-host configure.tcc 44 21 24 26.2 osh-static
3 no-host configure.util-linux 12,925 6,642 6,743 39.5 bash
11 no-host configure.util-linux 13,558 6,623 7,414 39.6 dash
19 no-host configure.util-linux 12,811 6,268 6,759 39.7 osh-native
27 no-host configure.util-linux 12,940 6,300 6,826 39.6 osh-nosouffle
35 no-host configure.util-linux 12,567 6,402 6,344 39.7 osh-static
6 no-host configure.yash 1,752 973 778 33.4 bash
14 no-host configure.yash 1,675 998 679 33.4 dash
22 no-host configure.yash 1,735 955 778 33.5 osh-native
30 no-host configure.yash 1,738 957 783 33.1 osh-nosouffle
38 no-host configure.yash 1,717 935 780 33.1 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 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,431 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,152 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,342 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,380 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,851 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,395 0 0 0 8 0 1,996 67 bash
9 no-host bin-true 49,424 0 0 0 8 0 2,986 44 dash
17 no-host bin-true 133,946 0 0 0 16 0 1,995 83 osh-native
25 no-host bin-true 132,364 0 0 0 16 0 1,999 67 osh-nosouffle
33 no-host bin-true 111,752 0 0 0 8 0 1,997 69 osh-static
2 no-host configure.cpython 1,614,780 0 0 0 25,272 0 14,055 989 bash
10 no-host configure.cpython 1,647,383 0 0 0 25,272 0 14,147 999 dash
18 no-host configure.cpython 1,599,049 0 0 0 25,280 0 11,304 934 osh-native
26 no-host configure.cpython 1,608,335 0 0 0 25,280 0 11,301 834 osh-nosouffle
34 no-host configure.cpython 1,524,250 0 0 0 25,272 0 11,309 951 osh-static
4 no-host configure.ocaml 299,368 0 0 0 4,432 0 2,016 203 bash
12 no-host configure.ocaml 281,172 0 0 0 4,432 0 2,108 203 dash
20 no-host configure.ocaml 305,858 0 0 0 4,440 0 2,000 214 osh-native
28 no-host configure.ocaml 307,245 0 0 0 4,440 0 1,999 177 osh-nosouffle
36 no-host configure.ocaml 300,112 0 0 0 4,432 0 1,998 224 osh-static
5 no-host configure.tcc 5,207 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,586 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,695 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,140 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,543,273 1 0 0 35,944 0 18,917 1,108 bash
11 no-host configure.util-linux 1,698,008 0 0 496 35,936 0 17,144 1,168 dash
19 no-host configure.util-linux 1,492,428 2 0 0 35,952 0 16,152 956 osh-native
27 no-host configure.util-linux 1,513,976 1 0 0 35,944 0 16,199 934 osh-nosouffle
35 no-host configure.util-linux 1,480,143 2 0 0 35,936 0 16,203 917 osh-static
6 no-host configure.yash 173,473 0 0 0 3,616 0 890 90 bash
14 no-host configure.yash 159,500 0 0 0 3,616 0 1,004 96 dash
22 no-host configure.yash 176,627 0 0 0 3,624 0 858 98 osh-native
30 no-host configure.yash 176,890 0 0 0 3,624 0 858 105 osh-nosouffle
38 no-host configure.yash 172,976 0 0 0 3,624 0 857 108 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 396 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 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-d46cda00
osh-nosouffle osh-0a6f9cfc
osh-static osh-static-2b98441a
host label host id
no-host no-host-9c670df1