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 543 22 21 33.81 1.38
bin-true no-host 639 457 2,505 822 813 3.92 1.29
configure.cpython no-host 14,458 14,217 30,245 15,275 14,817 2.09 1.06
configure.ocaml no-host 3,781 3,745 4,755 3,870 3,815 1.26 1.02
configure.tcc no-host 46 43 230 51 49 4.95 1.10
configure.util-linux no-host 13,098 13,896 32,855 14,295 13,950 2.51 1.09
configure.yash no-host 1,753 1,734 2,511 1,805 1,791 1.43 1.03
hello-world no-host 1 1 68 3 3 51.89 2.28

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,410 1,157 24,694 3,481 3,345 10.25 1.44
bin-true no-host 100,981 49,358 833,549 135,312 132,279 8.25 1.34
configure.cpython no-host 1,624,823 1,639,598 5,946,032 1,802,828 1,800,076 3.66 1.11
configure.ocaml no-host 299,157 280,609 554,848 316,396 316,978 1.85 1.06
configure.tcc no-host 5,205 4,219 23,755 5,949 5,920 4.56 1.14
configure.util-linux no-host 1,531,639 1,702,809 4,968,244 1,718,831 1,714,317 3.24 1.12
configure.yash no-host 173,519 159,499 314,529 178,897 179,365 1.81 1.03
hello-world no-host 151 86 3,880 385 379 25.70 2.55

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.7 3.9 22.7 9.8 9.2 4.80 2.08
bin-true no-host 3.4 1.7 18.3 8.5 8.4 5.38 2.50
configure.cpython no-host 34.5 34.6 34.5 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.6 28.8 28.5 28.6 1.00 0.99
configure.tcc no-host 26.1 26.2 26.2 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.3 33.4 33.3 33.3 33.5 1.00 1.00
hello-world no-host 3.1 1.6 18.0 6.9 6.4 5.74 2.21

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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.5 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 15,275 2 71 15.2 34.4 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,295 3 66 21.4 39.6 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,870 1 2 2.7 28.5 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 51 0 0 1.3 26.1 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,805 1 2 2.6 33.3 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.4 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,817 2 65 15.2 34.5 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,950 3 60 21.4 39.7 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,815 1 2 2.7 28.6 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.1 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,791 1 2 2.6 33.5 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,366 64,433 42,634 4,563 54,471 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 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 543 479 68 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.8 osh-native
39 no-host abuild-print-help 21 9 12 9.2 osh-native-souffle
1 no-host bin-true 639 309 368 3.4 bash
9 no-host bin-true 457 274 190 1.7 dash
17 no-host bin-true 2,505 896 1,880 18.3 osh-cpython
25 no-host bin-true 822 302 536 8.5 osh-native
33 no-host bin-true 813 291 539 8.4 osh-native-souffle
2 no-host configure.cpython 14,458 7,696 7,163 34.5 bash
10 no-host configure.cpython 14,217 7,604 7,027 34.6 dash
18 no-host configure.cpython 30,245 16,447 15,810 34.5 osh-cpython
26 no-host configure.cpython 15,275 7,571 8,021 34.4 osh-native
34 no-host configure.cpython 14,817 7,238 7,747 34.5 osh-native-souffle
4 no-host configure.ocaml 3,781 1,488 1,327 28.8 bash
12 no-host configure.ocaml 3,745 1,492 1,278 28.6 dash
20 no-host configure.ocaml 4,755 2,100 1,884 28.8 osh-cpython
28 no-host configure.ocaml 3,870 1,500 1,411 28.5 osh-native
36 no-host configure.ocaml 3,815 1,464 1,391 28.6 osh-native-souffle
5 no-host configure.tcc 46 21 26 26.1 bash
13 no-host configure.tcc 43 23 20 26.2 dash
21 no-host configure.tcc 230 162 72 26.2 osh-cpython
29 no-host configure.tcc 51 23 29 26.1 osh-native
37 no-host configure.tcc 49 24 26 26.1 osh-native-souffle
3 no-host configure.util-linux 13,098 6,645 6,928 39.7 bash
11 no-host configure.util-linux 13,896 6,588 7,818 39.7 dash
19 no-host configure.util-linux 32,855 20,465 13,481 39.7 osh-cpython
27 no-host configure.util-linux 14,295 6,536 8,010 39.6 osh-native
35 no-host configure.util-linux 13,950 6,185 7,856 39.7 osh-native-souffle
6 no-host configure.yash 1,753 973 784 33.3 bash
14 no-host configure.yash 1,734 964 771 33.4 dash
22 no-host configure.yash 2,511 1,460 1,093 33.3 osh-cpython
30 no-host configure.yash 1,805 971 838 33.3 osh-native
38 no-host configure.yash 1,791 969 825 33.5 osh-native-souffle
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 68 50 18 18.0 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 0 3 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,410 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,694 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,481 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,345 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,981 0 0 0 8 0 1,976 89 bash
9 no-host bin-true 49,358 0 0 0 8 0 2,975 63 dash
17 no-host bin-true 833,549 0 0 0 8 0 1,981 182 osh-cpython
25 no-host bin-true 135,312 0 0 0 16 0 1,970 132 osh-native
33 no-host bin-true 132,279 0 0 0 16 0 1,970 105 osh-native-souffle
2 no-host configure.cpython 1,624,823 0 0 0 25,272 0 14,011 1,082 bash
10 no-host configure.cpython 1,639,598 1 0 0 25,272 0 14,088 1,165 dash
18 no-host configure.cpython 5,946,032 0 0 0 25,272 0 12,871 1,102 osh-cpython
26 no-host configure.cpython 1,802,828 0 0 0 25,280 0 12,868 1,093 osh-native
34 no-host configure.cpython 1,800,076 0 0 0 25,288 0 12,896 1,241 osh-native-souffle
4 no-host configure.ocaml 299,157 0 0 0 4,432 0 2,023 214 bash
12 no-host configure.ocaml 280,609 0 0 0 4,432 0 2,097 206 dash
20 no-host configure.ocaml 554,848 0 0 0 4,432 0 1,913 217 osh-cpython
28 no-host configure.ocaml 316,396 0 0 0 4,440 0 1,998 221 osh-native
36 no-host configure.ocaml 316,978 0 0 0 4,440 0 1,996 211 osh-native-souffle
5 no-host configure.tcc 5,205 0 0 0 80 0 49 6 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,755 0 0 0 88 0 53 12 osh-cpython
29 no-host configure.tcc 5,949 0 0 0 96 0 47 8 osh-native
37 no-host configure.tcc 5,920 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,531,639 0 0 0 35,944 0 19,042 1,134 bash
11 no-host configure.util-linux 1,702,809 1 0 0 35,936 0 17,104 1,274 dash
19 no-host configure.util-linux 4,968,244 6 0 0 35,952 0 17,526 1,116 osh-cpython
27 no-host configure.util-linux 1,718,831 1 0 0 35,944 0 17,483 1,033 osh-native
35 no-host configure.util-linux 1,714,317 6 0 0 35,944 0 17,321 1,046 osh-native-souffle
6 no-host configure.yash 173,519 0 0 0 3,616 0 877 145 bash
14 no-host configure.yash 159,499 0 0 0 3,616 0 995 122 dash
22 no-host configure.yash 314,529 0 0 0 3,616 0 862 139 osh-cpython
30 no-host configure.yash 178,897 0 0 0 3,624 0 859 122 osh-native
38 no-host configure.yash 179,365 0 0 0 3,624 0 855 139 osh-native-souffle
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 3,880 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 385 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4a620820
dash dash-cea41b3e
osh-cpython osh-95f8183b
osh-native osh-2dce495b
osh-native-souffle osh-d0a3176f
host label host id
no-host no-host-2411472