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.30 1.20
bin-true no-host 622 454 804 811 652 1.29 1.05
configure.cpython no-host 13,651 13,731 13,340 13,336 12,809 0.98 0.94
configure.ocaml no-host 3,623 3,562 3,664 3,662 3,663 1.01 1.01
configure.tcc no-host 45 40 46 46 44 1.02 0.96
configure.util-linux no-host 12,358 13,148 12,315 12,398 12,340 1.00 1.00
configure.yash no-host 1,682 1,617 1,672 1,679 1,712 0.99 1.02
hello-world no-host 1 1 3 3 1 2.37 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,374 1,166 3,273 3,428 2,808 1.38 1.18
bin-true no-host 102,472 49,403 133,392 134,969 111,020 1.30 1.08
configure.cpython no-host 1,625,247 1,635,632 1,596,110 1,610,065 1,522,852 0.98 0.94
configure.ocaml no-host 298,813 280,946 305,809 307,000 300,811 1.02 1.01
configure.tcc no-host 5,228 4,243 5,638 5,674 5,131 1.08 0.98
configure.util-linux no-host 1,536,948 1,705,527 1,499,846 1,520,854 1,457,545 0.98 0.95
configure.yash no-host 173,139 159,560 176,516 176,693 173,108 1.02 1.00
hello-world no-host 154 85 388 395 181 2.52 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 4.8 3.8 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.1 1.6 8.7 9.0 5.2 2.75 1.67
configure.cpython no-host 34.8 34.6 34.5 34.6 34.5 0.99 0.99
configure.ocaml no-host 28.6 28.7 28.5 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.2 26.2 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.6 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.1 33.1 33.3 33.4 33.3 1.01 1.01
hello-world no-host 3.3 1.6 6.4 6.9 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 3 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 804 1 2 3.5 8.7 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,340 1 65 14.8 34.5 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,315 3 63 21.6 39.6 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,664 1 2 2.8 28.5 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 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,672 1 2 2.7 33.3 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 811 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,336 1 63 14.8 34.6 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,398 3 62 21.6 39.6 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,662 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 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,679 1 2 2.7 33.4 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 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 15 5 11 4.8 bash
15 no-host abuild-print-help 9 6 3 3.8 dash
23 no-host abuild-print-help 20 12 9 9.4 osh-native
31 no-host abuild-print-help 21 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 622 304 354 3.1 bash
9 no-host bin-true 454 285 175 1.6 dash
17 no-host bin-true 804 318 503 8.7 osh-native
25 no-host bin-true 811 306 520 9.0 osh-nosouffle
33 no-host bin-true 652 327 341 5.2 osh-static
2 no-host configure.cpython 13,651 7,554 6,477 34.8 bash
10 no-host configure.cpython 13,731 7,554 6,580 34.6 dash
18 no-host configure.cpython 13,340 7,035 6,581 34.5 osh-native
26 no-host configure.cpython 13,336 7,192 6,428 34.6 osh-nosouffle
34 no-host configure.cpython 12,809 7,088 5,938 34.5 osh-static
4 no-host configure.ocaml 3,623 1,469 1,193 28.6 bash
12 no-host configure.ocaml 3,562 1,413 1,174 28.7 dash
20 no-host configure.ocaml 3,664 1,458 1,246 28.5 osh-native
28 no-host configure.ocaml 3,662 1,478 1,225 28.7 osh-nosouffle
36 no-host configure.ocaml 3,663 1,461 1,234 28.7 osh-static
5 no-host configure.tcc 45 25 21 26.1 bash
13 no-host configure.tcc 40 19 22 26.2 dash
21 no-host configure.tcc 46 22 25 26.2 osh-native
29 no-host configure.tcc 46 21 26 26.2 osh-nosouffle
37 no-host configure.tcc 44 26 18 26.3 osh-static
3 no-host configure.util-linux 12,358 6,428 6,393 39.7 bash
11 no-host configure.util-linux 13,148 6,431 7,203 39.6 dash
19 no-host configure.util-linux 12,315 6,137 6,400 39.6 osh-native
27 no-host configure.util-linux 12,398 6,164 6,458 39.6 osh-nosouffle
35 no-host configure.util-linux 12,340 6,334 6,228 39.6 osh-static
6 no-host configure.yash 1,682 977 713 33.1 bash
14 no-host configure.yash 1,617 929 691 33.1 dash
22 no-host configure.yash 1,672 874 800 33.3 osh-native
30 no-host configure.yash 1,679 942 739 33.4 osh-nosouffle
38 no-host configure.yash 1,712 978 736 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 3 0 6.4 osh-native
24 no-host hello-world 3 1 1 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,374 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,166 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,273 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,428 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,808 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,472 0 0 0 8 0 1,998 55 bash
9 no-host bin-true 49,403 0 0 0 8 0 2,995 52 dash
17 no-host bin-true 133,392 0 0 0 16 0 2,001 76 osh-native
25 no-host bin-true 134,969 0 0 0 16 0 2,001 88 osh-nosouffle
33 no-host bin-true 111,020 0 0 0 8 0 1,998 62 osh-static
2 no-host configure.cpython 1,625,247 0 0 0 25,272 0 14,089 1,010 bash
10 no-host configure.cpython 1,635,632 0 0 0 25,272 0 14,120 1,033 dash
18 no-host configure.cpython 1,596,110 0 0 0 25,280 0 11,293 805 osh-native
26 no-host configure.cpython 1,610,065 0 0 0 25,280 0 11,320 886 osh-nosouffle
34 no-host configure.cpython 1,522,852 0 0 0 25,272 0 11,308 841 osh-static
4 no-host configure.ocaml 298,813 0 0 0 4,432 0 2,016 189 bash
12 no-host configure.ocaml 280,946 0 0 0 4,432 0 2,105 196 dash
20 no-host configure.ocaml 305,809 0 0 0 4,440 0 1,998 197 osh-native
28 no-host configure.ocaml 307,000 0 0 0 4,440 0 2,000 201 osh-nosouffle
36 no-host configure.ocaml 300,811 0 0 0 4,432 0 1,999 259 osh-static
5 no-host configure.tcc 5,228 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,243 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,638 0 0 0 96 0 46 3 osh-native
29 no-host configure.tcc 5,674 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,131 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,948 2 0 232 35,944 0 18,980 1,026 bash
11 no-host configure.util-linux 1,705,527 0 0 0 35,936 0 17,124 1,244 dash
19 no-host configure.util-linux 1,499,846 0 0 0 35,952 0 16,192 974 osh-native
27 no-host configure.util-linux 1,520,854 1 0 0 35,944 0 16,205 916 osh-nosouffle
35 no-host configure.util-linux 1,457,545 2 0 0 35,936 0 16,122 896 osh-static
6 no-host configure.yash 173,139 0 0 0 3,616 0 878 192 bash
14 no-host configure.yash 159,560 0 0 0 3,616 0 1,001 96 dash
22 no-host configure.yash 176,516 0 0 0 3,624 0 855 92 osh-native
30 no-host configure.yash 176,693 0 0 0 3,624 0 859 114 osh-nosouffle
38 no-host configure.yash 173,108 0 0 0 3,624 0 857 105 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 1 dash
16 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 395 0 0 0 16 0 1 1 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-ef672410
osh-nosouffle osh-2c0af0e8
osh-static osh-static-13d478f5
host label host id
no-host no-host-9c670df1