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 14 7 19 23 17 1.33 1.18
bin-true no-host 486 322 608 648 521 1.25 1.07
configure.cpython no-host 12,130 12,219 12,664 12,150 11,704 1.04 0.96
configure.ocaml no-host 3,377 3,329 3,537 3,487 3,428 1.05 1.02
configure.tcc no-host 39 35 41 42 37 1.04 0.94
configure.util-linux no-host 10,838 11,325 11,741 10,990 10,914 1.08 1.01
configure.yash no-host 1,506 1,449 1,527 1,554 1,485 1.01 0.99
hello-world no-host 1 1 2 2 1 2.44 1.06

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,371 1,180 3,357 3,460 2,806 1.42 1.18
bin-true no-host 104,882 49,866 131,798 131,377 110,410 1.26 1.05
configure.cpython no-host 1,630,505 1,642,613 1,599,315 1,613,343 1,526,885 0.98 0.94
configure.ocaml no-host 299,896 281,452 305,637 307,037 301,701 1.02 1.01
configure.tcc no-host 5,245 4,236 5,651 5,691 5,160 1.08 0.98
configure.util-linux no-host 1,545,904 1,707,052 1,498,974 1,516,313 1,461,905 0.97 0.95
configure.yash no-host 173,726 159,930 177,008 177,674 173,398 1.02 1.00
hello-world no-host 154 86 391 399 182 2.54 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.8 4.1 9.7 10.1 6.4 2.00 1.32
bin-true no-host 3.3 1.6 8.7 9.2 5.2 2.64 1.60
configure.cpython no-host 34.7 34.6 34.5 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.9 28.7 28.9 28.7 28.8 1.00 1.00
configure.tcc no-host 26.1 26.3 26.2 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.5 39.7 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.1 33.5 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.2 3.4 2.00 1.04

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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 608 1 2 3.5 8.7 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 12,664 1 65 14.8 34.5 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,741 6 73 21.6 39.6 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,537 1 2 2.8 28.9 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,527 1 2 2.7 33.5 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 9.7 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 2 0 0 0.3 7.2 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 648 1 2 3.5 9.2 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 12,150 1 63 14.8 34.4 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,990 3 65 21.6 39.7 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,487 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 42 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,554 1 2 2.7 33.4 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 23 1 3 3.0 10.1 117,212 65,788 41,998 4,969 54,592 57,651 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 14 6 8 4.8 bash
15 no-host abuild-print-help 7 4 4 4.1 dash
23 no-host abuild-print-help 19 11 8 9.7 osh-native
31 no-host abuild-print-help 23 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 17 10 7 6.4 osh-static
1 no-host bin-true 486 292 229 3.3 bash
9 no-host bin-true 322 227 89 1.6 dash
17 no-host bin-true 608 325 297 8.7 osh-native
25 no-host bin-true 648 320 340 9.2 osh-nosouffle
33 no-host bin-true 521 309 221 5.2 osh-static
2 no-host configure.cpython 12,130 7,800 4,641 34.7 bash
10 no-host configure.cpython 12,219 7,831 4,707 34.6 dash
18 no-host configure.cpython 12,664 7,612 5,229 34.5 osh-native
26 no-host configure.cpython 12,150 7,361 4,992 34.4 osh-nosouffle
34 no-host configure.cpython 11,704 7,413 4,453 34.5 osh-static
4 no-host configure.ocaml 3,377 1,496 901 28.9 bash
12 no-host configure.ocaml 3,329 1,514 819 28.7 dash
20 no-host configure.ocaml 3,537 1,597 950 28.9 osh-native
28 no-host configure.ocaml 3,487 1,558 944 28.7 osh-nosouffle
36 no-host configure.ocaml 3,428 1,534 904 28.8 osh-static
5 no-host configure.tcc 39 28 12 26.1 bash
13 no-host configure.tcc 35 18 17 26.3 dash
21 no-host configure.tcc 41 23 18 26.2 osh-native
29 no-host configure.tcc 42 15 27 26.2 osh-nosouffle
37 no-host configure.tcc 37 28 9 26.3 osh-static
3 no-host configure.util-linux 10,838 6,884 4,303 39.5 bash
11 no-host configure.util-linux 11,325 6,771 4,957 39.7 dash
19 no-host configure.util-linux 11,741 6,738 5,072 39.6 osh-native
27 no-host configure.util-linux 10,990 6,433 4,691 39.7 osh-nosouffle
35 no-host configure.util-linux 10,914 6,584 4,451 39.6 osh-static
6 no-host configure.yash 1,506 970 536 33.4 bash
14 no-host configure.yash 1,449 937 506 33.1 dash
22 no-host configure.yash 1,527 977 543 33.5 osh-native
30 no-host configure.yash 1,554 961 584 33.4 osh-nosouffle
38 no-host configure.yash 1,485 964 517 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 2 1 2 6.6 osh-native
24 no-host hello-world 2 2 0 7.2 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,371 0 0 0 8 0 39 2 bash
15 no-host abuild-print-help 1,180 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,357 0 0 0 16 0 38 2 osh-native
31 no-host abuild-print-help 3,460 0 0 0 16 0 38 2 osh-nosouffle
39 no-host abuild-print-help 2,806 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 104,882 0 0 0 8 0 1,997 45 bash
9 no-host bin-true 49,866 0 0 0 8 0 2,999 41 dash
17 no-host bin-true 131,798 0 0 0 16 0 1,997 71 osh-native
25 no-host bin-true 131,377 0 0 0 16 0 1,992 80 osh-nosouffle
33 no-host bin-true 110,410 0 0 0 8 0 1,999 63 osh-static
2 no-host configure.cpython 1,630,505 0 0 0 25,272 0 14,017 949 bash
10 no-host configure.cpython 1,642,613 0 0 0 25,272 0 14,066 1,150 dash
18 no-host configure.cpython 1,599,315 0 0 0 25,280 0 11,322 853 osh-native
26 no-host configure.cpython 1,613,343 0 0 0 25,280 0 11,304 832 osh-nosouffle
34 no-host configure.cpython 1,526,885 0 0 0 25,272 0 11,272 780 osh-static
4 no-host configure.ocaml 299,896 0 0 0 4,432 0 2,022 170 bash
12 no-host configure.ocaml 281,452 0 0 0 4,432 0 2,114 179 dash
20 no-host configure.ocaml 305,637 0 0 0 4,440 0 2,003 221 osh-native
28 no-host configure.ocaml 307,037 0 0 0 4,440 0 1,997 193 osh-nosouffle
36 no-host configure.ocaml 301,701 0 0 0 4,432 0 1,999 194 osh-static
5 no-host configure.tcc 5,245 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,236 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,651 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,691 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,160 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,545,904 0 0 232 35,944 0 18,736 964 bash
11 no-host configure.util-linux 1,707,052 2 0 0 35,936 0 16,902 1,076 dash
19 no-host configure.util-linux 1,498,974 1 0 0 35,960 0 16,127 875 osh-native
27 no-host configure.util-linux 1,516,313 1 0 0 35,944 0 16,165 922 osh-nosouffle
35 no-host configure.util-linux 1,461,905 3 0 0 35,936 0 16,076 906 osh-static
6 no-host configure.yash 173,726 0 0 0 3,616 0 878 84 bash
14 no-host configure.yash 159,930 0 0 0 3,616 0 1,002 95 dash
22 no-host configure.yash 177,008 0 0 0 3,624 0 857 100 osh-native
30 no-host configure.yash 177,674 0 0 0 3,624 0 855 96 osh-nosouffle
38 no-host configure.yash 173,398 0 0 0 3,616 0 857 100 osh-static
0 no-host hello-world 154 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 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 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-cd2f85a6
osh-nosouffle osh-1449c97f
osh-static osh-static-6ccbc11c
host label host id
no-host no-host-9c670df1