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 10 483 23 21 24.97 1.17
bin-true no-host 689 547 2,304 833 811 3.34 1.21
configure.cpython no-host 15,309 15,494 29,251 15,700 15,662 1.91 1.03
configure.ocaml no-host 3,856 3,797 4,754 3,952 3,901 1.23 1.02
configure.tcc no-host 48 42 198 49 50 4.14 1.03
configure.util-linux no-host 14,404 15,138 31,775 14,886 14,738 2.21 1.03
configure.yash no-host 1,844 1,796 2,523 1,895 1,855 1.37 1.03
hello-world no-host 2 1 50 3 3 32.40 1.91

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,530 1,096 23,441 3,201 3,110 9.27 1.27
bin-true no-host 106,380 65,503 776,787 127,180 122,843 7.30 1.20
configure.cpython no-host 2,221,334 2,249,902 6,210,993 2,229,891 2,209,244 2.80 1.00
configure.ocaml no-host 410,456 391,168 646,360 413,286 411,848 1.57 1.01
configure.tcc no-host 6,558 5,483 23,775 6,992 6,870 3.63 1.07
configure.util-linux no-host 2,102,618 2,263,935 5,378,446 2,005,424 1,994,943 2.56 0.95
configure.yash no-host 256,070 245,169 387,365 258,333 257,117 1.51 1.01
hello-world no-host 154 82 3,745 351 347 24.32 2.28

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.4 22.0 9.0 8.7 4.94 2.03
bin-true no-host 3.0 1.4 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.4 27.3 27.4 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.1 30.0 30.1 1.00 0.99
configure.yash no-host 24.4 24.1 25.4 24.4 24.2 1.04 1.00
hello-world no-host 2.8 1.4 17.6 6.2 5.9 6.38 2.24

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.2 3,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 833 1 2 2.6 8.0 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,700 1 63 15.0 27.3 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,886 3 63 21.3 30.0 2,703,495 29,752 65,877 109,676 1,320,584 1,273,235 27,391 41 131,754 1
configure.ocaml no-host 3,952 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,895 1 2 2.6 24.4 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,662 1 64 14.9 27.3 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,738 3 64 21.3 30.1 2,703,495 42,748 65,815 109,678 1,320,584 1,273,233 27,391 41 131,630 1
configure.ocaml no-host 3,901 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,855 1 2 2.6 24.2 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 16 4 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 483 440 46 22.0 osh-cpython
31 no-host abuild-print-help 23 12 11 9.0 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 689 497 222 3.0 bash
9 no-host bin-true 547 413 142 1.4 dash
17 no-host bin-true 2,304 1,509 1,063 17.7 osh-cpython
25 no-host bin-true 833 583 263 8.0 osh-native
33 no-host bin-true 811 569 254 7.7 osh-native-souffle
2 no-host configure.cpython 15,309 9,326 6,392 27.4 bash
10 no-host configure.cpython 15,494 9,413 6,508 27.3 dash
18 no-host configure.cpython 29,251 17,450 13,724 27.4 osh-cpython
26 no-host configure.cpython 15,700 9,236 6,735 27.3 osh-native
34 no-host configure.cpython 15,662 9,314 6,533 27.3 osh-native-souffle
4 no-host configure.ocaml 3,856 1,678 1,217 20.6 bash
12 no-host configure.ocaml 3,797 1,597 1,215 20.4 dash
20 no-host configure.ocaml 4,754 2,412 1,557 20.6 osh-cpython
28 no-host configure.ocaml 3,952 1,718 1,272 20.6 osh-native
36 no-host configure.ocaml 3,901 1,648 1,289 20.6 osh-native-souffle
5 no-host configure.tcc 48 22 27 19.3 bash
13 no-host configure.tcc 42 24 19 19.4 dash
21 no-host configure.tcc 198 147 55 19.3 osh-cpython
29 no-host configure.tcc 49 32 18 19.3 osh-native
37 no-host configure.tcc 50 18 32 19.3 osh-native-souffle
3 no-host configure.util-linux 14,404 9,032 5,836 30.3 bash
11 no-host configure.util-linux 15,138 9,295 6,338 30.0 dash
19 no-host configure.util-linux 31,775 20,859 12,018 30.1 osh-cpython
27 no-host configure.util-linux 14,886 8,757 6,319 30.0 osh-native
35 no-host configure.util-linux 14,738 8,986 5,953 30.1 osh-native-souffle
6 no-host configure.yash 1,844 1,064 788 24.4 bash
14 no-host configure.yash 1,796 1,033 767 24.1 dash
22 no-host configure.yash 2,523 1,464 1,104 25.4 osh-cpython
30 no-host configure.yash 1,895 1,097 802 24.4 osh-native
38 no-host configure.yash 1,855 1,078 781 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 38 13 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 5.9 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,530 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,441 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,110 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,380 0 0 0 8 0 1,994 56 bash
9 no-host bin-true 65,503 0 0 0 8 0 1,989 44 dash
17 no-host bin-true 776,787 0 0 0 8 0 1,994 298 osh-cpython
25 no-host bin-true 127,180 0 0 0 16 0 1,984 81 osh-native
33 no-host bin-true 122,843 0 0 0 16 0 1,990 143 osh-native-souffle
2 no-host configure.cpython 2,221,334 0 0 0 32,928 0 14,378 1,047 bash
10 no-host configure.cpython 2,249,902 1 0 0 32,992 0 14,584 1,196 dash
18 no-host configure.cpython 6,210,993 0 0 0 27,512 0 13,257 1,347 osh-cpython
26 no-host configure.cpython 2,229,891 2 0 0 27,520 0 13,234 1,134 osh-native
34 no-host configure.cpython 2,209,244 0 0 0 27,520 0 13,186 1,057 osh-native-souffle
4 no-host configure.ocaml 410,456 0 0 0 5,120 0 1,940 207 bash
12 no-host configure.ocaml 391,168 0 0 0 5,112 0 1,860 137 dash
20 no-host configure.ocaml 646,360 0 0 0 5,112 0 1,868 173 osh-cpython
28 no-host configure.ocaml 413,286 0 0 0 5,120 0 1,932 185 osh-native
36 no-host configure.ocaml 411,848 0 0 0 5,120 0 1,936 171 osh-native-souffle
5 no-host configure.tcc 6,558 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,775 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,992 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,870 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,102,618 1 0 0 42,400 0 18,549 1,169 bash
11 no-host configure.util-linux 2,263,935 2 0 0 42,584 0 17,464 1,164 dash
19 no-host configure.util-linux 5,378,446 2 0 0 39,112 0 16,911 1,312 osh-cpython
27 no-host configure.util-linux 2,005,424 3 0 0 39,128 0 16,979 1,063 osh-native
35 no-host configure.util-linux 1,994,943 2 0 0 39,136 0 17,034 1,040 osh-native-souffle
6 no-host configure.yash 256,070 0 0 0 4,120 0 872 100 bash
14 no-host configure.yash 245,169 0 0 0 3,720 0 867 69 dash
22 no-host configure.yash 387,365 0 0 0 3,728 0 856 96 osh-cpython
30 no-host configure.yash 258,333 0 0 0 3,736 0 852 82 osh-native
38 no-host configure.yash 257,117 0 0 0 3,736 0 847 96 osh-native-souffle
0 no-host hello-world 154 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,745 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 347 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-65a4df30
dash dash-0ebcf347
osh-cpython osh-e69ea646
osh-native osh-a749b2b1
osh-native-souffle osh-f03f2960
host label host id
no-host no-host-556df3ee