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 461 23 21 23.69 1.16
bin-true no-host 676 551 2,272 818 819 3.36 1.21
configure.cpython no-host 15,564 15,518 29,541 15,580 15,600 1.90 1.00
configure.ocaml no-host 3,909 3,816 4,710 3,890 3,871 1.20 1.00
configure.tcc no-host 51 42 196 49 50 3.84 0.97
configure.util-linux no-host 14,343 15,432 31,727 14,631 14,598 2.21 1.02
configure.yash no-host 1,862 1,808 2,499 1,871 1,868 1.34 1.00
hello-world no-host 1 1 51 3 3 35.44 1.98

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,540 1,106 23,492 3,195 3,085 9.25 1.26
bin-true no-host 104,372 66,387 761,859 126,049 127,795 7.30 1.21
configure.cpython no-host 2,222,730 2,242,129 6,222,983 2,230,939 2,217,647 2.80 1.00
configure.ocaml no-host 410,414 391,310 645,894 413,669 412,963 1.57 1.01
configure.tcc no-host 6,583 5,474 23,577 6,999 6,937 3.58 1.06
configure.util-linux no-host 2,100,959 2,256,351 5,356,206 1,998,089 1,999,505 2.55 0.95
configure.yash no-host 256,714 244,059 388,570 258,135 257,878 1.51 1.01
hello-world no-host 152 82 3,732 349 343 24.55 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.2 3.4 21.9 9.0 8.7 5.22 2.16
bin-true no-host 2.9 1.4 17.7 8.0 7.7 6.14 2.77
configure.cpython no-host 27.4 27.4 27.3 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.0 30.1 30.3 30.1 30.1 1.01 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.2 5.8 6.09 2.14

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,746 3,746 0 694 1,840 1,212 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 154,711 13,191 2,848 9,744 78,309 66,658 3,008 3 50,000 0
configure.cpython no-host 15,580 1 64 15.0 27.3 1,772,693 49,825 28,558 86,397 908,061 778,235 22,694 60 50,000 0
configure.util-linux no-host 14,631 3 63 21.3 30.1 2,703,461 42,775 65,842 109,675 1,320,567 1,273,219 27,391 41 131,684 1
configure.ocaml no-host 3,890 1 2 2.6 20.4 150,067 11,023 5,193 7,531 71,594 70,942 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,552 30,552 0 1,520 14,764 14,268 226 0 50,000 0
configure.yash no-host 1,871 1 2 2.6 24.4 139,720 7,991 6,650 6,336 70,269 63,115 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,295 64,501 42,711 4,571 54,509 57,215 270 3 85,422 1
hello-world no-host 3 0 0 0.2 5.8 3,745 3,745 0 695 1,840 1,210 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.7 154,710 12,979 2,786 9,745 78,309 66,656 3,008 3 50,000 0
configure.cpython no-host 15,600 1 64 15.0 27.4 1,772,692 49,076 28,496 86,398 908,061 778,233 22,694 60 50,000 0
configure.util-linux no-host 14,598 3 62 21.3 30.1 2,703,461 44,676 65,779 109,677 1,320,567 1,273,217 27,391 41 131,558 1
configure.ocaml no-host 3,871 1 2 2.6 20.6 150,067 10,960 5,130 7,533 71,594 70,940 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,552 30,552 0 1,522 14,764 14,266 226 0 50,000 0
configure.yash no-host 1,868 1 2 2.6 24.4 139,720 7,929 6,588 6,338 70,269 63,113 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,294 64,439 42,649 4,572 54,509 57,213 270 3 85,298 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 17 3 4.2 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 461 427 37 21.9 osh-cpython
31 no-host abuild-print-help 23 21 2 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 676 480 220 2.9 bash
9 no-host bin-true 551 419 141 1.4 dash
17 no-host bin-true 2,272 1,503 1,033 17.7 osh-cpython
25 no-host bin-true 818 573 258 8.0 osh-native
33 no-host bin-true 819 575 259 7.7 osh-native-souffle
2 no-host configure.cpython 15,564 9,336 6,602 27.4 bash
10 no-host configure.cpython 15,518 9,315 6,628 27.4 dash
18 no-host configure.cpython 29,541 17,600 13,865 27.3 osh-cpython
26 no-host configure.cpython 15,580 9,235 6,618 27.3 osh-native
34 no-host configure.cpython 15,600 9,226 6,549 27.4 osh-native-souffle
4 no-host configure.ocaml 3,909 1,651 1,290 20.6 bash
12 no-host configure.ocaml 3,816 1,590 1,244 20.6 dash
20 no-host configure.ocaml 4,710 2,279 1,646 20.6 osh-cpython
28 no-host configure.ocaml 3,890 1,630 1,300 20.4 osh-native
36 no-host configure.ocaml 3,871 1,609 1,298 20.6 osh-native-souffle
5 no-host configure.tcc 51 40 12 19.3 bash
13 no-host configure.tcc 42 18 25 19.3 dash
21 no-host configure.tcc 196 149 50 19.4 osh-cpython
29 no-host configure.tcc 49 18 32 19.3 osh-native
37 no-host configure.tcc 50 33 17 19.3 osh-native-souffle
3 no-host configure.util-linux 14,343 8,908 5,902 30.0 bash
11 no-host configure.util-linux 15,432 9,257 6,602 30.1 dash
19 no-host configure.util-linux 31,727 20,620 12,153 30.3 osh-cpython
27 no-host configure.util-linux 14,631 8,905 5,919 30.1 osh-native
35 no-host configure.util-linux 14,598 8,678 6,117 30.1 osh-native-souffle
6 no-host configure.yash 1,862 1,092 780 24.4 bash
14 no-host configure.yash 1,808 1,035 776 24.4 dash
22 no-host configure.yash 2,499 1,502 1,040 24.4 osh-cpython
30 no-host configure.yash 1,871 1,112 763 24.4 osh-native
38 no-host configure.yash 1,868 1,056 815 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 35 15 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 5.8 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,540 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,492 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,085 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 104,372 0 0 0 8 0 1,995 56 bash
9 no-host bin-true 66,387 0 0 0 8 0 1,985 59 dash
17 no-host bin-true 761,859 0 0 0 8 0 1,998 142 osh-cpython
25 no-host bin-true 126,049 0 0 0 16 0 1,987 49 osh-native
33 no-host bin-true 127,795 0 0 0 16 0 1,994 102 osh-native-souffle
2 no-host configure.cpython 2,222,730 1 0 0 32,928 0 14,489 1,030 bash
10 no-host configure.cpython 2,242,129 0 0 0 32,992 0 14,551 1,050 dash
18 no-host configure.cpython 6,222,983 0 0 0 27,512 0 13,222 1,209 osh-cpython
26 no-host configure.cpython 2,230,939 0 0 0 27,520 0 13,241 1,042 osh-native
34 no-host configure.cpython 2,217,647 0 0 0 27,520 0 13,171 986 osh-native-souffle
4 no-host configure.ocaml 410,414 0 0 0 5,120 0 1,957 152 bash
12 no-host configure.ocaml 391,310 0 0 0 5,112 0 1,887 127 dash
20 no-host configure.ocaml 645,894 0 0 0 5,112 0 1,854 193 osh-cpython
28 no-host configure.ocaml 413,669 0 0 0 5,120 0 1,932 159 osh-native
36 no-host configure.ocaml 412,963 0 0 0 5,120 0 1,935 152 osh-native-souffle
5 no-host configure.tcc 6,583 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,577 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,937 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,100,959 0 0 0 42,400 0 18,692 1,058 bash
11 no-host configure.util-linux 2,256,351 1 0 0 42,584 0 17,465 1,151 dash
19 no-host configure.util-linux 5,356,206 11 0 0 39,112 0 17,025 1,293 osh-cpython
27 no-host configure.util-linux 1,998,089 0 0 0 39,120 0 17,127 1,037 osh-native
35 no-host configure.util-linux 1,999,505 0 0 0 39,136 0 16,982 1,104 osh-native-souffle
6 no-host configure.yash 256,714 0 0 0 4,120 0 872 85 bash
14 no-host configure.yash 244,059 0 0 0 3,720 0 871 65 dash
22 no-host configure.yash 388,570 0 0 0 3,728 0 853 102 osh-cpython
30 no-host configure.yash 258,135 0 0 0 3,736 0 846 84 osh-native
38 no-host configure.yash 257,878 0 0 0 3,736 0 853 79 osh-native-souffle
0 no-host hello-world 152 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,732 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a8d183c8
dash dash-0ebcf347
osh-cpython osh-de3cd666
osh-native osh-e9cd8ee2
osh-native-souffle osh-2934d038
host label host id
no-host no-host-556df3ee