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 15 9 20 22 18 1.32 1.16
bin-true no-host 628 455 811 811 655 1.29 1.04
configure.cpython no-host 14,015 13,762 13,459 13,463 12,928 0.96 0.92
configure.ocaml no-host 3,644 3,589 3,685 3,701 3,648 1.01 1.00
configure.tcc no-host 46 41 46 47 42 1.02 0.93
configure.util-linux no-host 12,469 13,188 12,532 12,465 12,058 1.01 0.97
configure.yash no-host 1,681 1,651 1,690 1,695 1,651 1.01 0.98
hello-world no-host 1 1 3 3 1 2.31 0.96

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,363 1,163 3,339 3,428 2,797 1.41 1.18
bin-true no-host 101,472 49,360 134,514 137,608 111,362 1.33 1.10
configure.cpython no-host 1,624,678 1,633,099 1,596,931 1,606,258 1,521,662 0.98 0.94
configure.ocaml no-host 298,927 280,707 305,867 307,720 299,955 1.02 1.00
configure.tcc no-host 5,245 4,193 5,578 5,691 5,113 1.06 0.97
configure.util-linux no-host 1,544,535 1,703,474 1,501,280 1,506,163 1,450,396 0.97 0.94
configure.yash no-host 173,338 159,464 176,942 177,498 172,789 1.02 1.00
hello-world no-host 150 86 390 398 182 2.60 1.21

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.6 10.1 6.4 2.03 1.36
bin-true no-host 3.3 1.7 8.5 9.3 5.2 2.60 1.60
configure.cpython no-host 34.7 34.5 34.3 34.5 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.0 26.0 26.2 26.3 26.0 1.01 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.3 33.1 33.1 1.00 0.99
hello-world no-host 3.1 1.6 6.6 7.1 3.4 2.08 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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 811 1 2 3.5 8.5 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,459 1 68 14.8 34.3 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,532 3 67 21.6 39.6 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,685 1 2 2.8 28.7 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,690 1 2 2.7 33.3 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 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 811 1 2 3.5 9.3 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,463 1 66 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,465 3 64 21.6 39.7 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,701 1 2 2.8 28.7 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,695 1 2 2.7 33.1 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,251 65,788 41,998 4,969 54,631 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 15 11 5 4.7 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 22 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 18 14 4 6.4 osh-static
1 no-host bin-true 628 310 356 3.3 bash
9 no-host bin-true 455 272 188 1.7 dash
17 no-host bin-true 811 320 505 8.5 osh-native
25 no-host bin-true 811 312 516 9.3 osh-nosouffle
33 no-host bin-true 655 327 348 5.2 osh-static
2 no-host configure.cpython 14,015 7,703 6,706 34.7 bash
10 no-host configure.cpython 13,762 7,451 6,706 34.5 dash
18 no-host configure.cpython 13,459 7,107 6,625 34.3 osh-native
26 no-host configure.cpython 13,463 7,198 6,547 34.5 osh-nosouffle
34 no-host configure.cpython 12,928 7,127 6,030 34.5 osh-static
4 no-host configure.ocaml 3,644 1,489 1,193 28.7 bash
12 no-host configure.ocaml 3,589 1,503 1,110 28.5 dash
20 no-host configure.ocaml 3,685 1,463 1,261 28.7 osh-native
28 no-host configure.ocaml 3,701 1,438 1,304 28.7 osh-nosouffle
36 no-host configure.ocaml 3,648 1,508 1,173 28.7 osh-static
5 no-host configure.tcc 46 27 19 26.0 bash
13 no-host configure.tcc 41 24 18 26.0 dash
21 no-host configure.tcc 46 27 20 26.2 osh-native
29 no-host configure.tcc 47 22 25 26.3 osh-nosouffle
37 no-host configure.tcc 42 24 19 26.0 osh-static
3 no-host configure.util-linux 12,469 6,430 6,501 39.6 bash
11 no-host configure.util-linux 13,188 6,405 7,273 39.6 dash
19 no-host configure.util-linux 12,532 6,230 6,522 39.6 osh-native
27 no-host configure.util-linux 12,465 6,132 6,554 39.7 osh-nosouffle
35 no-host configure.util-linux 12,058 6,154 6,115 39.7 osh-static
6 no-host configure.yash 1,681 936 754 33.4 bash
14 no-host configure.yash 1,651 971 681 33.1 dash
22 no-host configure.yash 1,690 943 750 33.3 osh-native
30 no-host configure.yash 1,695 936 761 33.1 osh-nosouffle
38 no-host configure.yash 1,651 972 683 33.1 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 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,363 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,428 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,797 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,472 0 0 0 8 0 1,997 61 bash
9 no-host bin-true 49,360 0 0 0 8 0 2,995 50 dash
17 no-host bin-true 134,514 0 0 0 16 0 1,995 102 osh-native
25 no-host bin-true 137,608 0 0 0 16 0 1,997 52 osh-nosouffle
33 no-host bin-true 111,362 0 0 0 8 0 1,996 76 osh-static
2 no-host configure.cpython 1,624,678 0 0 0 25,272 0 14,076 1,005 bash
10 no-host configure.cpython 1,633,099 0 0 0 25,272 0 14,107 1,048 dash
18 no-host configure.cpython 1,596,931 0 0 0 25,280 0 11,285 848 osh-native
26 no-host configure.cpython 1,606,258 0 0 0 25,280 0 11,280 849 osh-nosouffle
34 no-host configure.cpython 1,521,662 0 0 0 25,272 0 11,304 843 osh-static
4 no-host configure.ocaml 298,927 0 0 0 4,432 0 2,020 270 bash
12 no-host configure.ocaml 280,707 0 0 0 4,432 0 2,106 195 dash
20 no-host configure.ocaml 305,867 0 0 8 4,440 0 2,000 202 osh-native
28 no-host configure.ocaml 307,720 0 0 0 4,440 0 2,000 208 osh-nosouffle
36 no-host configure.ocaml 299,955 1 0 0 4,432 0 2,000 224 osh-static
5 no-host configure.tcc 5,245 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,193 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,578 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,691 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,113 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,544,535 0 0 0 35,944 0 18,943 1,105 bash
11 no-host configure.util-linux 1,703,474 1 0 0 35,936 0 17,104 1,199 dash
19 no-host configure.util-linux 1,501,280 0 0 0 35,952 0 16,209 1,036 osh-native
27 no-host configure.util-linux 1,506,163 0 0 0 35,944 0 16,208 938 osh-nosouffle
35 no-host configure.util-linux 1,450,396 1 0 0 35,936 0 16,149 991 osh-static
6 no-host configure.yash 173,338 0 0 0 3,616 0 878 93 bash
14 no-host configure.yash 159,464 0 0 0 3,616 0 1,001 103 dash
22 no-host configure.yash 176,942 0 0 0 3,624 0 854 93 osh-native
30 no-host configure.yash 177,498 0 0 0 3,624 0 858 91 osh-nosouffle
38 no-host configure.yash 172,789 0 0 0 3,616 0 857 106 osh-static
0 no-host hello-world 150 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 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 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-adc7df46
osh-nosouffle osh-8b609277
osh-static osh-static-60ffbb6f
host label host id
no-host no-host-9c670df1