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 10 524 22 21 32.99 1.38
bin-true no-host 644 457 2,552 826 838 3.96 1.28
configure.cpython no-host 13,727 13,798 29,383 14,599 14,588 2.14 1.06
configure.ocaml no-host 3,674 3,678 4,662 3,713 3,715 1.27 1.01
configure.tcc no-host 47 45 226 50 49 4.85 1.07
configure.util-linux no-host 12,538 13,412 31,687 13,663 13,726 2.53 1.09
configure.yash no-host 1,722 1,795 2,411 1,715 1,708 1.40 1.00
hello-world no-host 1 1 67 3 3 54.48 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,417 1,168 24,867 3,438 3,325 10.29 1.42
bin-true no-host 100,916 49,317 837,050 137,266 137,252 8.29 1.36
configure.cpython no-host 1,617,509 1,641,683 5,966,364 1,810,039 1,791,429 3.69 1.12
configure.ocaml no-host 299,000 280,614 555,911 316,481 315,547 1.86 1.06
configure.tcc no-host 5,219 4,213 23,742 5,966 5,914 4.55 1.14
configure.util-linux no-host 1,538,053 1,695,423 4,964,458 1,727,942 1,714,635 3.23 1.12
configure.yash no-host 173,512 159,547 315,345 179,564 179,038 1.82 1.03
hello-world no-host 150 87 3,869 383 378 25.79 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.8 3.9 22.7 9.7 9.2 4.67 2.00
bin-true no-host 3.1 1.6 18.2 8.7 8.4 5.78 2.75
configure.cpython no-host 34.6 34.7 34.5 34.7 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.8 28.7 1.00 1.01
configure.tcc no-host 26.1 26.2 26.1 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.5 39.6 39.8 1.00 1.00
configure.yash no-host 33.1 33.3 33.2 33.3 33.1 1.00 1.01
hello-world no-host 3.0 1.6 18.2 6.8 6.7 6.04 2.26

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 826 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,599 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,663 3 60 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,713 1 2 2.7 28.8 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.2 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.6 33.3 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.7 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.7 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 838 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,588 1 64 15.2 34.7 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,726 3 60 21.4 39.8 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,715 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.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,708 1 2 2.6 33.1 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 9 4.8 bash
15 no-host abuild-print-help 10 4 6 3.9 dash
23 no-host abuild-print-help 524 465 62 22.7 osh-cpython
31 no-host abuild-print-help 22 13 10 9.7 osh-native
39 no-host abuild-print-help 21 8 13 9.2 osh-native-souffle
1 no-host bin-true 644 316 370 3.1 bash
9 no-host bin-true 457 282 182 1.6 dash
17 no-host bin-true 2,552 932 1,895 18.2 osh-cpython
25 no-host bin-true 826 313 531 8.7 osh-native
33 no-host bin-true 838 306 549 8.4 osh-native-souffle
2 no-host configure.cpython 13,727 7,385 6,735 34.6 bash
10 no-host configure.cpython 13,798 7,361 6,849 34.7 dash
18 no-host configure.cpython 29,383 15,967 15,380 34.5 osh-cpython
26 no-host configure.cpython 14,599 7,124 7,789 34.7 osh-native
34 no-host configure.cpython 14,588 7,170 7,607 34.7 osh-native-souffle
4 no-host configure.ocaml 3,674 1,436 1,279 28.6 bash
12 no-host configure.ocaml 3,678 1,454 1,250 28.7 dash
20 no-host configure.ocaml 4,662 2,062 1,823 28.5 osh-cpython
28 no-host configure.ocaml 3,713 1,483 1,273 28.8 osh-native
36 no-host configure.ocaml 3,715 1,439 1,315 28.7 osh-native-souffle
5 no-host configure.tcc 47 21 26 26.1 bash
13 no-host configure.tcc 45 28 17 26.2 dash
21 no-host configure.tcc 226 159 71 26.1 osh-cpython
29 no-host configure.tcc 50 14 36 26.2 osh-native
37 no-host configure.tcc 49 20 30 26.2 osh-native-souffle
3 no-host configure.util-linux 12,538 6,352 6,665 39.6 bash
11 no-host configure.util-linux 13,412 6,381 7,529 39.6 dash
19 no-host configure.util-linux 31,687 19,682 13,061 39.5 osh-cpython
27 no-host configure.util-linux 13,663 6,182 7,731 39.6 osh-native
35 no-host configure.util-linux 13,726 6,159 7,659 39.8 osh-native-souffle
6 no-host configure.yash 1,722 959 772 33.1 bash
14 no-host configure.yash 1,795 1,020 776 33.3 dash
22 no-host configure.yash 2,411 1,384 1,069 33.2 osh-cpython
30 no-host configure.yash 1,715 907 812 33.3 osh-native
38 no-host configure.yash 1,708 904 808 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.0 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 67 43 24 18.2 osh-cpython
24 no-host hello-world 3 2 1 6.8 osh-native
32 no-host hello-world 3 0 3 6.7 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,417 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,867 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,438 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,325 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,916 0 0 0 8 0 1,990 151 bash
9 no-host bin-true 49,317 0 0 0 8 0 2,975 66 dash
17 no-host bin-true 837,050 0 0 0 8 0 1,973 168 osh-cpython
25 no-host bin-true 137,266 0 0 0 16 0 1,977 102 osh-native
33 no-host bin-true 137,252 0 0 0 16 0 1,979 254 osh-native-souffle
2 no-host configure.cpython 1,617,509 1 0 0 25,272 0 14,041 1,188 bash
10 no-host configure.cpython 1,641,683 0 0 0 25,272 0 14,096 1,204 dash
18 no-host configure.cpython 5,966,364 0 0 0 25,272 0 12,878 1,288 osh-cpython
26 no-host configure.cpython 1,810,039 0 0 0 25,280 0 12,861 1,243 osh-native
34 no-host configure.cpython 1,791,429 0 0 0 25,280 0 12,831 1,173 osh-native-souffle
4 no-host configure.ocaml 299,000 0 0 0 4,432 0 2,020 227 bash
12 no-host configure.ocaml 280,614 0 0 0 4,432 0 2,096 189 dash
20 no-host configure.ocaml 555,911 0 0 0 4,432 0 1,917 207 osh-cpython
28 no-host configure.ocaml 316,481 0 0 0 4,440 0 2,002 222 osh-native
36 no-host configure.ocaml 315,547 0 0 0 4,440 0 2,001 195 osh-native-souffle
5 no-host configure.tcc 5,219 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,742 0 0 0 88 0 52 16 osh-cpython
29 no-host configure.tcc 5,966 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,914 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,538,053 1 0 0 35,944 0 18,998 1,282 bash
11 no-host configure.util-linux 1,695,423 0 0 0 35,936 0 16,989 1,412 dash
19 no-host configure.util-linux 4,964,458 3 0 0 35,944 0 17,535 1,163 osh-cpython
27 no-host configure.util-linux 1,727,942 5 0 0 35,952 0 17,459 1,095 osh-native
35 no-host configure.util-linux 1,714,635 1 0 0 35,952 0 17,335 1,053 osh-native-souffle
6 no-host configure.yash 173,512 0 0 0 3,616 0 876 134 bash
14 no-host configure.yash 159,547 0 0 0 3,616 0 995 128 dash
22 no-host configure.yash 315,345 0 0 0 3,616 0 862 132 osh-cpython
30 no-host configure.yash 179,564 0 0 0 3,624 0 855 133 osh-native
38 no-host configure.yash 179,038 0 0 0 3,624 0 858 152 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,869 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 383 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-09492478
dash dash-cea41b3e
osh-cpython osh-f18c7f4b
osh-native osh-ba522b38
osh-native-souffle osh-0e44cdd6
host label host id
no-host no-host-2411472