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 10 456 22 23.56 1.15
bin-true no-host 669 546 2,223 817 3.32 1.22
configure.cpython no-host 15,063 15,139 28,480 15,287 1.89 1.01
configure.ocaml no-host 3,802 3,741 4,632 3,847 1.22 1.01
configure.tcc no-host 48 43 190 49 3.98 1.02
configure.util-linux no-host 14,025 14,894 31,115 14,450 2.22 1.03
configure.yash no-host 1,834 1,765 2,446 1,839 1.33 1.00
hello-world no-host 1 1 47 3 32.83 1.98

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,534 1,127 23,217 3,179 9.16 1.25
bin-true no-host 105,373 66,474 753,114 126,199 7.15 1.20
configure.cpython no-host 2,219,228 2,250,787 6,129,757 2,234,573 2.76 1.01
configure.ocaml no-host 410,010 390,860 637,892 412,749 1.56 1.01
configure.tcc no-host 6,545 5,485 23,174 6,965 3.54 1.06
configure.util-linux no-host 2,096,715 2,260,163 5,317,026 2,013,752 2.54 0.96
configure.yash no-host 255,970 245,301 384,158 259,132 1.50 1.01
hello-world no-host 152 84 3,652 346 24.03 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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 21.8 8.8 5.03 2.03
bin-true no-host 2.9 1.6 17.3 7.9 6.00 2.73
configure.cpython no-host 27.4 27.4 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.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.5 0.99 1.01
hello-world no-host 2.8 1.6 17.2 6.3 6.24 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,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 817 1 2 2.7 7.9 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,287 1 61 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,450 2 59 22.2 30.3 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,847 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,839 1 2 2.6 24.5 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,257 64,449 42,657 4,609 54,535 57,113 478 3 85,314 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 13 7 4.3 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 456 405 54 21.8 osh-cpython
31 no-host abuild-print-help 22 20 3 8.8 osh-native
1 no-host bin-true 669 499 202 2.9 bash
9 no-host bin-true 546 424 130 1.6 dash
17 no-host bin-true 2,223 1,484 989 17.3 osh-cpython
25 no-host bin-true 817 568 263 7.9 osh-native
2 no-host configure.cpython 15,063 9,137 6,325 27.4 bash
10 no-host configure.cpython 15,139 9,209 6,350 27.4 dash
18 no-host configure.cpython 28,480 17,505 12,792 27.4 osh-cpython
26 no-host configure.cpython 15,287 9,095 6,458 27.4 osh-native
4 no-host configure.ocaml 3,802 1,657 1,183 20.6 bash
12 no-host configure.ocaml 3,741 1,520 1,241 20.6 dash
20 no-host configure.ocaml 4,632 2,333 1,503 20.6 osh-cpython
28 no-host configure.ocaml 3,847 1,642 1,244 20.6 osh-native
5 no-host configure.tcc 48 22 26 19.3 bash
13 no-host configure.tcc 43 27 16 19.3 dash
21 no-host configure.tcc 190 135 58 19.3 osh-cpython
29 no-host configure.tcc 49 36 13 19.3 osh-native
3 no-host configure.util-linux 14,025 8,775 5,717 30.1 bash
11 no-host configure.util-linux 14,894 9,059 6,319 30.1 dash
19 no-host configure.util-linux 31,115 20,843 11,339 30.3 osh-cpython
27 no-host configure.util-linux 14,450 8,665 6,001 30.3 osh-native
6 no-host configure.yash 1,834 1,013 827 24.4 bash
14 no-host configure.yash 1,765 1,024 744 24.4 dash
22 no-host configure.yash 2,446 1,541 947 24.2 osh-cpython
30 no-host configure.yash 1,839 1,037 806 24.5 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 24 23 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,534 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,217 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,179 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 105,373 0 0 0 8 0 1,992 46 bash
9 no-host bin-true 66,474 0 0 0 8 0 1,991 64 dash
17 no-host bin-true 753,114 0 0 0 8 0 1,993 271 osh-cpython
25 no-host bin-true 126,199 0 0 0 16 0 1,983 111 osh-native
2 no-host configure.cpython 2,219,228 0 0 0 32,928 0 14,398 1,148 bash
10 no-host configure.cpython 2,250,787 0 0 0 32,992 0 14,585 1,070 dash
18 no-host configure.cpython 6,129,757 1 0 0 27,512 0 13,269 1,148 osh-cpython
26 no-host configure.cpython 2,234,573 0 0 0 27,520 0 13,318 1,092 osh-native
4 no-host configure.ocaml 410,010 0 0 0 5,120 0 1,948 179 bash
12 no-host configure.ocaml 390,860 0 0 0 5,112 0 1,879 163 dash
20 no-host configure.ocaml 637,892 1 0 0 5,112 0 1,869 191 osh-cpython
28 no-host configure.ocaml 412,749 0 0 0 5,120 0 1,930 171 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,174 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,965 0 0 0 104 0 46 4 osh-native
3 no-host configure.util-linux 2,096,715 0 0 0 42,400 0 18,655 1,178 bash
11 no-host configure.util-linux 2,260,163 2 0 0 42,592 0 17,460 1,159 dash
19 no-host configure.util-linux 5,317,026 9 0 0 39,112 0 17,082 1,223 osh-cpython
27 no-host configure.util-linux 2,013,752 1 0 0 39,120 0 17,278 991 osh-native
6 no-host configure.yash 255,970 0 0 0 4,120 0 877 83 bash
14 no-host configure.yash 245,301 0 0 0 3,720 0 868 85 dash
22 no-host configure.yash 384,158 0 0 0 3,728 0 858 105 osh-cpython
30 no-host configure.yash 259,132 0 0 0 3,736 0 852 76 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,652 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-692701c8
dash dash-308ec8e6
osh-cpython osh-fca4f422
osh-native osh-1059fba2
host label host id
no-host no-host-e54d7702