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 13 7 18 19 17 1.37 1.28
bin-true no-host 473 307 612 621 521 1.29 1.10
configure.cpython no-host 12,524 12,392 12,275 12,096 11,904 0.98 0.95
configure.ocaml no-host 3,426 3,392 3,460 3,513 3,487 1.01 1.02
configure.tcc no-host 39 36 41 42 39 1.05 0.99
configure.util-linux no-host 10,845 11,571 10,972 11,176 11,007 1.01 1.01
configure.yash no-host 1,522 1,488 1,537 1,551 1,531 1.01 1.01
hello-world no-host 1 1 2 2 1 2.34 1.05

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,431 1,168 3,293 3,385 2,844 1.35 1.17
bin-true no-host 103,869 49,853 134,457 135,742 112,157 1.29 1.08
configure.cpython no-host 1,636,983 1,643,773 1,595,114 1,605,058 1,527,669 0.97 0.93
configure.ocaml no-host 299,852 281,572 307,098 307,590 300,970 1.02 1.00
configure.tcc no-host 5,219 4,235 5,627 5,713 5,153 1.08 0.99
configure.util-linux no-host 1,547,432 1,706,952 1,497,263 1,526,007 1,457,630 0.97 0.94
configure.yash no-host 173,673 159,895 177,110 177,257 173,297 1.02 1.00
hello-world no-host 154 85 389 397 183 2.53 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.6 10.1 6.4 1.97 1.32
bin-true no-host 3.3 1.6 8.8 9.3 5.4 2.68 1.64
configure.cpython no-host 34.5 34.5 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.5 28.7 28.8 28.6 1.00 0.99
configure.tcc no-host 26.1 26.3 26.2 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.6 39.7 39.2 39.7 39.5 0.99 1.00
configure.yash no-host 33.4 33.4 33.5 33.4 33.1 1.00 0.99
hello-world no-host 3.1 1.4 6.4 6.8 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 2 0 0 0.3 6.4 3,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 612 1 2 3.5 8.8 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 12,275 1 62 14.8 34.4 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,972 3 67 21.6 39.2 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,460 1 2 2.8 28.7 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,537 1 2 2.7 33.5 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.6 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 2 0 0 0.3 6.8 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 621 1 2 3.5 9.3 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 12,096 1 62 14.8 34.5 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,176 3 66 21.6 39.7 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,513 1 2 2.8 28.8 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 42 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,551 1 2 2.7 33.4 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 13 11 3 4.8 bash
15 no-host abuild-print-help 7 4 3 3.9 dash
23 no-host abuild-print-help 18 12 7 9.6 osh-native
31 no-host abuild-print-help 19 11 9 10.1 osh-nosouffle
39 no-host abuild-print-help 17 9 8 6.4 osh-static
1 no-host bin-true 473 286 218 3.3 bash
9 no-host bin-true 307 224 83 1.6 dash
17 no-host bin-true 612 315 309 8.8 osh-native
25 no-host bin-true 621 308 324 9.3 osh-nosouffle
33 no-host bin-true 521 298 231 5.4 osh-static
2 no-host configure.cpython 12,524 7,818 4,947 34.5 bash
10 no-host configure.cpython 12,392 7,924 4,720 34.5 dash
18 no-host configure.cpython 12,275 7,528 4,908 34.4 osh-native
26 no-host configure.cpython 12,096 7,419 4,846 34.5 osh-nosouffle
34 no-host configure.cpython 11,904 7,438 4,598 34.5 osh-static
4 no-host configure.ocaml 3,426 1,542 896 28.8 bash
12 no-host configure.ocaml 3,392 1,538 846 28.5 dash
20 no-host configure.ocaml 3,460 1,530 938 28.7 osh-native
28 no-host configure.ocaml 3,513 1,531 989 28.8 osh-nosouffle
36 no-host configure.ocaml 3,487 1,561 927 28.6 osh-static
5 no-host configure.tcc 39 26 14 26.1 bash
13 no-host configure.tcc 36 26 10 26.3 dash
21 no-host configure.tcc 41 27 14 26.2 osh-native
29 no-host configure.tcc 42 27 15 26.2 osh-nosouffle
37 no-host configure.tcc 39 17 22 26.3 osh-static
3 no-host configure.util-linux 10,845 6,822 4,363 39.6 bash
11 no-host configure.util-linux 11,571 6,760 5,178 39.7 dash
19 no-host configure.util-linux 10,972 6,430 4,663 39.2 osh-native
27 no-host configure.util-linux 11,176 6,491 4,792 39.7 osh-nosouffle
35 no-host configure.util-linux 11,007 6,537 4,591 39.5 osh-static
6 no-host configure.yash 1,522 960 557 33.4 bash
14 no-host configure.yash 1,488 960 517 33.4 dash
22 no-host configure.yash 1,537 977 550 33.5 osh-native
30 no-host configure.yash 1,551 996 547 33.4 osh-nosouffle
38 no-host configure.yash 1,531 966 555 33.1 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 2 1 1 6.4 osh-native
24 no-host hello-world 2 2 0 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,431 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,293 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,385 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,844 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,869 0 0 0 8 0 1,998 52 bash
9 no-host bin-true 49,853 0 0 0 8 0 3,000 42 dash
17 no-host bin-true 134,457 0 0 0 16 0 2,000 57 osh-native
25 no-host bin-true 135,742 0 0 0 16 0 2,000 69 osh-nosouffle
33 no-host bin-true 112,157 0 0 0 8 0 2,000 63 osh-static
2 no-host configure.cpython 1,636,983 0 0 0 25,272 0 14,016 1,096 bash
10 no-host configure.cpython 1,643,773 0 0 0 25,272 0 14,108 962 dash
18 no-host configure.cpython 1,595,114 0 0 0 25,280 0 11,286 948 osh-native
26 no-host configure.cpython 1,605,058 0 0 0 25,280 0 11,309 811 osh-nosouffle
34 no-host configure.cpython 1,527,669 0 0 0 25,272 0 11,307 957 osh-static
4 no-host configure.ocaml 299,852 0 0 0 4,432 0 2,021 190 bash
12 no-host configure.ocaml 281,572 0 0 0 4,432 0 2,109 194 dash
20 no-host configure.ocaml 307,098 0 0 0 4,440 0 2,005 203 osh-native
28 no-host configure.ocaml 307,590 0 0 0 4,440 0 2,003 176 osh-nosouffle
36 no-host configure.ocaml 300,970 0 0 0 4,432 0 2,004 199 osh-static
5 no-host configure.tcc 5,219 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,235 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,627 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,713 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,153 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,547,432 0 0 0 35,944 0 18,843 1,005 bash
11 no-host configure.util-linux 1,706,952 0 0 496 35,936 0 16,965 1,085 dash
19 no-host configure.util-linux 1,497,263 4 0 0 35,960 0 16,226 892 osh-native
27 no-host configure.util-linux 1,526,007 3 0 0 35,944 0 16,265 853 osh-nosouffle
35 no-host configure.util-linux 1,457,630 2 0 0 35,936 0 16,196 864 osh-static
6 no-host configure.yash 173,673 0 0 0 3,616 0 880 86 bash
14 no-host configure.yash 159,895 0 0 0 3,616 0 1,003 116 dash
22 no-host configure.yash 177,110 0 0 0 3,624 0 858 104 osh-native
30 no-host configure.yash 177,257 0 0 0 3,624 0 858 90 osh-nosouffle
38 no-host configure.yash 173,297 0 0 0 3,616 0 857 98 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 0 dash
16 no-host hello-world 389 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 397 0 0 0 16 0 1 1 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-4b2636cd
osh-nosouffle osh-9690f91a
osh-static osh-static-4f779e34
host label host id
no-host no-host-9c670df1