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 20 19 17 1.56 1.33
bin-true no-host 449 304 603 606 485 1.34 1.08
configure.cpython no-host 12,011 11,989 11,695 11,759 11,252 0.97 0.94
configure.ocaml no-host 3,370 3,301 3,386 3,363 3,385 1.00 1.00
configure.tcc no-host 39 34 40 40 37 1.04 0.97
configure.util-linux no-host 10,536 11,227 10,615 10,707 10,505 1.01 1.00
configure.yash no-host 1,487 1,437 1,491 1,482 1,463 1.00 0.98
hello-world no-host 1 1 2 2 1 1.84 0.88

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,405 1,197 3,286 3,429 2,812 1.37 1.17
bin-true no-host 104,920 49,829 131,824 132,403 111,369 1.26 1.06
configure.cpython no-host 1,632,079 1,636,103 1,595,939 1,604,137 1,525,298 0.98 0.93
configure.ocaml no-host 300,723 281,503 306,652 307,005 301,631 1.02 1.00
configure.tcc no-host 5,218 4,228 5,639 5,693 5,165 1.08 0.99
configure.util-linux no-host 1,542,054 1,702,418 1,504,187 1,525,827 1,462,506 0.98 0.95
configure.yash no-host 173,938 159,892 177,011 177,171 173,391 1.02 1.00
hello-world no-host 153 90 392 400 181 2.56 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.6 10.0 6.4 1.97 1.32
bin-true no-host 3.3 1.7 8.9 9.2 5.2 2.72 1.60
configure.cpython no-host 34.4 34.5 34.7 34.5 34.3 1.01 1.00
configure.ocaml no-host 28.9 28.8 28.8 28.9 28.8 1.00 1.00
configure.tcc no-host 26.3 26.2 26.4 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.9 39.6 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.1 33.4 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.3 1.7 6.7 7.1 3.4 2.04 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.7 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 603 1 2 3.5 8.9 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 11,695 1 63 14.8 34.7 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,615 3 66 21.6 39.7 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,386 1 2 2.8 28.8 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,491 1 2 2.7 33.4 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 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.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 606 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 11,759 1 62 14.8 34.5 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,707 3 64 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,363 1 2 2.8 28.9 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.3 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,482 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 19 1 2 3.0 10.0 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 13 10 3 4.8 bash
15 no-host abuild-print-help 7 3 4 4.1 dash
23 no-host abuild-print-help 20 13 7 9.6 osh-native
31 no-host abuild-print-help 19 13 6 10.0 osh-nosouffle
39 no-host abuild-print-help 17 13 4 6.4 osh-static
1 no-host bin-true 449 280 196 3.3 bash
9 no-host bin-true 304 220 84 1.7 dash
17 no-host bin-true 603 322 292 8.9 osh-native
25 no-host bin-true 606 314 302 9.2 osh-nosouffle
33 no-host bin-true 485 295 203 5.2 osh-static
2 no-host configure.cpython 12,011 7,768 4,514 34.4 bash
10 no-host configure.cpython 11,989 7,803 4,470 34.5 dash
18 no-host configure.cpython 11,695 7,353 4,523 34.7 osh-native
26 no-host configure.cpython 11,759 7,314 4,630 34.5 osh-nosouffle
34 no-host configure.cpython 11,252 7,328 4,077 34.3 osh-static
4 no-host configure.ocaml 3,370 1,523 866 28.9 bash
12 no-host configure.ocaml 3,301 1,462 839 28.8 dash
20 no-host configure.ocaml 3,386 1,519 884 28.8 osh-native
28 no-host configure.ocaml 3,363 1,477 903 28.9 osh-nosouffle
36 no-host configure.ocaml 3,385 1,507 886 28.8 osh-static
5 no-host configure.tcc 39 26 13 26.3 bash
13 no-host configure.tcc 34 25 9 26.2 dash
21 no-host configure.tcc 40 21 19 26.4 osh-native
29 no-host configure.tcc 40 25 15 26.3 osh-nosouffle
37 no-host configure.tcc 37 25 12 26.3 osh-static
3 no-host configure.util-linux 10,536 6,753 4,120 39.9 bash
11 no-host configure.util-linux 11,227 6,785 4,789 39.6 dash
19 no-host configure.util-linux 10,615 6,287 4,459 39.7 osh-native
27 no-host configure.util-linux 10,707 6,318 4,526 39.7 osh-nosouffle
35 no-host configure.util-linux 10,505 6,303 4,332 39.7 osh-static
6 no-host configure.yash 1,487 953 531 33.1 bash
14 no-host configure.yash 1,437 947 481 33.4 dash
22 no-host configure.yash 1,491 958 526 33.4 osh-native
30 no-host configure.yash 1,482 963 509 33.4 osh-nosouffle
38 no-host configure.yash 1,463 963 492 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 2 2 0 6.7 osh-native
24 no-host hello-world 2 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,405 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,197 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,286 0 0 0 16 0 38 2 osh-native
31 no-host abuild-print-help 3,429 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,812 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 104,920 0 0 0 8 0 1,997 45 bash
9 no-host bin-true 49,829 0 0 0 8 0 3,001 41 dash
17 no-host bin-true 131,824 0 0 0 16 0 1,998 70 osh-native
25 no-host bin-true 132,403 0 0 0 16 0 1,999 80 osh-nosouffle
33 no-host bin-true 111,369 0 0 0 8 0 1,999 39 osh-static
2 no-host configure.cpython 1,632,079 0 0 0 25,272 0 14,044 968 bash
10 no-host configure.cpython 1,636,103 0 0 0 25,272 0 14,119 965 dash
18 no-host configure.cpython 1,595,939 0 0 0 25,280 0 11,314 829 osh-native
26 no-host configure.cpython 1,604,137 1 0 0 25,280 0 11,313 791 osh-nosouffle
34 no-host configure.cpython 1,525,298 0 0 0 25,272 0 11,299 780 osh-static
4 no-host configure.ocaml 300,723 0 0 0 4,432 0 2,022 157 bash
12 no-host configure.ocaml 281,503 0 0 0 4,432 0 2,110 174 dash
20 no-host configure.ocaml 306,652 0 0 0 4,440 0 2,009 191 osh-native
28 no-host configure.ocaml 307,005 0 0 0 4,440 0 2,000 179 osh-nosouffle
36 no-host configure.ocaml 301,631 0 0 0 4,432 0 2,003 209 osh-static
5 no-host configure.tcc 5,218 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,228 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,639 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,693 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,165 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,542,054 0 0 232 35,944 0 18,812 949 bash
11 no-host configure.util-linux 1,702,418 0 0 0 35,936 0 17,000 1,123 dash
19 no-host configure.util-linux 1,504,187 5 0 0 35,960 0 16,169 879 osh-native
27 no-host configure.util-linux 1,525,827 2 0 0 35,944 0 16,214 851 osh-nosouffle
35 no-host configure.util-linux 1,462,506 2 0 0 35,936 0 16,217 870 osh-static
6 no-host configure.yash 173,938 0 0 0 3,616 0 877 86 bash
14 no-host configure.yash 159,892 0 0 0 3,616 0 1,003 94 dash
22 no-host configure.yash 177,011 0 0 0 3,624 0 856 95 osh-native
30 no-host configure.yash 177,171 0 0 0 3,624 0 858 93 osh-nosouffle
38 no-host configure.yash 173,391 0 0 0 3,616 0 857 97 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 90 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 400 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-b9574d92
osh-nosouffle osh-3f577d61
osh-static osh-static-ae84d343
host label host id
no-host no-host-9c670df1