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 19 9 459 22 23.92 1.14
bin-true no-host 673 544 2,208 806 3.28 1.20
configure.cpython no-host 14,963 15,116 28,369 15,183 1.90 1.01
configure.ocaml no-host 3,849 3,738 4,601 3,809 1.20 0.99
configure.tcc no-host 48 42 193 48 4.03 1.00
configure.util-linux no-host 13,926 14,839 30,990 14,302 2.23 1.03
configure.yash no-host 1,799 1,756 2,441 1,820 1.36 1.01
hello-world no-host 2 1 48 3 28.97 1.74

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,494 1,107 23,430 3,146 9.39 1.26
bin-true no-host 108,394 67,394 752,631 125,162 6.94 1.15
configure.cpython no-host 2,219,444 2,239,052 6,126,658 2,215,904 2.76 1.00
configure.ocaml no-host 411,200 390,948 639,875 412,697 1.56 1.00
configure.tcc no-host 6,592 5,507 23,285 6,947 3.53 1.05
configure.util-linux no-host 2,093,355 2,255,886 5,328,202 2,005,443 2.55 0.96
configure.yash no-host 254,966 244,478 385,030 258,159 1.51 1.01
hello-world no-host 150 81 3,686 343 24.57 2.29

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.5 3.5 21.6 8.7 4.85 1.94
bin-true no-host 3.0 1.4 17.6 7.6 5.83 2.52
configure.cpython no-host 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.5 1.00 1.01
hello-world no-host 2.8 1.4 17.4 5.8 6.33 2.10

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 5.8 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 806 1 2 2.7 7.6 154,692 12,780 2,737 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,183 1 58 15.8 27.4 1,772,668 44,567 28,446 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,302 2 58 22.2 30.0 2,703,404 45,041 65,750 126,121 1,320,596 1,256,687 49,081 41 131,500 1
configure.ocaml no-host 3,809 0 2 2.7 20.6 150,038 10,983 5,076 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.5 139,695 7,902 6,538 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,270 64,393 42,601 4,610 54,546 57,114 478 3 85,202 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 11 8 4.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 459 423 40 21.6 osh-cpython
31 no-host abuild-print-help 22 15 8 8.7 osh-native
1 no-host bin-true 673 513 192 3.0 bash
9 no-host bin-true 544 415 140 1.4 dash
17 no-host bin-true 2,208 1,475 990 17.6 osh-cpython
25 no-host bin-true 806 570 250 7.6 osh-native
2 no-host configure.cpython 14,963 9,120 6,224 27.4 bash
10 no-host configure.cpython 15,116 9,060 6,453 27.5 dash
18 no-host configure.cpython 28,369 17,288 12,895 27.4 osh-cpython
26 no-host configure.cpython 15,183 8,745 6,606 27.4 osh-native
4 no-host configure.ocaml 3,849 1,665 1,211 20.6 bash
12 no-host configure.ocaml 3,738 1,616 1,140 20.6 dash
20 no-host configure.ocaml 4,601 2,225 1,578 20.6 osh-cpython
28 no-host configure.ocaml 3,809 1,539 1,302 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 17 25 19.3 dash
21 no-host configure.tcc 193 124 73 19.4 osh-cpython
29 no-host configure.tcc 48 31 18 19.3 osh-native
3 no-host configure.util-linux 13,926 8,881 5,509 30.1 bash
11 no-host configure.util-linux 14,839 9,154 6,178 30.3 dash
19 no-host configure.util-linux 30,990 20,661 11,395 30.1 osh-cpython
27 no-host configure.util-linux 14,302 8,569 5,916 30.0 osh-native
6 no-host configure.yash 1,799 1,070 737 24.2 bash
14 no-host configure.yash 1,756 1,034 722 24.4 dash
22 no-host configure.yash 2,441 1,488 996 24.2 osh-cpython
30 no-host configure.yash 1,820 1,013 811 24.5 osh-native
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 48 36 12 17.4 osh-cpython
24 no-host hello-world 3 3 0 5.8 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,494 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,430 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,146 0 0 0 16 0 40 3 osh-native
1 no-host bin-true 108,394 0 0 0 8 0 1,991 55 bash
9 no-host bin-true 67,394 0 0 0 8 0 1,996 98 dash
17 no-host bin-true 752,631 0 0 0 8 0 1,987 102 osh-cpython
25 no-host bin-true 125,162 0 0 0 16 0 1,989 138 osh-native
2 no-host configure.cpython 2,219,444 0 0 0 32,928 0 14,511 1,257 bash
10 no-host configure.cpython 2,239,052 0 0 0 32,992 0 14,606 968 dash
18 no-host configure.cpython 6,126,658 1 0 0 27,512 0 13,283 1,202 osh-cpython
26 no-host configure.cpython 2,215,904 1 0 0 27,520 0 13,326 1,089 osh-native
4 no-host configure.ocaml 411,200 0 0 0 5,120 0 1,964 157 bash
12 no-host configure.ocaml 390,948 0 0 0 5,112 0 1,871 127 dash
20 no-host configure.ocaml 639,875 0 0 0 5,112 0 1,862 285 osh-cpython
28 no-host configure.ocaml 412,697 0 0 0 5,120 0 1,940 150 osh-native
5 no-host configure.tcc 6,592 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,507 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,285 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,947 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,093,355 0 0 0 42,400 0 18,558 1,029 bash
11 no-host configure.util-linux 2,255,886 0 0 0 42,584 0 17,658 1,145 dash
19 no-host configure.util-linux 5,328,202 16 0 0 39,120 0 17,081 1,087 osh-cpython
27 no-host configure.util-linux 2,005,443 1 0 0 39,120 0 17,089 960 osh-native
6 no-host configure.yash 254,966 0 0 0 4,120 0 870 99 bash
14 no-host configure.yash 244,478 0 0 0 3,720 0 871 95 dash
22 no-host configure.yash 385,030 0 0 0 3,728 0 853 102 osh-cpython
30 no-host configure.yash 258,159 0 0 0 3,736 0 853 70 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,686 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-975ef3c9
dash dash-308ec8e6
osh-cpython osh-9e86780d
osh-native osh-73f17327
host label host id
no-host no-host-556df3ee