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 20 22 18 1.32 1.18
bin-true no-host 627 455 801 806 654 1.28 1.04
configure.cpython no-host 13,893 13,785 13,376 13,654 12,712 0.96 0.91
configure.ocaml no-host 3,632 3,623 3,726 3,646 3,604 1.03 0.99
configure.tcc no-host 46 42 46 47 43 1.02 0.94
configure.util-linux no-host 12,532 13,355 12,407 12,340 11,902 0.99 0.95
configure.yash no-host 1,706 1,651 1,684 1,651 1,643 0.99 0.96
hello-world no-host 1 1 3 3 1 2.27 0.95

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,383 1,164 3,339 3,412 2,808 1.40 1.18
bin-true no-host 101,479 49,368 132,398 132,994 110,966 1.30 1.09
configure.cpython no-host 1,627,237 1,639,143 1,597,624 1,607,424 1,522,623 0.98 0.94
configure.ocaml no-host 299,072 281,069 305,433 306,394 300,855 1.02 1.01
configure.tcc no-host 5,222 4,217 5,605 5,683 5,138 1.07 0.98
configure.util-linux no-host 1,535,893 1,704,192 1,499,692 1,515,698 1,457,354 0.98 0.95
configure.yash no-host 173,323 159,569 176,806 177,013 173,068 1.02 1.00
hello-world no-host 151 86 391 397 180 2.59 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.7 3.9 9.4 9.8 6.4 2.00 1.36
bin-true no-host 3.1 1.7 8.8 9.0 5.2 2.79 1.67
configure.cpython no-host 34.4 34.5 34.5 34.7 34.7 1.00 1.01
configure.ocaml no-host 28.6 28.6 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.3 26.1 26.1 1.00 0.99
configure.util-linux no-host 39.6 39.9 39.7 39.7 39.5 1.00 1.00
configure.yash no-host 33.1 33.4 33.3 33.3 33.1 1.00 1.00
hello-world no-host 3.1 1.6 6.7 6.9 3.4 2.12 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.7 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 801 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,376 2 66 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 12,407 3 64 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,726 1 2 2.8 28.6 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 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,684 1 2 2.7 33.3 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.4 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 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.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,654 2 68 14.8 34.7 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,340 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,646 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 47 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,651 1 2 2.7 33.3 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.8 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 16 5 11 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 22 11 12 9.8 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 627 313 354 3.1 bash
9 no-host bin-true 455 280 180 1.7 dash
17 no-host bin-true 801 310 506 8.8 osh-native
25 no-host bin-true 806 322 503 9.0 osh-nosouffle
33 no-host bin-true 654 317 354 5.2 osh-static
2 no-host configure.cpython 13,893 7,632 6,654 34.4 bash
10 no-host configure.cpython 13,785 7,556 6,636 34.5 dash
18 no-host configure.cpython 13,376 7,093 6,567 34.5 osh-native
26 no-host configure.cpython 13,654 7,251 6,698 34.7 osh-nosouffle
34 no-host configure.cpython 12,712 6,987 5,965 34.7 osh-static
4 no-host configure.ocaml 3,632 1,445 1,227 28.6 bash
12 no-host configure.ocaml 3,623 1,438 1,210 28.6 dash
20 no-host configure.ocaml 3,726 1,493 1,273 28.6 osh-native
28 no-host configure.ocaml 3,646 1,454 1,233 28.7 osh-nosouffle
36 no-host configure.ocaml 3,604 1,459 1,177 28.7 osh-static
5 no-host configure.tcc 46 26 20 26.3 bash
13 no-host configure.tcc 42 23 19 26.3 dash
21 no-host configure.tcc 46 24 23 26.3 osh-native
29 no-host configure.tcc 47 26 21 26.1 osh-nosouffle
37 no-host configure.tcc 43 26 18 26.1 osh-static
3 no-host configure.util-linux 12,532 6,581 6,417 39.6 bash
11 no-host configure.util-linux 13,355 6,476 7,377 39.9 dash
19 no-host configure.util-linux 12,407 6,107 6,526 39.7 osh-native
27 no-host configure.util-linux 12,340 6,113 6,451 39.7 osh-nosouffle
35 no-host configure.util-linux 11,902 6,006 6,114 39.5 osh-static
6 no-host configure.yash 1,706 969 747 33.1 bash
14 no-host configure.yash 1,651 924 730 33.4 dash
22 no-host configure.yash 1,684 976 711 33.3 osh-native
30 no-host configure.yash 1,651 931 724 33.3 osh-nosouffle
38 no-host configure.yash 1,643 931 715 33.1 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.7 osh-native
24 no-host hello-world 3 2 1 6.9 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,383 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,164 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,412 0 0 0 16 0 39 4 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,479 0 0 0 8 0 2,001 70 bash
9 no-host bin-true 49,368 0 0 0 8 0 2,991 66 dash
17 no-host bin-true 132,398 0 0 0 16 0 1,998 87 osh-native
25 no-host bin-true 132,994 0 0 0 16 0 1,996 70 osh-nosouffle
33 no-host bin-true 110,966 0 0 0 8 0 1,999 91 osh-static
2 no-host configure.cpython 1,627,237 0 0 0 25,272 0 14,085 1,040 bash
10 no-host configure.cpython 1,639,143 1 0 0 25,272 0 14,120 1,032 dash
18 no-host configure.cpython 1,597,624 0 0 0 25,280 0 11,306 848 osh-native
26 no-host configure.cpython 1,607,424 0 0 0 25,280 0 11,305 829 osh-nosouffle
34 no-host configure.cpython 1,522,623 1 0 0 25,272 0 11,303 873 osh-static
4 no-host configure.ocaml 299,072 0 0 0 4,432 0 2,019 210 bash
12 no-host configure.ocaml 281,069 0 0 0 4,432 0 2,104 193 dash
20 no-host configure.ocaml 305,433 0 0 0 4,440 0 1,999 203 osh-native
28 no-host configure.ocaml 306,394 0 0 0 4,440 0 2,005 192 osh-nosouffle
36 no-host configure.ocaml 300,855 0 0 0 4,432 0 2,004 210 osh-static
5 no-host configure.tcc 5,222 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,217 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,605 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,683 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,138 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,535,893 1 0 232 35,944 0 18,993 1,075 bash
11 no-host configure.util-linux 1,704,192 0 0 0 35,936 0 17,135 1,176 dash
19 no-host configure.util-linux 1,499,692 1 0 0 35,952 0 16,206 915 osh-native
27 no-host configure.util-linux 1,515,698 1 0 0 35,944 0 16,215 930 osh-nosouffle
35 no-host configure.util-linux 1,457,354 0 0 0 35,936 0 16,195 947 osh-static
6 no-host configure.yash 173,323 0 0 0 3,616 0 876 95 bash
14 no-host configure.yash 159,569 0 0 0 3,616 0 1,001 107 dash
22 no-host configure.yash 176,806 0 0 0 3,624 0 857 97 osh-native
30 no-host configure.yash 177,013 0 0 0 3,624 0 858 105 osh-nosouffle
38 no-host configure.yash 173,068 0 0 0 3,624 0 855 102 osh-static
0 no-host hello-world 151 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 397 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-e35c119a
osh-nosouffle osh-4da4c0ac
osh-static osh-static-c496eeca
host label host id
no-host no-host-9c670df1