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 467 23 21 24.29 1.17
bin-true no-host 675 538 2,262 819 831 3.35 1.21
configure.cpython no-host 15,012 15,061 28,844 15,419 15,885 1.92 1.03
configure.ocaml no-host 3,816 3,730 4,716 3,898 3,892 1.24 1.02
configure.tcc no-host 48 41 201 50 48 4.18 1.04
configure.util-linux no-host 14,050 14,854 31,551 14,631 14,752 2.25 1.04
configure.yash no-host 1,809 1,760 2,484 1,859 1,859 1.37 1.03
hello-world no-host 2 1 50 3 3 32.85 1.93

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,563 1,136 23,360 3,158 3,073 9.11 1.23
bin-true no-host 105,343 66,452 770,013 126,891 124,879 7.31 1.20
configure.cpython no-host 2,217,831 2,241,808 6,231,276 2,220,913 2,211,309 2.81 1.00
configure.ocaml no-host 410,593 391,253 645,623 412,908 412,008 1.57 1.01
configure.tcc no-host 6,571 5,454 23,753 6,952 6,932 3.61 1.06
configure.util-linux no-host 2,108,172 2,259,437 5,369,309 2,002,594 1,996,559 2.55 0.95
configure.yash no-host 256,003 244,609 386,549 257,902 258,137 1.51 1.01
hello-world no-host 152 80 3,741 351 347 24.61 2.31

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.2 9.2 8.7 4.97 2.06
bin-true no-host 2.8 1.4 17.8 8.1 7.6 6.48 2.95
configure.cpython no-host 27.4 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.3 17.6 6.3 6.0 6.38 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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 819 1 2 2.6 8.1 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,419 2 64 15.0 27.4 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,631 4 63 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,898 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 50 0 0 1.3 19.4 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,859 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.2 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 6.0 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 831 1 2 2.6 7.6 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,885 1 65 14.9 27.4 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,752 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,892 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 48 0 0 1.3 19.4 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,859 1 2 2.6 24.4 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 17 3 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 467 420 49 22.2 osh-cpython
31 no-host abuild-print-help 23 19 4 9.2 osh-native
39 no-host abuild-print-help 21 13 8 8.7 osh-native-souffle
1 no-host bin-true 675 490 215 2.8 bash
9 no-host bin-true 538 418 130 1.4 dash
17 no-host bin-true 2,262 1,559 965 17.8 osh-cpython
25 no-host bin-true 819 589 246 8.1 osh-native
33 no-host bin-true 831 586 258 7.6 osh-native-souffle
2 no-host configure.cpython 15,012 9,000 6,407 27.4 bash
10 no-host configure.cpython 15,061 9,114 6,370 27.3 dash
18 no-host configure.cpython 28,844 17,594 13,149 27.4 osh-cpython
26 no-host configure.cpython 15,419 9,111 6,571 27.4 osh-native
34 no-host configure.cpython 15,885 9,176 6,818 27.4 osh-native-souffle
4 no-host configure.ocaml 3,816 1,660 1,173 20.6 bash
12 no-host configure.ocaml 3,730 1,588 1,162 20.6 dash
20 no-host configure.ocaml 4,716 2,251 1,681 20.6 osh-cpython
28 no-host configure.ocaml 3,898 1,688 1,251 20.6 osh-native
36 no-host configure.ocaml 3,892 1,662 1,266 20.6 osh-native-souffle
5 no-host configure.tcc 48 24 25 19.3 bash
13 no-host configure.tcc 41 27 15 19.3 dash
21 no-host configure.tcc 201 135 69 19.4 osh-cpython
29 no-host configure.tcc 50 31 20 19.4 osh-native
37 no-host configure.tcc 48 30 18 19.4 osh-native-souffle
3 no-host configure.util-linux 14,050 8,747 5,778 30.1 bash
11 no-host configure.util-linux 14,854 8,971 6,374 30.0 dash
19 no-host configure.util-linux 31,551 21,110 11,545 30.3 osh-cpython
27 no-host configure.util-linux 14,631 8,884 5,943 30.1 osh-native
35 no-host configure.util-linux 14,752 8,828 6,105 30.1 osh-native-souffle
6 no-host configure.yash 1,809 1,008 810 24.4 bash
14 no-host configure.yash 1,760 1,049 715 24.2 dash
22 no-host configure.yash 2,484 1,579 949 24.4 osh-cpython
30 no-host configure.yash 1,859 1,016 846 24.4 osh-native
38 no-host configure.yash 1,859 1,059 804 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 33 16 17.6 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,563 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,360 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,158 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,343 0 0 0 8 0 1,993 59 bash
9 no-host bin-true 66,452 0 0 0 8 0 1,986 40 dash
17 no-host bin-true 770,013 0 0 0 8 0 2,001 210 osh-cpython
25 no-host bin-true 126,891 0 0 0 16 0 1,995 96 osh-native
33 no-host bin-true 124,879 0 0 0 16 0 1,988 108 osh-native-souffle
2 no-host configure.cpython 2,217,831 0 0 0 32,928 0 14,566 1,122 bash
10 no-host configure.cpython 2,241,808 0 0 0 32,992 0 14,561 1,069 dash
18 no-host configure.cpython 6,231,276 0 0 0 27,512 0 13,224 1,250 osh-cpython
26 no-host configure.cpython 2,220,913 0 0 0 27,520 0 13,270 1,013 osh-native
34 no-host configure.cpython 2,211,309 0 0 0 27,520 0 13,276 970 osh-native-souffle
4 no-host configure.ocaml 410,593 0 0 0 5,120 0 1,957 175 bash
12 no-host configure.ocaml 391,253 0 0 0 5,112 0 1,937 148 dash
20 no-host configure.ocaml 645,623 0 0 0 5,112 0 1,863 239 osh-cpython
28 no-host configure.ocaml 412,908 0 0 0 5,120 0 1,928 166 osh-native
36 no-host configure.ocaml 412,008 0 0 0 5,120 0 1,931 173 osh-native-souffle
5 no-host configure.tcc 6,571 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,454 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,753 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,932 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,108,172 0 0 0 42,400 0 18,559 991 bash
11 no-host configure.util-linux 2,259,437 1 0 0 42,584 0 17,445 1,060 dash
19 no-host configure.util-linux 5,369,309 8 0 0 39,112 0 16,966 1,176 osh-cpython
27 no-host configure.util-linux 2,002,594 1 0 0 39,120 0 16,920 1,005 osh-native
35 no-host configure.util-linux 1,996,559 3 0 0 39,128 0 16,965 1,037 osh-native-souffle
6 no-host configure.yash 256,003 0 0 0 4,120 0 868 67 bash
14 no-host configure.yash 244,609 0 0 0 3,720 0 868 76 dash
22 no-host configure.yash 386,549 0 0 0 3,728 0 852 107 osh-cpython
30 no-host configure.yash 257,902 0 0 0 3,736 0 853 76 osh-native
38 no-host configure.yash 258,137 0 0 0 3,736 0 851 76 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,741 0 0 0 8 0 7 6 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-4c1499f3
dash dash-0ebcf347
osh-cpython osh-293f7df8
osh-native osh-18865ce3
osh-native-souffle osh-0bea124d
host label host id
no-host no-host-556df3ee