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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 17 9 565 24 22 32.42 1.36
bin-true no-host 649 451 2,581 865 875 3.98 1.33
configure.cpython no-host 14,927 15,062 31,728 16,140 16,082 2.13 1.08
configure.ocaml no-host 3,960 3,838 4,945 3,928 3,961 1.25 0.99
configure.tcc no-host 52 45 232 57 54 4.47 1.10
configure.util-linux no-host 13,598 14,248 34,372 14,853 14,894 2.53 1.09
configure.yash no-host 1,856 1,759 2,663 1,865 1,872 1.44 1.00
hello-world no-host 1 1 67 3 3 51.27 2.39

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,415 1,196 24,842 3,501 3,293 10.29 1.45
bin-true no-host 100,924 49,363 833,024 139,225 137,283 8.25 1.38
configure.cpython no-host 1,619,192 1,648,375 5,956,498 1,794,235 1,790,405 3.68 1.11
configure.ocaml no-host 298,533 280,700 556,073 317,337 315,433 1.86 1.06
configure.tcc no-host 5,228 4,195 23,772 5,923 5,903 4.55 1.13
configure.util-linux no-host 1,530,712 1,698,092 4,962,674 1,724,101 1,703,460 3.24 1.13
configure.yash no-host 173,272 159,534 315,170 179,724 178,671 1.82 1.04
hello-world no-host 152 84 3,870 385 375 25.46 2.53

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 5.0 3.9 22.7 10.0 9.3 4.55 2.00
bin-true no-host 3.1 1.4 18.2 9.2 8.4 5.79 2.92
configure.cpython no-host 34.5 34.4 34.6 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.7 28.6 1.00 1.00
configure.tcc no-host 26.3 26.3 26.2 26.1 26.2 1.00 0.99
configure.util-linux no-host 39.5 39.6 39.6 39.6 39.9 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.5 33.5 0.99 1.00
hello-world no-host 3.3 1.6 18.1 6.8 6.4 5.51 2.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.8 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 865 1 2 2.6 9.2 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 16,140 2 93 15.2 34.5 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,853 4 79 21.4 39.6 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,928 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 57 0 0 1.3 26.1 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,865 1 3 2.6 33.5 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 10.0 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 875 1 2 2.6 8.4 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 16,082 2 92 15.2 34.5 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,894 4 77 21.4 39.9 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,961 1 2 2.7 28.6 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 54 0 0 1.3 26.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,872 1 3 2.6 33.5 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.3 116,367 64,433 42,634 4,563 54,472 57,332 277 3 85,268 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 17 13 5 5.0 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 565 496 74 22.7 osh-cpython
31 no-host abuild-print-help 24 14 10 10.0 osh-native
39 no-host abuild-print-help 22 12 11 9.3 osh-native-souffle
1 no-host bin-true 649 315 377 3.1 bash
9 no-host bin-true 451 279 177 1.4 dash
17 no-host bin-true 2,581 898 1,978 18.2 osh-cpython
25 no-host bin-true 865 308 576 9.2 osh-native
33 no-host bin-true 875 286 607 8.4 osh-native-souffle
2 no-host configure.cpython 14,927 8,113 7,209 34.5 bash
10 no-host configure.cpython 15,062 8,238 7,261 34.4 dash
18 no-host configure.cpython 31,728 17,425 16,448 34.6 osh-cpython
26 no-host configure.cpython 16,140 8,208 8,269 34.5 osh-native
34 no-host configure.cpython 16,082 8,012 8,266 34.5 osh-native-souffle
4 no-host configure.ocaml 3,960 1,623 1,381 28.7 bash
12 no-host configure.ocaml 3,838 1,595 1,267 28.7 dash
20 no-host configure.ocaml 4,945 2,289 1,901 28.6 osh-cpython
28 no-host configure.ocaml 3,928 1,590 1,388 28.7 osh-native
36 no-host configure.ocaml 3,961 1,661 1,346 28.6 osh-native-souffle
5 no-host configure.tcc 52 28 25 26.3 bash
13 no-host configure.tcc 45 26 19 26.3 dash
21 no-host configure.tcc 232 165 71 26.2 osh-cpython
29 no-host configure.tcc 57 31 27 26.1 osh-native
37 no-host configure.tcc 54 33 21 26.2 osh-native-souffle
3 no-host configure.util-linux 13,598 7,079 7,020 39.5 bash
11 no-host configure.util-linux 14,248 7,051 7,724 39.6 dash
19 no-host configure.util-linux 34,372 21,384 14,172 39.6 osh-cpython
27 no-host configure.util-linux 14,853 6,789 8,313 39.6 osh-native
35 no-host configure.util-linux 14,894 6,770 8,212 39.9 osh-native-souffle
6 no-host configure.yash 1,856 1,019 846 33.4 bash
14 no-host configure.yash 1,759 996 764 33.4 dash
22 no-host configure.yash 2,663 1,544 1,167 33.1 osh-cpython
30 no-host configure.yash 1,865 1,012 856 33.5 osh-native
38 no-host configure.yash 1,872 1,065 810 33.5 osh-native-souffle
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 67 47 20 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 2 1 6.4 osh-native-souffle

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,415 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,196 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,842 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,501 0 0 0 16 0 38 1 osh-native
39 no-host abuild-print-help 3,293 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,924 0 0 0 8 0 1,986 66 bash
9 no-host bin-true 49,363 0 0 0 8 0 2,972 47 dash
17 no-host bin-true 833,024 0 0 0 8 0 1,980 112 osh-cpython
25 no-host bin-true 139,225 0 0 0 16 0 1,968 89 osh-native
33 no-host bin-true 137,283 0 0 0 16 0 1,970 89 osh-native-souffle
2 no-host configure.cpython 1,619,192 0 0 0 25,272 0 14,066 1,085 bash
10 no-host configure.cpython 1,648,375 0 0 0 25,272 0 14,087 1,188 dash
18 no-host configure.cpython 5,956,498 0 0 0 25,272 0 12,866 1,011 osh-cpython
26 no-host configure.cpython 1,794,235 0 0 0 25,280 0 12,951 1,077 osh-native
34 no-host configure.cpython 1,790,405 0 0 0 25,280 0 12,961 1,098 osh-native-souffle
4 no-host configure.ocaml 298,533 0 0 0 4,432 0 2,013 198 bash
12 no-host configure.ocaml 280,700 0 0 0 4,432 0 2,088 199 dash
20 no-host configure.ocaml 556,073 0 0 0 4,432 0 1,932 183 osh-cpython
28 no-host configure.ocaml 317,337 0 0 0 4,440 0 2,001 203 osh-native
36 no-host configure.ocaml 315,433 0 0 0 4,440 0 2,001 222 osh-native-souffle
5 no-host configure.tcc 5,228 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,195 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,772 0 0 0 88 0 52 6 osh-cpython
29 no-host configure.tcc 5,923 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,903 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,530,712 1 0 0 35,944 0 18,948 1,084 bash
11 no-host configure.util-linux 1,698,092 0 0 0 35,936 0 17,014 1,301 dash
19 no-host configure.util-linux 4,962,674 1 0 0 35,952 0 17,483 874 osh-cpython
27 no-host configure.util-linux 1,724,101 0 0 0 35,952 0 17,545 1,065 osh-native
35 no-host configure.util-linux 1,703,460 2 0 0 35,952 0 17,351 1,147 osh-native-souffle
6 no-host configure.yash 173,272 0 0 0 3,616 0 877 95 bash
14 no-host configure.yash 159,534 0 0 0 3,616 0 996 105 dash
22 no-host configure.yash 315,170 0 0 0 3,616 0 861 99 osh-cpython
30 no-host configure.yash 179,724 0 0 0 3,624 0 855 102 osh-native
38 no-host configure.yash 178,671 0 0 0 3,624 0 856 108 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,870 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 385 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 375 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-efe31516
dash dash-cea41b3e
osh-cpython osh-84f4eb09
osh-native osh-5e54c884
osh-native-souffle osh-5162cc25
host label host id
no-host no-host-2411472