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 18 1.29 1.12
bin-true no-host 626 447 813 823 665 1.30 1.06
configure.cpython no-host 14,147 14,155 13,807 13,765 13,291 0.98 0.94
configure.ocaml no-host 3,709 3,653 3,769 3,776 3,744 1.02 1.01
configure.tcc no-host 46 42 47 48 43 1.03 0.94
configure.util-linux no-host 12,788 13,540 12,732 12,809 12,508 1.00 0.98
configure.yash no-host 1,735 1,672 1,740 1,730 1,717 1.00 0.99
hello-world no-host 1 1 3 3 1 2.35 1.01

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,400 1,176 3,350 3,404 2,849 1.40 1.19
bin-true no-host 103,419 49,425 133,020 135,673 112,701 1.29 1.09
configure.cpython no-host 1,622,746 1,638,400 1,591,717 1,590,483 1,522,575 0.98 0.94
configure.ocaml no-host 298,615 280,553 305,734 307,536 300,358 1.02 1.01
configure.tcc no-host 5,222 4,237 5,589 5,693 5,134 1.07 0.98
configure.util-linux no-host 1,546,929 1,704,621 1,499,658 1,514,204 1,476,905 0.97 0.95
configure.yash no-host 173,391 159,544 177,036 177,242 172,915 1.02 1.00
hello-world no-host 149 86 393 400 182 2.64 1.22

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.6 3.9 9.6 10.0 6.4 2.09 1.40
bin-true no-host 3.4 1.7 8.7 9.3 5.2 2.54 1.54
configure.cpython no-host 34.3 34.6 34.4 34.4 34.6 1.00 1.01
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.2 26.2 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.5 39.6 39.6 39.5 1.00 0.99
configure.yash no-host 33.4 33.4 33.4 33.2 33.4 1.00 1.00
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,909 3,909 0 722 1,923 1,264 2 0 50,000 0
bin-true no-host 813 1 2 3.5 8.7 151,894 10,757 2,971 14,781 72,397 64,716 3,008 3 50,000 0
configure.cpython no-host 13,807 1 69 14.8 34.4 1,750,756 35,385 28,942 93,077 869,714 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,732 3 67 21.6 39.6 2,705,292 37,457 66,330 119,745 1,291,809 1,293,738 32,527 42 132,660 1
configure.ocaml no-host 3,769 1 2 2.8 28.7 149,694 12,649 6,564 9,213 70,297 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,543 30,543 0 1,680 14,474 14,389 271 0 50,000 0
configure.yash no-host 1,740 1 2 2.7 33.4 143,456 11,462 6,618 7,166 70,510 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,225 65,791 42,001 4,975 54,599 57,651 277 3 84,002 1
hello-world no-host 3 0 0 0.3 6.9 3,908 3,908 0 721 1,923 1,264 2 0 50,000 0
bin-true no-host 823 1 2 3.5 9.3 151,894 10,761 2,975 14,781 72,397 64,716 3,008 3 50,000 0
configure.cpython no-host 13,765 2 69 14.8 34.4 1,750,755 35,390 28,947 93,076 869,714 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,809 3 69 21.6 39.6 2,705,292 37,463 66,336 119,745 1,291,809 1,293,738 32,527 42 132,672 1
configure.ocaml no-host 3,776 1 2 2.8 28.6 149,694 12,654 6,569 9,213 70,297 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,543 30,543 0 1,680 14,474 14,389 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.2 143,456 11,466 6,622 7,166 70,510 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,225 65,795 42,005 4,975 54,599 57,651 277 3 84,010 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 6 11 4.6 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 13 9 9.6 osh-native
31 no-host abuild-print-help 22 9 14 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 9 6.4 osh-static
1 no-host bin-true 626 310 355 3.4 bash
9 no-host bin-true 447 286 167 1.7 dash
17 no-host bin-true 813 309 522 8.7 osh-native
25 no-host bin-true 823 300 540 9.3 osh-nosouffle
33 no-host bin-true 665 319 364 5.2 osh-static
2 no-host configure.cpython 14,147 7,733 6,777 34.3 bash
10 no-host configure.cpython 14,155 7,691 6,851 34.6 dash
18 no-host configure.cpython 13,807 7,299 6,769 34.4 osh-native
26 no-host configure.cpython 13,765 7,320 6,713 34.4 osh-nosouffle
34 no-host configure.cpython 13,291 7,311 6,205 34.6 osh-static
4 no-host configure.ocaml 3,709 1,522 1,227 28.7 bash
12 no-host configure.ocaml 3,653 1,527 1,152 28.7 dash
20 no-host configure.ocaml 3,769 1,469 1,340 28.7 osh-native
28 no-host configure.ocaml 3,776 1,507 1,310 28.6 osh-nosouffle
36 no-host configure.ocaml 3,744 1,479 1,298 28.7 osh-static
5 no-host configure.tcc 46 24 23 26.3 bash
13 no-host configure.tcc 42 21 21 26.2 dash
21 no-host configure.tcc 47 27 21 26.2 osh-native
29 no-host configure.tcc 48 26 22 26.2 osh-nosouffle
37 no-host configure.tcc 43 27 17 26.1 osh-static
3 no-host configure.util-linux 12,788 6,665 6,588 39.7 bash
11 no-host configure.util-linux 13,540 6,692 7,350 39.5 dash
19 no-host configure.util-linux 12,732 6,302 6,640 39.6 osh-native
27 no-host configure.util-linux 12,809 6,305 6,729 39.6 osh-nosouffle
35 no-host configure.util-linux 12,508 6,236 6,494 39.5 osh-static
6 no-host configure.yash 1,735 982 762 33.4 bash
14 no-host configure.yash 1,672 905 768 33.4 dash
22 no-host configure.yash 1,740 946 796 33.4 osh-native
30 no-host configure.yash 1,730 955 779 33.2 osh-nosouffle
38 no-host configure.yash 1,717 992 727 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 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 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,400 0 0 0 8 0 41 3 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,350 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,404 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,849 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,419 0 0 0 8 0 1,994 69 bash
9 no-host bin-true 49,425 0 0 0 8 0 2,995 46 dash
17 no-host bin-true 133,020 0 0 0 16 0 1,997 73 osh-native
25 no-host bin-true 135,673 0 0 0 16 0 1,997 68 osh-nosouffle
33 no-host bin-true 112,701 0 0 0 8 0 1,997 62 osh-static
2 no-host configure.cpython 1,622,746 0 0 0 25,272 0 14,083 1,051 bash
10 no-host configure.cpython 1,638,400 0 0 0 25,272 0 14,115 1,079 dash
18 no-host configure.cpython 1,591,717 0 0 0 25,280 0 11,304 826 osh-native
26 no-host configure.cpython 1,590,483 0 0 0 25,280 0 11,308 877 osh-nosouffle
34 no-host configure.cpython 1,522,575 1 0 0 25,272 0 11,303 827 osh-static
4 no-host configure.ocaml 298,615 0 0 0 4,432 0 2,018 197 bash
12 no-host configure.ocaml 280,553 0 0 0 4,432 0 2,108 185 dash
20 no-host configure.ocaml 305,734 0 0 0 4,440 0 2,002 214 osh-native
28 no-host configure.ocaml 307,536 0 0 0 4,440 0 2,000 205 osh-nosouffle
36 no-host configure.ocaml 300,358 0 0 0 4,432 0 1,998 203 osh-static
5 no-host configure.tcc 5,222 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,237 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 5,589 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,693 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,134 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,546,929 0 0 232 35,944 0 18,971 1,068 bash
11 no-host configure.util-linux 1,704,621 1 0 0 35,936 0 17,067 1,236 dash
19 no-host configure.util-linux 1,499,658 0 0 0 35,952 0 16,124 988 osh-native
27 no-host configure.util-linux 1,514,204 0 0 0 35,944 0 16,221 981 osh-nosouffle
35 no-host configure.util-linux 1,476,905 4 0 0 35,936 0 16,184 984 osh-static
6 no-host configure.yash 173,391 0 0 0 3,616 0 878 90 bash
14 no-host configure.yash 159,544 0 0 0 3,616 0 1,002 109 dash
22 no-host configure.yash 177,036 0 0 0 3,632 0 856 109 osh-native
30 no-host configure.yash 177,242 0 0 0 3,624 0 857 100 osh-nosouffle
38 no-host configure.yash 172,915 0 0 0 3,616 0 858 104 osh-static
0 no-host hello-world 149 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 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-3009f638
osh-nosouffle osh-418d4e32
osh-static osh-static-0a017e95
host label host id
no-host no-host-9c670df1