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 py bash ratio native bash ratio
abuild-print-help no-host 20 10 458 23 23.36 1.16
bin-true no-host 685 544 2,274 817 3.32 1.19
configure.cpython no-host 15,168 15,298 28,837 15,416 1.90 1.02
configure.ocaml no-host 3,829 3,775 4,695 3,870 1.23 1.01
configure.tcc no-host 48 42 198 50 4.13 1.04
configure.util-linux no-host 14,184 15,018 31,551 14,684 2.22 1.04
configure.yash no-host 1,844 1,785 2,500 1,856 1.36 1.01
hello-world no-host 1 1 49 3 33.59 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,553 1,098 22,668 3,181 8.88 1.25
bin-true no-host 105,355 66,456 745,959 126,108 7.08 1.20
configure.cpython no-host 2,215,639 2,237,714 6,107,082 2,220,819 2.76 1.00
configure.ocaml no-host 410,414 391,222 637,777 413,147 1.55 1.01
configure.tcc no-host 6,556 5,484 23,264 6,990 3.55 1.07
configure.util-linux no-host 2,103,624 2,262,752 5,285,634 1,997,604 2.51 0.95
configure.yash no-host 255,752 245,244 383,168 258,741 1.50 1.01
hello-world no-host 151 77 3,692 349 24.45 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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 21.8 8.7 5.03 2.00
bin-true no-host 3.0 1.3 17.4 7.9 5.78 2.61
configure.cpython no-host 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.3 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.3 30.0 30.3 1.00 1.01
configure.yash no-host 24.5 24.5 24.2 24.5 0.99 1.00
hello-world no-host 2.8 1.4 17.3 6.2 6.29 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.3 6.2 3,732 3,732 0 681 1,882 1,169 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.9 154,697 12,996 2,803 9,731 78,351 66,615 5,012 3 50,000 0
configure.cpython no-host 15,416 1 66 15.0 27.4 1,772,673 49,201 28,512 86,378 908,103 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,684 3 66 21.3 30.3 2,703,409 44,771 65,797 109,640 1,320,601 1,273,168 49,081 41 131,594 1
configure.ocaml no-host 3,870 1 2 2.6 20.6 150,043 11,050 5,143 7,510 71,639 70,894 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,532 30,532 0 1,501 14,806 14,225 350 0 50,000 0
configure.yash no-host 1,856 1 2 2.6 24.5 139,700 7,968 6,604 6,317 70,311 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,275 64,459 42,667 4,552 54,551 57,172 478 3 85,334 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 20 7 14 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 458 429 33 21.8 osh-cpython
31 no-host abuild-print-help 23 11 12 8.7 osh-native
1 no-host bin-true 685 512 206 3.0 bash
9 no-host bin-true 544 419 136 1.3 dash
17 no-host bin-true 2,274 1,551 987 17.4 osh-cpython
25 no-host bin-true 817 585 248 7.9 osh-native
2 no-host configure.cpython 15,168 9,029 6,534 27.3 bash
10 no-host configure.cpython 15,298 9,181 6,547 27.4 dash
18 no-host configure.cpython 28,837 17,573 13,153 27.4 osh-cpython
26 no-host configure.cpython 15,416 9,076 6,604 27.4 osh-native
4 no-host configure.ocaml 3,829 1,674 1,196 20.6 bash
12 no-host configure.ocaml 3,775 1,623 1,171 20.6 dash
20 no-host configure.ocaml 4,695 2,174 1,734 20.3 osh-cpython
28 no-host configure.ocaml 3,870 1,634 1,274 20.6 osh-native
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 42 31 12 19.4 dash
21 no-host configure.tcc 198 127 74 19.3 osh-cpython
29 no-host configure.tcc 50 29 21 19.4 osh-native
3 no-host configure.util-linux 14,184 8,899 5,756 30.0 bash
11 no-host configure.util-linux 15,018 9,179 6,330 30.3 dash
19 no-host configure.util-linux 31,551 21,030 11,643 30.0 osh-cpython
27 no-host configure.util-linux 14,684 8,905 5,983 30.3 osh-native
6 no-host configure.yash 1,844 1,063 789 24.5 bash
14 no-host configure.yash 1,785 986 802 24.5 dash
22 no-host configure.yash 2,500 1,431 1,112 24.2 osh-cpython
30 no-host configure.yash 1,856 1,111 749 24.5 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 42 7 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native

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,553 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 22,668 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 39 3 osh-native
1 no-host bin-true 105,355 0 0 0 8 0 1,990 48 bash
9 no-host bin-true 66,456 0 0 0 8 0 1,985 46 dash
17 no-host bin-true 745,959 0 0 0 8 0 1,999 446 osh-cpython
25 no-host bin-true 126,108 0 0 0 16 0 1,987 91 osh-native
2 no-host configure.cpython 2,215,639 0 0 0 32,928 0 14,382 1,224 bash
10 no-host configure.cpython 2,237,714 0 0 0 32,992 0 14,633 1,088 dash
18 no-host configure.cpython 6,107,082 1 0 0 27,512 0 13,285 1,141 osh-cpython
26 no-host configure.cpython 2,220,819 0 0 0 27,520 0 13,179 1,055 osh-native
4 no-host configure.ocaml 410,414 0 0 0 5,120 0 1,951 192 bash
12 no-host configure.ocaml 391,222 0 0 0 5,112 0 1,946 143 dash
20 no-host configure.ocaml 637,777 0 0 0 5,112 0 1,854 174 osh-cpython
28 no-host configure.ocaml 413,147 0 0 0 5,120 0 1,928 165 osh-native
5 no-host configure.tcc 6,556 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,264 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,990 0 0 0 104 0 47 11 osh-native
3 no-host configure.util-linux 2,103,624 0 0 0 42,400 0 18,570 1,120 bash
11 no-host configure.util-linux 2,262,752 2 0 0 42,584 0 17,467 1,141 dash
19 no-host configure.util-linux 5,285,634 10 0 0 39,128 0 16,967 1,359 osh-cpython
27 no-host configure.util-linux 1,997,604 0 0 0 39,128 0 16,962 1,115 osh-native
6 no-host configure.yash 255,752 0 0 0 4,120 0 869 88 bash
14 no-host configure.yash 245,244 0 0 0 3,720 0 867 76 dash
22 no-host configure.yash 383,168 0 0 0 3,728 0 851 100 osh-cpython
30 no-host configure.yash 258,741 0 0 0 3,736 0 850 77 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,692 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-5bb10e68
dash dash-308ec8e6
osh-cpython osh-e3b350e4
osh-native osh-14aac95f
host label host id
no-host no-host-556df3ee