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 11 458 24 22.91 1.21
bin-true no-host 693 562 2,279 830 3.29 1.20
configure.cpython no-host 15,933 15,905 30,859 15,777 1.94 0.99
configure.ocaml no-host 4,007 3,886 4,824 3,978 1.20 0.99
configure.tcc no-host 50 42 200 51 4.04 1.04
configure.util-linux no-host 14,725 15,641 33,044 15,040 2.24 1.02
configure.yash no-host 1,915 1,862 2,550 1,933 1.33 1.01
hello-world no-host 2 1 50 3 30.56 1.73

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,107 23,215 3,222 9.16 1.27
bin-true no-host 107,305 66,495 754,081 127,137 7.03 1.18
configure.cpython no-host 2,224,354 2,244,525 6,142,854 2,237,135 2.76 1.01
configure.ocaml no-host 410,371 391,054 637,748 413,068 1.55 1.01
configure.tcc no-host 6,562 5,469 23,219 6,987 3.54 1.06
configure.util-linux no-host 2,107,646 2,263,241 5,338,313 2,008,937 2.53 0.95
configure.yash no-host 256,630 244,723 384,682 258,811 1.50 1.01
hello-world no-host 154 81 3,657 345 23.75 2.24

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.4 21.5 8.8 4.82 1.97
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.5 27.3 27.4 27.3 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.2 6.0 6.24 2.19

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.0 3,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 830 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,777 1 68 15.8 27.3 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,040 4 68 22.2 30.1 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,978 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,933 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 24 1 3 2.8 8.8 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 11 9 4.5 bash
15 no-host abuild-print-help 11 5 6 3.4 dash
23 no-host abuild-print-help 458 429 32 21.5 osh-cpython
31 no-host abuild-print-help 24 19 6 8.8 osh-native
1 no-host bin-true 693 518 206 3.0 bash
9 no-host bin-true 562 423 146 1.4 dash
17 no-host bin-true 2,279 1,435 1,109 17.3 osh-cpython
25 no-host bin-true 830 581 265 8.0 osh-native
2 no-host configure.cpython 15,933 9,440 6,913 27.5 bash
10 no-host configure.cpython 15,905 9,685 6,645 27.3 dash
18 no-host configure.cpython 30,859 18,505 14,347 27.4 osh-cpython
26 no-host configure.cpython 15,777 9,132 6,917 27.3 osh-native
4 no-host configure.ocaml 4,007 1,723 1,325 20.6 bash
12 no-host configure.ocaml 3,886 1,718 1,188 20.6 dash
20 no-host configure.ocaml 4,824 2,346 1,688 20.4 osh-cpython
28 no-host configure.ocaml 3,978 1,729 1,288 20.6 osh-native
5 no-host configure.tcc 50 35 15 19.3 bash
13 no-host configure.tcc 42 26 17 19.4 dash
21 no-host configure.tcc 200 117 86 19.3 osh-cpython
29 no-host configure.tcc 51 31 21 19.3 osh-native
3 no-host configure.util-linux 14,725 9,308 5,904 30.1 bash
11 no-host configure.util-linux 15,641 9,475 6,684 30.3 dash
19 no-host configure.util-linux 33,044 21,869 12,332 30.1 osh-cpython
27 no-host configure.util-linux 15,040 9,085 6,150 30.1 osh-native
6 no-host configure.yash 1,915 1,141 784 24.4 bash
14 no-host configure.yash 1,862 1,113 752 24.4 dash
22 no-host configure.yash 2,550 1,526 1,068 24.2 osh-cpython
30 no-host configure.yash 1,933 1,141 797 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 34 16 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.0 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 41 1 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,215 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,222 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,305 0 0 0 8 0 1,990 47 bash
9 no-host bin-true 66,495 0 0 0 8 0 1,980 55 dash
17 no-host bin-true 754,081 0 0 0 8 0 1,997 214 osh-cpython
25 no-host bin-true 127,137 0 0 0 16 0 1,991 47 osh-native
2 no-host configure.cpython 2,224,354 0 0 0 32,928 0 14,568 1,190 bash
10 no-host configure.cpython 2,244,525 0 0 0 32,992 0 14,711 1,049 dash
18 no-host configure.cpython 6,142,854 0 0 0 27,520 0 13,297 1,197 osh-cpython
26 no-host configure.cpython 2,237,135 0 0 0 27,520 0 13,208 990 osh-native
4 no-host configure.ocaml 410,371 0 0 0 5,120 0 1,945 184 bash
12 no-host configure.ocaml 391,054 0 0 0 5,112 0 1,877 163 dash
20 no-host configure.ocaml 637,748 0 0 0 5,112 0 1,856 186 osh-cpython
28 no-host configure.ocaml 413,068 0 0 0 5,120 0 1,929 161 osh-native
5 no-host configure.tcc 6,562 0 0 0 104 0 48 5 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,219 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,107,646 0 0 0 42,408 0 18,680 976 bash
11 no-host configure.util-linux 2,263,241 0 0 0 42,592 0 17,527 1,205 dash
19 no-host configure.util-linux 5,338,313 7 0 0 39,112 0 17,047 1,380 osh-cpython
27 no-host configure.util-linux 2,008,937 0 0 0 39,128 0 17,056 999 osh-native
6 no-host configure.yash 256,630 0 0 0 4,120 0 870 70 bash
14 no-host configure.yash 244,723 0 0 0 3,720 0 864 85 dash
22 no-host configure.yash 384,682 0 0 0 3,728 0 857 89 osh-cpython
30 no-host configure.yash 258,811 0 0 0 3,736 0 851 138 osh-native
0 no-host hello-world 154 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,657 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-f91eb250
dash dash-308ec8e6
osh-cpython osh-e2945cfa
osh-native osh-a1e9636e
host label host id
no-host no-host-13226fd6