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 15 9 537 21 20 34.92 1.40
bin-true no-host 609 431 2,421 790 781 3.97 1.30
configure.cpython no-host 13,462 13,513 28,781 14,254 14,321 2.14 1.06
configure.ocaml no-host 3,608 3,550 4,558 3,655 3,655 1.26 1.01
configure.tcc no-host 46 41 219 49 48 4.80 1.06
configure.util-linux no-host 12,231 13,053 31,637 13,249 13,385 2.59 1.08
configure.yash no-host 1,653 1,604 2,364 1,675 1,676 1.43 1.01
hello-world no-host 1 1 59 3 3 51.39 2.49

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,399 1,171 24,735 3,497 3,288 10.31 1.46
bin-true no-host 100,957 49,382 839,692 135,331 133,294 8.32 1.34
configure.cpython no-host 1,633,384 1,642,362 6,003,409 1,811,595 1,785,775 3.68 1.11
configure.ocaml no-host 299,261 280,757 557,839 317,269 316,439 1.86 1.06
configure.tcc no-host 5,216 4,202 23,927 5,957 5,920 4.59 1.14
configure.util-linux no-host 1,533,492 1,701,159 4,978,065 1,722,045 1,717,863 3.25 1.12
configure.yash no-host 173,519 159,483 316,271 179,691 178,963 1.82 1.04
hello-world no-host 150 82 3,872 385 375 25.81 2.57

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.8 10.0 9.3 4.70 2.05
bin-true no-host 3.3 1.4 18.3 8.8 8.3 5.59 2.68
configure.cpython no-host 34.6 34.7 34.6 34.5 34.6 1.00 0.99
configure.ocaml no-host 28.8 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.0 26.3 26.3 26.2 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.5 39.8 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.3 33.5 1.00 1.00
hello-world no-host 3.1 1.4 18.2 6.8 6.4 5.79 2.17

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,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 790 1 2 2.6 8.8 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,254 1 60 15.2 34.5 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,249 2 56 21.4 39.7 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,655 1 2 2.7 28.7 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,675 1 2 2.6 33.3 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 10.0 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.4 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 781 1 2 2.6 8.3 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 14,321 1 60 15.2 34.6 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 13,385 3 58 21.4 39.7 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,655 1 2 2.7 28.7 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.3 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,676 1 2 2.6 33.5 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.3 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 7 9 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 537 480 60 22.8 osh-cpython
31 no-host abuild-print-help 21 10 12 10.0 osh-native
39 no-host abuild-print-help 20 12 9 9.3 osh-native-souffle
1 no-host bin-true 609 306 340 3.3 bash
9 no-host bin-true 431 268 168 1.4 dash
17 no-host bin-true 2,421 894 1,785 18.3 osh-cpython
25 no-host bin-true 790 299 506 8.8 osh-native
33 no-host bin-true 781 314 485 8.3 osh-native-souffle
2 no-host configure.cpython 13,462 7,346 6,488 34.6 bash
10 no-host configure.cpython 13,513 7,387 6,509 34.7 dash
18 no-host configure.cpython 28,781 15,736 14,967 34.6 osh-cpython
26 no-host configure.cpython 14,254 7,200 7,348 34.5 osh-native
34 no-host configure.cpython 14,321 7,042 7,409 34.6 osh-native-souffle
4 no-host configure.ocaml 3,608 1,423 1,225 28.8 bash
12 no-host configure.ocaml 3,550 1,421 1,151 28.7 dash
20 no-host configure.ocaml 4,558 1,971 1,803 28.7 osh-cpython
28 no-host configure.ocaml 3,655 1,485 1,212 28.7 osh-native
36 no-host configure.ocaml 3,655 1,451 1,242 28.7 osh-native-souffle
5 no-host configure.tcc 46 27 19 26.0 bash
13 no-host configure.tcc 41 23 18 26.3 dash
21 no-host configure.tcc 219 155 68 26.3 osh-cpython
29 no-host configure.tcc 49 19 30 26.2 osh-native
37 no-host configure.tcc 48 28 21 26.3 osh-native-souffle
3 no-host configure.util-linux 12,231 6,317 6,362 39.7 bash
11 no-host configure.util-linux 13,053 6,324 7,205 39.5 dash
19 no-host configure.util-linux 31,637 19,956 12,708 39.8 osh-cpython
27 no-host configure.util-linux 13,249 6,045 7,436 39.7 osh-native
35 no-host configure.util-linux 13,385 6,072 7,390 39.7 osh-native-souffle
6 no-host configure.yash 1,653 902 760 33.4 bash
14 no-host configure.yash 1,604 891 714 33.3 dash
22 no-host configure.yash 2,364 1,387 1,018 33.4 osh-cpython
30 no-host configure.yash 1,675 929 749 33.3 osh-native
38 no-host configure.yash 1,676 896 783 33.5 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 59 36 23 18.2 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 1 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,399 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,171 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,735 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,497 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,288 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,957 0 0 0 8 0 1,978 69 bash
9 no-host bin-true 49,382 0 0 0 8 0 2,975 42 dash
17 no-host bin-true 839,692 0 0 0 8 0 1,984 132 osh-cpython
25 no-host bin-true 135,331 0 0 0 16 0 1,976 91 osh-native
33 no-host bin-true 133,294 0 0 0 16 0 1,983 85 osh-native-souffle
2 no-host configure.cpython 1,633,384 1 0 0 25,272 0 14,038 1,141 bash
10 no-host configure.cpython 1,642,362 0 0 0 25,272 0 14,058 1,062 dash
18 no-host configure.cpython 6,003,409 0 0 0 25,272 0 12,871 925 osh-cpython
26 no-host configure.cpython 1,811,595 0 0 0 25,280 0 12,859 1,052 osh-native
34 no-host configure.cpython 1,785,775 0 0 0 25,280 0 12,844 1,038 osh-native-souffle
4 no-host configure.ocaml 299,261 0 0 0 4,432 0 2,012 211 bash
12 no-host configure.ocaml 280,757 0 0 0 4,432 0 2,100 199 dash
20 no-host configure.ocaml 557,839 0 0 0 4,432 0 1,913 184 osh-cpython
28 no-host configure.ocaml 317,269 0 0 0 4,440 0 2,001 212 osh-native
36 no-host configure.ocaml 316,439 0 0 0 4,440 0 2,002 196 osh-native-souffle
5 no-host configure.tcc 5,216 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,927 0 0 0 88 0 52 5 osh-cpython
29 no-host configure.tcc 5,957 0 0 0 96 0 47 1 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,533,492 1 0 0 35,944 0 18,960 1,112 bash
11 no-host configure.util-linux 1,701,159 0 0 0 35,936 0 17,048 1,218 dash
19 no-host configure.util-linux 4,978,065 2 0 0 35,960 0 17,552 813 osh-cpython
27 no-host configure.util-linux 1,722,045 1 0 0 35,944 0 17,448 1,089 osh-native
35 no-host configure.util-linux 1,717,863 0 0 0 35,944 0 17,503 1,122 osh-native-souffle
6 no-host configure.yash 173,519 0 0 0 3,616 0 876 87 bash
14 no-host configure.yash 159,483 0 0 0 3,616 0 996 112 dash
22 no-host configure.yash 316,271 0 0 0 3,616 0 863 101 osh-cpython
30 no-host configure.yash 179,691 0 0 0 3,624 0 851 97 osh-native
38 no-host configure.yash 178,963 0 0 0 3,624 0 858 94 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,872 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-b98a9d2f
dash dash-cea41b3e
osh-cpython osh-56c04dbb
osh-native osh-4d4341d7
osh-native-souffle osh-c98bc5b5
host label host id
no-host no-host-31404de8