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 21 19 1.28 1.16
bin-true no-host 622 443 819 806 650 1.32 1.05
configure.cpython no-host 14,333 14,297 13,530 13,806 13,011 0.94 0.91
configure.ocaml no-host 3,744 3,919 3,728 3,723 3,664 1.00 0.98
configure.tcc no-host 47 43 46 47 43 0.97 0.90
configure.util-linux no-host 12,942 13,651 12,557 12,956 12,189 0.97 0.94
configure.yash no-host 1,769 1,743 1,688 1,698 1,665 0.95 0.94
hello-world no-host 1 1 3 3 1 2.31 0.94

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,409 1,160 3,319 3,441 2,803 1.38 1.16
bin-true no-host 100,441 49,410 135,618 135,581 111,257 1.35 1.11
configure.cpython no-host 1,618,832 1,631,995 1,583,954 1,612,503 1,523,453 0.98 0.94
configure.ocaml no-host 299,589 281,200 305,585 306,623 299,570 1.02 1.00
configure.tcc no-host 5,226 4,211 5,580 5,679 5,109 1.07 0.98
configure.util-linux no-host 1,544,772 1,701,388 1,502,975 1,510,422 1,451,563 0.97 0.94
configure.yash no-host 173,292 159,454 176,583 177,322 172,711 1.02 1.00
hello-world no-host 152 87 390 402 181 2.57 1.19

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.3 10.1 6.4 1.92 1.32
bin-true no-host 3.3 1.7 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.5 34.4 34.7 34.4 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.0 26.3 26.2 26.0 26.1 1.01 1.01
configure.util-linux no-host 39.5 39.6 39.5 39.3 39.5 1.00 1.00
configure.yash no-host 33.2 33.4 33.3 33.4 33.5 1.00 1.01
hello-world no-host 3.1 1.6 6.4 7.1 3.4 2.04 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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 819 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,530 2 67 14.8 34.7 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,557 3 66 21.6 39.5 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,728 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.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,688 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.3 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 806 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,806 1 68 14.9 34.4 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,956 3 69 21.6 39.3 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,723 1 2 2.8 28.6 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.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,698 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 21 1 2 3.0 10.1 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 16 10 7 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 14 8 9.3 osh-native
31 no-host abuild-print-help 21 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.4 osh-static
1 no-host bin-true 622 308 353 3.3 bash
9 no-host bin-true 443 277 174 1.7 dash
17 no-host bin-true 819 313 522 8.8 osh-native
25 no-host bin-true 806 308 515 9.2 osh-nosouffle
33 no-host bin-true 650 328 338 5.2 osh-static
2 no-host configure.cpython 14,333 7,776 6,951 34.5 bash
10 no-host configure.cpython 14,297 7,752 6,948 34.4 dash
18 no-host configure.cpython 13,530 7,180 6,622 34.7 osh-native
26 no-host configure.cpython 13,806 7,391 6,708 34.4 osh-nosouffle
34 no-host configure.cpython 13,011 7,171 6,068 34.7 osh-static
4 no-host configure.ocaml 3,744 1,487 1,299 28.6 bash
12 no-host configure.ocaml 3,919 1,523 1,261 28.8 dash
20 no-host configure.ocaml 3,728 1,503 1,263 28.7 osh-native
28 no-host configure.ocaml 3,723 1,491 1,272 28.6 osh-nosouffle
36 no-host configure.ocaml 3,664 1,517 1,177 28.7 osh-static
5 no-host configure.tcc 47 29 19 26.0 bash
13 no-host configure.tcc 43 21 22 26.3 dash
21 no-host configure.tcc 46 24 23 26.2 osh-native
29 no-host configure.tcc 47 24 23 26.0 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.1 osh-static
3 no-host configure.util-linux 12,942 6,719 6,699 39.5 bash
11 no-host configure.util-linux 13,651 6,624 7,532 39.6 dash
19 no-host configure.util-linux 12,557 6,128 6,649 39.5 osh-native
27 no-host configure.util-linux 12,956 6,458 6,726 39.3 osh-nosouffle
35 no-host configure.util-linux 12,189 6,181 6,225 39.5 osh-static
6 no-host configure.yash 1,769 955 823 33.2 bash
14 no-host configure.yash 1,743 1,008 735 33.4 dash
22 no-host configure.yash 1,688 947 744 33.3 osh-native
30 no-host configure.yash 1,698 922 778 33.4 osh-nosouffle
38 no-host configure.yash 1,665 942 726 33.5 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 1 2 6.4 osh-native
24 no-host hello-world 3 1 2 7.1 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,409 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,319 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,441 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,803 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,441 0 0 0 8 0 1,998 53 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,989 49 dash
17 no-host bin-true 135,618 0 0 0 16 0 1,995 91 osh-native
25 no-host bin-true 135,581 0 0 0 16 0 1,993 77 osh-nosouffle
33 no-host bin-true 111,257 0 0 0 8 0 1,999 79 osh-static
2 no-host configure.cpython 1,618,832 1 0 0 25,272 0 14,068 1,002 bash
10 no-host configure.cpython 1,631,995 0 0 0 25,272 0 14,123 1,055 dash
18 no-host configure.cpython 1,583,954 0 0 0 25,280 0 11,268 836 osh-native
26 no-host configure.cpython 1,612,503 0 0 0 25,280 0 11,298 812 osh-nosouffle
34 no-host configure.cpython 1,523,453 0 0 0 25,272 0 11,318 829 osh-static
4 no-host configure.ocaml 299,589 0 0 0 4,432 0 2,013 183 bash
12 no-host configure.ocaml 281,200 0 0 0 4,432 0 2,108 221 dash
20 no-host configure.ocaml 305,585 0 0 0 4,440 0 1,996 253 osh-native
28 no-host configure.ocaml 306,623 0 0 0 4,440 0 1,997 207 osh-nosouffle
36 no-host configure.ocaml 299,570 0 0 0 4,432 0 1,998 260 osh-static
5 no-host configure.tcc 5,226 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,580 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,679 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,109 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,544,772 0 0 0 35,944 0 18,982 1,219 bash
11 no-host configure.util-linux 1,701,388 1 0 0 35,936 0 17,133 1,208 dash
19 no-host configure.util-linux 1,502,975 1 0 8 35,952 0 16,208 924 osh-native
27 no-host configure.util-linux 1,510,422 0 0 0 35,944 0 16,157 954 osh-nosouffle
35 no-host configure.util-linux 1,451,563 1 0 0 35,944 0 16,229 909 osh-static
6 no-host configure.yash 173,292 0 0 0 3,616 0 876 102 bash
14 no-host configure.yash 159,454 0 0 0 3,616 0 1,000 101 dash
22 no-host configure.yash 176,583 0 0 0 3,624 0 857 102 osh-native
30 no-host configure.yash 177,322 0 0 0 3,624 0 858 103 osh-nosouffle
38 no-host configure.yash 172,711 0 0 0 3,616 0 855 110 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 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 402 0 0 0 16 0 1 0 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-715c7ff1
osh-nosouffle osh-22b3cd45
osh-static osh-static-78e1cf9f
host label host id
no-host no-host-9c670df1