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 19 9 470 22 21 24.77 1.15
bin-true no-host 680 534 2,287 805 811 3.36 1.18
configure.cpython no-host 14,857 14,960 28,538 15,173 15,130 1.92 1.02
configure.ocaml no-host 3,775 3,709 4,609 3,791 3,782 1.22 1.00
configure.tcc no-host 47 41 194 49 48 4.13 1.04
configure.util-linux no-host 13,919 14,744 31,194 14,266 14,134 2.24 1.02
configure.yash no-host 1,829 1,755 2,436 1,811 1,802 1.33 0.99
hello-world no-host 1 1 49 3 3 33.88 1.99

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,506 1,096 23,297 3,167 3,125 9.30 1.26
bin-true no-host 104,375 66,461 764,979 123,781 125,845 7.33 1.19
configure.cpython no-host 2,222,509 2,243,874 6,226,729 2,226,978 2,215,225 2.80 1.00
configure.ocaml no-host 410,511 390,891 645,816 413,147 412,513 1.57 1.01
configure.tcc no-host 6,552 5,463 23,694 6,956 6,918 3.62 1.06
configure.util-linux no-host 2,104,448 2,258,998 5,345,730 1,995,213 1,987,193 2.54 0.95
configure.yash no-host 256,594 245,168 387,239 258,367 257,311 1.51 1.01
hello-world no-host 153 83 3,735 352 346 24.41 2.30

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.5 3.3 21.9 9.0 8.8 4.91 2.03
bin-true no-host 3.0 1.4 17.8 8.0 7.7 5.91 2.65
configure.cpython no-host 27.5 27.4 27.4 27.3 27.3 1.00 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.3 1.01 1.01
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.0 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.6 17.7 6.3 6.0 6.43 2.29

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.2 6.3 3,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 805 1 2 2.6 8.0 154,738 13,220 2,877 9,745 78,319 66,674 3,008 3 50,000 0
configure.cpython no-host 15,173 1 60 15.0 27.3 1,772,720 49,854 28,587 86,398 908,071 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,266 3 59 21.3 30.1 2,703,488 29,146 65,890 109,676 1,320,577 1,273,235 27,391 41 131,780 1
configure.ocaml no-host 3,791 1 2 2.6 20.6 150,094 11,051 5,221 7,532 71,604 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,579 30,579 0 1,521 14,774 14,284 226 0 50,000 0
configure.yash no-host 1,811 1 2 2.6 24.2 139,747 8,020 6,679 6,337 70,279 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,322 64,530 42,740 4,572 54,519 57,231 270 3 85,480 1
hello-world no-host 3 0 0 0.2 6.0 3,772 3,772 0 696 1,850 1,226 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.7 154,737 13,063 2,815 9,746 78,319 66,672 3,008 3 50,000 0
configure.cpython no-host 15,130 1 58 14.9 27.3 1,772,719 49,105 28,525 86,399 908,071 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,134 3 59 21.3 30.0 2,703,488 42,741 65,828 109,678 1,320,577 1,273,233 27,391 41 131,656 1
configure.ocaml no-host 3,782 0 2 2.6 20.3 150,094 10,989 5,159 7,534 71,604 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,579 30,579 0 1,523 14,774 14,282 226 0 50,000 0
configure.yash no-host 1,802 1 2 2.6 24.4 139,747 7,958 6,617 6,339 70,279 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,321 64,468 42,678 4,573 54,519 57,229 270 3 85,356 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 19 18 2 4.5 bash
15 no-host abuild-print-help 9 8 1 3.3 dash
23 no-host abuild-print-help 470 421 53 21.9 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.8 osh-native-souffle
1 no-host bin-true 680 521 194 3.0 bash
9 no-host bin-true 534 421 122 1.4 dash
17 no-host bin-true 2,287 1,469 1,089 17.8 osh-cpython
25 no-host bin-true 805 572 246 8.0 osh-native
33 no-host bin-true 811 565 261 7.7 osh-native-souffle
2 no-host configure.cpython 14,857 8,883 6,360 27.5 bash
10 no-host configure.cpython 14,960 8,997 6,390 27.4 dash
18 no-host configure.cpython 28,538 17,376 13,040 27.4 osh-cpython
26 no-host configure.cpython 15,173 9,049 6,394 27.3 osh-native
34 no-host configure.cpython 15,130 8,842 6,473 27.3 osh-native-souffle
4 no-host configure.ocaml 3,775 1,610 1,204 20.4 bash
12 no-host configure.ocaml 3,709 1,532 1,197 20.6 dash
20 no-host configure.ocaml 4,609 2,249 1,570 20.6 osh-cpython
28 no-host configure.ocaml 3,791 1,623 1,207 20.6 osh-native
36 no-host configure.ocaml 3,782 1,542 1,273 20.3 osh-native-souffle
5 no-host configure.tcc 47 31 17 19.3 bash
13 no-host configure.tcc 41 27 14 19.3 dash
21 no-host configure.tcc 194 131 66 19.4 osh-cpython
29 no-host configure.tcc 49 38 11 19.3 osh-native
37 no-host configure.tcc 48 21 27 19.3 osh-native-souffle
3 no-host configure.util-linux 13,919 8,808 5,584 30.1 bash
11 no-host configure.util-linux 14,744 8,941 6,302 30.0 dash
19 no-host configure.util-linux 31,194 20,779 11,516 30.0 osh-cpython
27 no-host configure.util-linux 14,266 8,597 5,863 30.1 osh-native
35 no-host configure.util-linux 14,134 8,487 5,844 30.0 osh-native-souffle
6 no-host configure.yash 1,829 1,110 717 24.4 bash
14 no-host configure.yash 1,755 1,053 706 24.4 dash
22 no-host configure.yash 2,436 1,507 969 24.2 osh-cpython
30 no-host configure.yash 1,811 1,006 808 24.2 osh-native
38 no-host configure.yash 1,802 1,100 706 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 41 8 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,506 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,297 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,167 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,125 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,375 0 0 0 8 0 1,994 81 bash
9 no-host bin-true 66,461 0 0 0 8 0 1,987 42 dash
17 no-host bin-true 764,979 0 0 0 8 0 2,001 392 osh-cpython
25 no-host bin-true 123,781 0 0 0 16 0 1,989 106 osh-native
33 no-host bin-true 125,845 0 0 0 16 0 1,990 118 osh-native-souffle
2 no-host configure.cpython 2,222,509 0 0 0 32,928 0 14,519 1,048 bash
10 no-host configure.cpython 2,243,874 0 0 0 32,992 0 14,677 979 dash
18 no-host configure.cpython 6,226,729 0 0 0 27,512 0 13,203 1,341 osh-cpython
26 no-host configure.cpython 2,226,978 0 0 0 27,520 0 13,232 1,322 osh-native
34 no-host configure.cpython 2,215,225 0 0 0 27,520 0 13,304 1,010 osh-native-souffle
4 no-host configure.ocaml 410,511 0 0 0 5,120 0 1,951 162 bash
12 no-host configure.ocaml 390,891 0 0 0 5,112 0 1,868 191 dash
20 no-host configure.ocaml 645,816 0 0 0 5,112 0 1,867 191 osh-cpython
28 no-host configure.ocaml 413,147 0 0 0 5,120 0 1,932 159 osh-native
36 no-host configure.ocaml 412,513 0 0 0 5,120 0 1,933 154 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,694 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,104,448 0 0 0 42,400 0 18,599 1,261 bash
11 no-host configure.util-linux 2,258,998 2 0 0 42,592 0 17,471 1,059 dash
19 no-host configure.util-linux 5,345,730 12 0 0 39,112 0 16,998 1,255 osh-cpython
27 no-host configure.util-linux 1,995,213 0 0 0 39,120 0 16,949 973 osh-native
35 no-host configure.util-linux 1,987,193 4 0 0 39,128 0 16,985 978 osh-native-souffle
6 no-host configure.yash 256,594 0 0 0 4,120 0 868 80 bash
14 no-host configure.yash 245,168 0 0 0 3,720 0 870 77 dash
22 no-host configure.yash 387,239 0 0 0 3,728 0 852 98 osh-cpython
30 no-host configure.yash 258,367 0 0 0 3,736 0 853 88 osh-native
38 no-host configure.yash 257,311 0 0 0 3,736 0 849 82 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,735 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ccde741d
dash dash-0ebcf347
osh-cpython osh-057550d3
osh-native osh-f4fc9934
osh-native-souffle osh-d8223a23
host label host id
no-host no-host-556df3ee