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 20 21 18 1.29 1.16
bin-true no-host 615 443 790 795 658 1.29 1.07
configure.cpython no-host 13,507 13,568 13,124 13,176 12,637 0.97 0.94
configure.ocaml no-host 3,627 3,550 3,637 3,640 3,594 1.00 0.99
configure.tcc no-host 45 40 46 46 42 1.02 0.94
configure.util-linux no-host 12,291 13,015 12,183 12,285 11,924 0.99 0.97
configure.yash no-host 1,665 1,598 1,660 1,662 1,643 1.00 0.99
hello-world no-host 1 1 3 3 1 2.57 1.08

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,377 1,182 3,317 3,424 2,847 1.40 1.20
bin-true no-host 100,455 49,412 129,027 131,339 112,710 1.28 1.12
configure.cpython no-host 1,617,275 1,639,005 1,583,833 1,591,635 1,520,950 0.98 0.94
configure.ocaml no-host 298,899 281,157 305,331 306,384 300,224 1.02 1.00
configure.tcc no-host 5,276 4,195 5,621 5,677 5,129 1.07 0.97
configure.util-linux no-host 1,539,937 1,703,653 1,495,707 1,517,244 1,476,189 0.97 0.96
configure.yash no-host 173,224 159,522 177,108 177,123 172,995 1.02 1.00
hello-world no-host 151 85 394 396 183 2.61 1.21

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.9 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.3 1.7 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.4 34.6 34.4 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.5 28.8 28.7 0.99 1.00
configure.tcc no-host 26.2 26.3 26.2 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.5 39.6 39.7 1.00 1.00
configure.yash no-host 33.1 33.1 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.1 1.4 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 790 1 2 3.5 8.8 151,895 10,758 2,972 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,124 1 63 14.8 34.4 1,750,757 35,386 28,943 93,077 869,715 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,183 3 62 21.6 39.5 2,705,293 37,458 66,331 119,745 1,291,810 1,293,738 32,527 42 132,662 1
configure.ocaml no-host 3,637 1 2 2.8 28.5 149,695 12,650 6,565 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,660 1 2 2.7 33.4 143,457 11,463 6,619 7,166 70,511 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,226 65,792 42,002 4,975 54,600 57,651 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 795 1 2 3.5 9.2 151,895 10,762 2,976 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,176 1 63 14.8 34.6 1,750,756 35,391 28,948 93,076 869,715 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,285 3 62 21.6 39.6 2,705,293 37,464 66,337 119,745 1,291,810 1,293,738 32,527 42 132,674 1
configure.ocaml no-host 3,640 1 2 2.8 28.8 149,695 12,655 6,570 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,662 1 2 2.7 33.4 143,457 11,467 6,623 7,166 70,511 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,226 65,796 42,006 4,975 54,600 57,651 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 7 9 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 21 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 7 11 6.3 osh-static
1 no-host bin-true 615 318 333 3.3 bash
9 no-host bin-true 443 275 172 1.7 dash
17 no-host bin-true 790 317 488 8.8 osh-native
25 no-host bin-true 795 313 499 9.2 osh-nosouffle
33 no-host bin-true 658 319 353 5.2 osh-static
2 no-host configure.cpython 13,507 7,398 6,477 34.4 bash
10 no-host configure.cpython 13,568 7,435 6,528 34.6 dash
18 no-host configure.cpython 13,124 6,957 6,439 34.4 osh-native
26 no-host configure.cpython 13,176 6,996 6,459 34.6 osh-nosouffle
34 no-host configure.cpython 12,637 7,010 5,862 34.5 osh-static
4 no-host configure.ocaml 3,627 1,450 1,215 28.7 bash
12 no-host configure.ocaml 3,550 1,463 1,112 28.7 dash
20 no-host configure.ocaml 3,637 1,460 1,216 28.5 osh-native
28 no-host configure.ocaml 3,640 1,480 1,201 28.8 osh-nosouffle
36 no-host configure.ocaml 3,594 1,418 1,208 28.7 osh-static
5 no-host configure.tcc 45 29 16 26.2 bash
13 no-host configure.tcc 40 21 19 26.3 dash
21 no-host configure.tcc 46 19 28 26.2 osh-native
29 no-host configure.tcc 46 19 28 26.2 osh-nosouffle
37 no-host configure.tcc 42 23 20 26.1 osh-static
3 no-host configure.util-linux 12,291 6,541 6,223 39.6 bash
11 no-host configure.util-linux 13,015 6,361 7,134 39.7 dash
19 no-host configure.util-linux 12,183 6,056 6,344 39.5 osh-native
27 no-host configure.util-linux 12,285 6,026 6,486 39.6 osh-nosouffle
35 no-host configure.util-linux 11,924 5,990 6,147 39.7 osh-static
6 no-host configure.yash 1,665 945 727 33.1 bash
14 no-host configure.yash 1,598 902 698 33.1 dash
22 no-host configure.yash 1,660 933 731 33.4 osh-native
30 no-host configure.yash 1,662 941 724 33.4 osh-nosouffle
38 no-host configure.yash 1,643 922 724 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 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 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,377 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,182 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,317 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,424 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,847 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,455 0 0 0 8 0 1,999 63 bash
9 no-host bin-true 49,412 0 0 0 8 0 2,988 53 dash
17 no-host bin-true 129,027 0 0 0 16 0 1,997 91 osh-native
25 no-host bin-true 131,339 0 0 0 16 0 1,999 70 osh-nosouffle
33 no-host bin-true 112,710 0 0 0 8 0 2,001 100 osh-static
2 no-host configure.cpython 1,617,275 0 0 0 25,272 0 14,076 1,014 bash
10 no-host configure.cpython 1,639,005 0 0 0 25,272 0 14,109 1,048 dash
18 no-host configure.cpython 1,583,833 0 0 0 25,280 0 11,289 877 osh-native
26 no-host configure.cpython 1,591,635 0 0 0 25,280 0 11,311 946 osh-nosouffle
34 no-host configure.cpython 1,520,950 0 0 0 25,272 0 11,303 832 osh-static
4 no-host configure.ocaml 298,899 0 0 0 4,432 0 2,019 201 bash
12 no-host configure.ocaml 281,157 0 0 0 4,432 0 2,112 196 dash
20 no-host configure.ocaml 305,331 0 0 0 4,440 0 2,000 208 osh-native
28 no-host configure.ocaml 306,384 0 0 0 4,440 0 2,002 187 osh-nosouffle
36 no-host configure.ocaml 300,224 0 0 0 4,432 0 1,998 205 osh-static
5 no-host configure.tcc 5,276 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,195 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,621 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,677 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,539,937 0 0 232 35,944 0 19,060 1,059 bash
11 no-host configure.util-linux 1,703,653 0 0 0 35,936 0 17,077 1,205 dash
19 no-host configure.util-linux 1,495,707 0 0 0 35,952 0 16,143 988 osh-native
27 no-host configure.util-linux 1,517,244 2 0 0 35,944 0 16,208 926 osh-nosouffle
35 no-host configure.util-linux 1,476,189 1 0 0 35,936 0 16,185 933 osh-static
6 no-host configure.yash 173,224 0 0 0 3,616 0 877 98 bash
14 no-host configure.yash 159,522 0 0 0 3,616 0 1,003 97 dash
22 no-host configure.yash 177,108 0 0 0 3,624 0 858 107 osh-native
30 no-host configure.yash 177,123 0 0 0 3,632 0 858 100 osh-nosouffle
38 no-host configure.yash 172,995 0 0 0 3,624 0 857 116 osh-static
0 no-host hello-world 151 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 394 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 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-5701a1d3
osh-nosouffle osh-1b6ec2ad
osh-static osh-static-1ec3cdd5
host label host id
no-host no-host-9c670df1