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 20 16 1.43 1.25
bin-true no-host 447 303 643 626 502 1.44 1.12
configure.cpython no-host 11,902 11,949 11,963 12,151 11,682 1.01 0.98
configure.ocaml no-host 3,380 3,316 3,431 3,445 3,419 1.01 1.01
configure.tcc no-host 39 36 42 42 38 1.07 0.98
configure.util-linux no-host 10,516 11,257 10,846 11,098 10,611 1.03 1.01
configure.yash no-host 1,487 1,467 1,516 1,510 1,496 1.02 1.01
hello-world no-host 1 1 2 2 1 2.37 1.11

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,441 1,172 3,326 3,445 2,808 1.36 1.15
bin-true no-host 101,892 49,804 133,815 136,412 111,429 1.31 1.09
configure.cpython no-host 1,629,230 1,642,432 1,585,604 1,597,883 1,526,745 0.97 0.94
configure.ocaml no-host 300,253 281,374 306,134 307,710 301,651 1.02 1.00
configure.tcc no-host 5,254 4,232 5,592 5,685 5,143 1.06 0.98
configure.util-linux no-host 1,545,605 1,709,364 1,501,525 1,523,299 1,462,425 0.97 0.95
configure.yash no-host 173,951 159,901 176,887 177,570 173,436 1.02 1.00
hello-world no-host 154 85 392 399 184 2.55 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.4 1.6 8.7 9.2 5.2 2.54 1.54
configure.cpython no-host 34.3 34.3 34.8 34.6 34.4 1.02 1.00
configure.ocaml no-host 28.8 28.8 28.8 28.6 28.7 1.00 1.00
configure.tcc no-host 26.4 26.2 26.3 26.2 26.3 1.00 0.99
configure.util-linux no-host 39.6 39.6 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.5 33.2 33.4 33.5 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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 643 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 11,963 1 64 14.8 34.8 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,846 3 66 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,431 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 42 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,516 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 18 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 626 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,151 1 64 14.8 34.6 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,098 3 68 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,445 1 2 2.8 28.6 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,510 1 2 2.7 33.5 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 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 13 10 4 4.8 bash
15 no-host abuild-print-help 7 4 4 3.9 dash
23 no-host abuild-print-help 18 9 9 9.6 osh-native
31 no-host abuild-print-help 20 8 12 10.1 osh-nosouffle
39 no-host abuild-print-help 16 12 5 6.4 osh-static
1 no-host bin-true 447 284 192 3.4 bash
9 no-host bin-true 303 225 78 1.6 dash
17 no-host bin-true 643 321 333 8.7 osh-native
25 no-host bin-true 626 316 320 9.2 osh-nosouffle
33 no-host bin-true 502 292 221 5.2 osh-static
2 no-host configure.cpython 11,902 7,697 4,486 34.3 bash
10 no-host configure.cpython 11,949 7,740 4,490 34.3 dash
18 no-host configure.cpython 11,963 7,294 4,852 34.8 osh-native
26 no-host configure.cpython 12,151 7,471 4,850 34.6 osh-nosouffle
34 no-host configure.cpython 11,682 7,389 4,443 34.4 osh-static
4 no-host configure.ocaml 3,380 1,509 887 28.8 bash
12 no-host configure.ocaml 3,316 1,450 871 28.8 dash
20 no-host configure.ocaml 3,431 1,512 928 28.8 osh-native
28 no-host configure.ocaml 3,445 1,516 947 28.6 osh-nosouffle
36 no-host configure.ocaml 3,419 1,529 900 28.7 osh-static
5 no-host configure.tcc 39 22 17 26.4 bash
13 no-host configure.tcc 36 27 9 26.2 dash
21 no-host configure.tcc 42 29 12 26.3 osh-native
29 no-host configure.tcc 42 30 12 26.2 osh-nosouffle
37 no-host configure.tcc 38 22 17 26.3 osh-static
3 no-host configure.util-linux 10,516 6,666 4,197 39.6 bash
11 no-host configure.util-linux 11,257 6,685 4,948 39.6 dash
19 no-host configure.util-linux 10,846 6,324 4,647 39.6 osh-native
27 no-host configure.util-linux 11,098 6,415 4,821 39.7 osh-nosouffle
35 no-host configure.util-linux 10,611 6,323 4,418 39.6 osh-static
6 no-host configure.yash 1,487 939 541 33.5 bash
14 no-host configure.yash 1,467 947 513 33.2 dash
22 no-host configure.yash 1,516 967 540 33.4 osh-native
30 no-host configure.yash 1,510 957 545 33.5 osh-nosouffle
38 no-host configure.yash 1,496 969 519 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 1 1 7.1 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,441 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,326 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,445 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,808 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,892 0 0 0 8 0 1,997 57 bash
9 no-host bin-true 49,804 0 0 0 8 0 3,000 42 dash
17 no-host bin-true 133,815 0 0 0 16 0 1,997 89 osh-native
25 no-host bin-true 136,412 0 0 0 16 0 1,998 83 osh-nosouffle
33 no-host bin-true 111,429 0 0 0 8 0 2,001 66 osh-static
2 no-host configure.cpython 1,629,230 0 0 0 25,272 0 14,087 977 bash
10 no-host configure.cpython 1,642,432 0 0 0 25,272 0 14,093 914 dash
18 no-host configure.cpython 1,585,604 0 0 0 25,280 0 11,267 798 osh-native
26 no-host configure.cpython 1,597,883 1 0 0 25,280 0 11,325 815 osh-nosouffle
34 no-host configure.cpython 1,526,745 0 0 0 25,272 0 11,332 840 osh-static
4 no-host configure.ocaml 300,253 0 0 0 4,432 0 2,024 194 bash
12 no-host configure.ocaml 281,374 0 0 0 4,432 0 2,113 178 dash
20 no-host configure.ocaml 306,134 0 0 0 4,440 0 2,007 206 osh-native
28 no-host configure.ocaml 307,710 0 0 0 4,440 0 2,006 179 osh-nosouffle
36 no-host configure.ocaml 301,651 0 0 0 4,432 0 2,003 211 osh-static
5 no-host configure.tcc 5,254 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,232 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,592 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 45 5 osh-nosouffle
37 no-host configure.tcc 5,143 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,545,605 1 0 232 35,944 0 18,807 1,000 bash
11 no-host configure.util-linux 1,709,364 0 0 0 35,936 0 17,013 1,121 dash
19 no-host configure.util-linux 1,501,525 5 0 0 35,960 0 16,185 873 osh-native
27 no-host configure.util-linux 1,523,299 2 0 0 35,944 0 16,228 887 osh-nosouffle
35 no-host configure.util-linux 1,462,425 4 0 0 35,936 0 16,194 826 osh-static
6 no-host configure.yash 173,951 0 0 0 3,616 0 878 88 bash
14 no-host configure.yash 159,901 0 0 0 3,616 0 1,001 99 dash
22 no-host configure.yash 176,887 0 0 0 3,624 0 856 83 osh-native
30 no-host configure.yash 177,570 0 0 0 3,624 0 857 95 osh-nosouffle
38 no-host configure.yash 173,436 0 0 0 3,616 0 857 97 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 392 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 184 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-7cbbadf1
osh-nosouffle osh-837fcf4e
osh-static osh-static-e326900c
host label host id
no-host no-host-9c670df1