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 16 9 529 23 21 33.47 1.43
bin-true no-host 607 441 2,510 797 805 4.14 1.31
configure.cpython no-host 14,076 14,130 29,831 14,851 14,937 2.12 1.06
configure.ocaml no-host 3,724 3,685 4,702 3,793 3,775 1.26 1.02
configure.tcc no-host 47 42 220 49 49 4.65 1.04
configure.util-linux no-host 12,761 13,676 32,650 13,882 13,945 2.56 1.09
configure.yash no-host 1,739 1,689 2,466 1,749 1,746 1.42 1.01
hello-world no-host 1 1 61 3 3 49.29 2.32

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,420 1,181 24,836 3,463 3,332 10.26 1.43
bin-true no-host 97,934 49,382 839,087 134,300 136,257 8.57 1.37
configure.cpython no-host 1,621,122 1,635,944 5,960,597 1,795,423 1,790,645 3.68 1.11
configure.ocaml no-host 299,159 280,762 556,181 316,536 315,335 1.86 1.06
configure.tcc no-host 5,223 4,211 23,762 5,986 5,916 4.55 1.15
configure.util-linux no-host 1,533,901 1,696,499 4,955,246 1,724,615 1,709,866 3.23 1.12
configure.yash no-host 173,342 159,488 314,987 179,266 179,234 1.82 1.03
hello-world no-host 153 86 3,875 384 378 25.33 2.51

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 4.8 3.9 22.7 9.8 9.2 4.67 2.03
bin-true no-host 3.1 1.3 18.3 8.7 8.4 5.83 2.75
configure.cpython no-host 34.2 34.6 34.7 34.7 34.5 1.01 1.01
configure.ocaml no-host 28.7 28.7 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.3 26.1 26.3 1.00 0.99
configure.util-linux no-host 39.7 39.7 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.3 33.4 33.5 1.00 1.00
hello-world no-host 3.3 1.6 18.1 6.9 6.4 5.51 2.12

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.9 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.7 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,851 1 67 15.2 34.7 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,882 3 62 21.4 39.7 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,793 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 49 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,749 1 2 2.6 33.4 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.8 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 805 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 14,937 1 66 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 13,945 4 63 21.4 39.6 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,775 1 2 2.7 28.7 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,746 1 2 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 21 1 2 2.8 9.2 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 16 7 10 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 529 478 55 22.7 osh-cpython
31 no-host abuild-print-help 23 14 9 9.8 osh-native
39 no-host abuild-print-help 21 12 10 9.2 osh-native-souffle
1 no-host bin-true 607 318 327 3.1 bash
9 no-host bin-true 441 278 168 1.3 dash
17 no-host bin-true 2,510 913 1,876 18.3 osh-cpython
25 no-host bin-true 797 316 498 8.7 osh-native
33 no-host bin-true 805 313 511 8.4 osh-native-souffle
2 no-host configure.cpython 14,076 7,682 6,769 34.2 bash
10 no-host configure.cpython 14,130 7,645 6,883 34.6 dash
18 no-host configure.cpython 29,831 16,292 15,521 34.7 osh-cpython
26 no-host configure.cpython 14,851 7,538 7,617 34.7 osh-native
34 no-host configure.cpython 14,937 7,460 7,648 34.5 osh-native-souffle
4 no-host configure.ocaml 3,724 1,469 1,295 28.7 bash
12 no-host configure.ocaml 3,685 1,470 1,237 28.7 dash
20 no-host configure.ocaml 4,702 2,138 1,788 28.8 osh-cpython
28 no-host configure.ocaml 3,793 1,480 1,354 28.7 osh-native
36 no-host configure.ocaml 3,775 1,476 1,338 28.7 osh-native-souffle
5 no-host configure.tcc 47 24 24 26.3 bash
13 no-host configure.tcc 42 27 15 26.3 dash
21 no-host configure.tcc 220 153 71 26.3 osh-cpython
29 no-host configure.tcc 49 27 22 26.1 osh-native
37 no-host configure.tcc 49 23 26 26.3 osh-native-souffle
3 no-host configure.util-linux 12,761 6,558 6,666 39.7 bash
11 no-host configure.util-linux 13,676 6,535 7,631 39.7 dash
19 no-host configure.util-linux 32,650 20,476 13,274 39.7 osh-cpython
27 no-host configure.util-linux 13,882 6,473 7,638 39.7 osh-native
35 no-host configure.util-linux 13,945 6,422 7,603 39.6 osh-native-souffle
6 no-host configure.yash 1,739 995 751 33.3 bash
14 no-host configure.yash 1,689 974 716 33.4 dash
22 no-host configure.yash 2,466 1,448 1,061 33.3 osh-cpython
30 no-host configure.yash 1,749 967 785 33.4 osh-native
38 no-host configure.yash 1,746 963 785 33.5 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 61 40 22 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 1 2 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,420 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,181 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,836 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,463 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,332 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 97,934 0 0 0 8 0 1,987 58 bash
9 no-host bin-true 49,382 0 0 0 8 0 2,980 50 dash
17 no-host bin-true 839,087 0 0 0 8 0 1,982 122 osh-cpython
25 no-host bin-true 134,300 0 0 0 16 0 1,971 106 osh-native
33 no-host bin-true 136,257 0 0 0 16 0 1,975 59 osh-native-souffle
2 no-host configure.cpython 1,621,122 0 0 0 25,272 0 14,043 1,021 bash
10 no-host configure.cpython 1,635,944 0 0 0 25,272 0 14,106 1,054 dash
18 no-host configure.cpython 5,960,597 0 0 0 25,272 0 12,857 897 osh-cpython
26 no-host configure.cpython 1,795,423 0 0 0 25,280 0 12,808 1,128 osh-native
34 no-host configure.cpython 1,790,645 0 0 0 25,280 0 12,809 1,007 osh-native-souffle
4 no-host configure.ocaml 299,159 0 0 0 4,432 0 2,010 204 bash
12 no-host configure.ocaml 280,762 0 0 0 4,432 0 2,086 169 dash
20 no-host configure.ocaml 556,181 0 0 0 4,432 0 1,908 189 osh-cpython
28 no-host configure.ocaml 316,536 0 0 0 4,440 0 1,996 223 osh-native
36 no-host configure.ocaml 315,335 0 0 0 4,440 0 1,996 197 osh-native-souffle
5 no-host configure.tcc 5,223 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,762 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,986 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,916 0 0 0 96 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,533,901 1 0 0 35,944 0 19,016 1,042 bash
11 no-host configure.util-linux 1,696,499 0 0 0 35,936 0 16,979 1,259 dash
19 no-host configure.util-linux 4,955,246 1 0 0 35,952 0 17,545 850 osh-cpython
27 no-host configure.util-linux 1,724,615 0 0 0 35,944 0 17,474 1,123 osh-native
35 no-host configure.util-linux 1,709,866 0 0 0 35,944 0 17,430 1,095 osh-native-souffle
6 no-host configure.yash 173,342 0 0 0 3,616 0 877 97 bash
14 no-host configure.yash 159,488 0 0 0 3,616 0 994 104 dash
22 no-host configure.yash 314,987 0 0 0 3,616 0 858 100 osh-cpython
30 no-host configure.yash 179,266 0 0 0 3,624 0 856 102 osh-native
38 no-host configure.yash 179,234 0 0 0 3,624 0 858 149 osh-native-souffle
0 no-host hello-world 153 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 3,875 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0f425105
dash dash-cea41b3e
osh-cpython osh-8ba01669
osh-native osh-1d0a0288
osh-native-souffle osh-d40ad89d
host label host id
no-host no-host-2411472