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 17 9 21 22 18 1.25 1.09
bin-true no-host 629 449 829 802 650 1.32 1.03
configure.cpython no-host 14,611 14,470 13,749 13,477 12,930 0.94 0.88
configure.ocaml no-host 3,827 3,710 3,702 3,717 3,659 0.97 0.96
configure.tcc no-host 51 42 46 47 43 0.91 0.85
configure.util-linux no-host 12,987 13,828 12,467 12,471 12,112 0.96 0.93
configure.yash no-host 1,796 1,692 1,704 1,690 1,671 0.95 0.93
hello-world no-host 1 1 3 3 1 2.11 0.88

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,389 1,154 3,370 3,474 2,815 1.41 1.18
bin-true no-host 103,434 49,462 137,606 135,611 110,291 1.33 1.07
configure.cpython no-host 1,629,634 1,643,728 1,591,526 1,599,451 1,523,149 0.98 0.93
configure.ocaml no-host 298,766 280,877 306,232 307,282 299,613 1.02 1.00
configure.tcc no-host 5,213 4,205 5,553 5,714 5,116 1.07 0.98
configure.util-linux no-host 1,542,863 1,703,786 1,501,699 1,505,807 1,451,632 0.97 0.94
configure.yash no-host 173,161 159,524 176,863 177,587 172,726 1.02 1.00
hello-world no-host 153 82 390 395 180 2.55 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.7 4.1 9.6 10.0 6.4 2.03 1.36
bin-true no-host 3.1 1.7 8.7 9.2 5.2 2.75 1.67
configure.cpython no-host 34.5 34.5 34.2 34.5 34.3 0.99 0.99
configure.ocaml no-host 28.8 28.7 28.7 28.7 28.5 1.00 0.99
configure.tcc no-host 26.1 26.2 26.0 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.7 39.6 39.7 39.9 1.00 1.01
configure.yash no-host 33.4 33.4 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.4 6.6 6.8 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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 829 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,749 2 69 14.8 34.2 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,467 3 65 21.6 39.6 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,702 1 2 2.8 28.7 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,704 1 2 2.7 33.3 143,778 11,764 6,618 7,161 70,824 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,276 65,784 41,994 4,970 54,643 57,663 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 802 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,477 1 66 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,471 3 66 21.6 39.7 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,717 1 2 2.8 28.7 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,690 1 2 2.7 33.4 143,778 11,768 6,622 7,161 70,824 65,793 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,276 65,788 41,998 4,970 54,643 57,663 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 17 9 8 4.7 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 21 14 7 9.6 osh-native
31 no-host abuild-print-help 22 15 8 10.0 osh-nosouffle
39 no-host abuild-print-help 18 8 10 6.4 osh-static
1 no-host bin-true 629 317 353 3.1 bash
9 no-host bin-true 449 277 179 1.7 dash
17 no-host bin-true 829 297 550 8.7 osh-native
25 no-host bin-true 802 320 499 9.2 osh-nosouffle
33 no-host bin-true 650 316 352 5.2 osh-static
2 no-host configure.cpython 14,611 7,791 6,995 34.5 bash
10 no-host configure.cpython 14,470 7,839 7,049 34.5 dash
18 no-host configure.cpython 13,749 7,333 6,684 34.2 osh-native
26 no-host configure.cpython 13,477 7,185 6,559 34.5 osh-nosouffle
34 no-host configure.cpython 12,930 7,166 5,991 34.3 osh-static
4 no-host configure.ocaml 3,827 1,512 1,357 28.8 bash
12 no-host configure.ocaml 3,710 1,525 1,212 28.7 dash
20 no-host configure.ocaml 3,702 1,486 1,256 28.7 osh-native
28 no-host configure.ocaml 3,717 1,469 1,289 28.7 osh-nosouffle
36 no-host configure.ocaml 3,659 1,474 1,216 28.5 osh-static
5 no-host configure.tcc 51 28 24 26.1 bash
13 no-host configure.tcc 42 20 23 26.2 dash
21 no-host configure.tcc 46 26 20 26.0 osh-native
29 no-host configure.tcc 47 22 26 26.2 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.2 osh-static
3 no-host configure.util-linux 12,987 6,758 6,712 39.5 bash
11 no-host configure.util-linux 13,828 6,774 7,554 39.7 dash
19 no-host configure.util-linux 12,467 6,167 6,517 39.6 osh-native
27 no-host configure.util-linux 12,471 6,224 6,468 39.7 osh-nosouffle
35 no-host configure.util-linux 12,112 6,217 6,110 39.9 osh-static
6 no-host configure.yash 1,796 993 810 33.4 bash
14 no-host configure.yash 1,692 925 768 33.4 dash
22 no-host configure.yash 1,704 969 738 33.3 osh-native
30 no-host configure.yash 1,690 968 726 33.4 osh-nosouffle
38 no-host configure.yash 1,671 966 708 33.3 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 2 1 6.8 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,389 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,370 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,474 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,815 0 0 0 8 0 38 1 osh-static
1 no-host bin-true 103,434 0 0 0 8 0 1,996 53 bash
9 no-host bin-true 49,462 0 0 0 8 0 2,993 50 dash
17 no-host bin-true 137,606 0 0 0 16 0 1,997 75 osh-native
25 no-host bin-true 135,611 0 0 0 16 0 2,001 72 osh-nosouffle
33 no-host bin-true 110,291 0 0 0 8 0 1,998 49 osh-static
2 no-host configure.cpython 1,629,634 0 0 0 25,272 0 14,099 1,016 bash
10 no-host configure.cpython 1,643,728 0 0 0 25,272 0 14,118 1,040 dash
18 no-host configure.cpython 1,591,526 0 0 0 25,280 0 11,297 826 osh-native
26 no-host configure.cpython 1,599,451 0 0 0 25,280 0 11,319 843 osh-nosouffle
34 no-host configure.cpython 1,523,149 0 0 0 25,272 0 11,299 967 osh-static
4 no-host configure.ocaml 298,766 0 0 0 4,432 0 2,017 194 bash
12 no-host configure.ocaml 280,877 0 0 0 4,432 0 2,104 182 dash
20 no-host configure.ocaml 306,232 0 0 8 4,440 0 2,001 230 osh-native
28 no-host configure.ocaml 307,282 0 0 0 4,440 0 1,997 198 osh-nosouffle
36 no-host configure.ocaml 299,613 0 0 0 4,432 0 2,001 230 osh-static
5 no-host configure.tcc 5,213 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,553 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,714 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,542,863 0 0 0 35,944 0 19,026 1,071 bash
11 no-host configure.util-linux 1,703,786 0 0 0 35,936 0 17,079 1,211 dash
19 no-host configure.util-linux 1,501,699 3 0 0 35,952 0 16,200 962 osh-native
27 no-host configure.util-linux 1,505,807 0 0 0 35,944 0 16,206 909 osh-nosouffle
35 no-host configure.util-linux 1,451,632 1 0 0 35,936 0 16,126 884 osh-static
6 no-host configure.yash 173,161 0 0 0 3,616 0 880 107 bash
14 no-host configure.yash 159,524 0 0 0 3,624 0 1,001 98 dash
22 no-host configure.yash 176,863 0 0 0 3,624 0 859 99 osh-native
30 no-host configure.yash 177,587 0 0 0 3,624 0 858 102 osh-nosouffle
38 no-host configure.yash 172,726 0 0 0 3,616 0 857 98 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 395 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-13d958e2
osh-nosouffle osh-9bfe716d
osh-static osh-static-77764286
host label host id
no-host no-host-9c670df1