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 462 22 23.15 1.11
bin-true no-host 673 551 2,251 815 3.34 1.21
configure.cpython no-host 15,301 15,333 29,057 15,512 1.90 1.01
configure.ocaml no-host 3,848 3,784 4,705 3,879 1.22 1.01
configure.tcc no-host 48 43 192 49 3.96 1.00
configure.util-linux no-host 14,215 15,165 31,922 14,633 2.25 1.03
configure.yash no-host 1,853 1,792 2,485 1,858 1.34 1.00
hello-world no-host 2 1 49 3 32.31 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,562 1,111 23,556 3,205 9.19 1.25
bin-true no-host 104,396 66,443 742,006 126,194 7.11 1.21
configure.cpython no-host 2,223,662 2,248,097 6,098,189 2,233,107 2.74 1.00
configure.ocaml no-host 410,845 390,515 638,215 413,238 1.55 1.01
configure.tcc no-host 6,549 5,478 23,120 6,990 3.53 1.07
configure.util-linux no-host 2,090,366 2,258,802 5,321,806 2,013,829 2.55 0.96
configure.yash no-host 256,333 245,054 384,875 258,803 1.50 1.01
hello-world no-host 152 82 3,662 346 24.09 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.5 3.4 21.6 8.8 4.85 1.97
bin-true no-host 2.9 1.6 17.4 8.1 6.02 2.82
configure.cpython no-host 27.5 27.3 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.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.5 1.01 1.01
hello-world no-host 2.8 1.6 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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 815 1 2 2.7 8.1 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,512 1 64 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,633 3 63 22.2 30.3 2,703,274 44,770 65,796 126,121 1,320,501 1,256,652 49,081 41 131,592 1
configure.ocaml no-host 3,879 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,858 1 2 2.6 24.5 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,272 64,459 42,667 4,610 54,550 57,112 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 17 3 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 462 415 50 21.6 osh-cpython
31 no-host abuild-print-help 22 15 8 8.8 osh-native
1 no-host bin-true 673 486 221 2.9 bash
9 no-host bin-true 551 424 136 1.6 dash
17 no-host bin-true 2,251 1,467 1,042 17.4 osh-cpython
25 no-host bin-true 815 568 263 8.1 osh-native
2 no-host configure.cpython 15,301 9,037 6,667 27.5 bash
10 no-host configure.cpython 15,333 9,386 6,374 27.3 dash
18 no-host configure.cpython 29,057 17,711 13,224 27.4 osh-cpython
26 no-host configure.cpython 15,512 9,079 6,699 27.4 osh-native
4 no-host configure.ocaml 3,848 1,602 1,285 20.6 bash
12 no-host configure.ocaml 3,784 1,596 1,203 20.6 dash
20 no-host configure.ocaml 4,705 2,256 1,659 20.6 osh-cpython
28 no-host configure.ocaml 3,879 1,663 1,254 20.6 osh-native
5 no-host configure.tcc 48 31 18 19.4 bash
13 no-host configure.tcc 43 20 23 19.3 dash
21 no-host configure.tcc 192 147 48 19.3 osh-cpython
29 no-host configure.tcc 49 23 26 19.3 osh-native
3 no-host configure.util-linux 14,215 9,054 5,642 30.3 bash
11 no-host configure.util-linux 15,165 9,324 6,354 30.1 dash
19 no-host configure.util-linux 31,922 21,403 11,624 30.1 osh-cpython
27 no-host configure.util-linux 14,633 8,746 6,083 30.3 osh-native
6 no-host configure.yash 1,853 1,029 833 24.2 bash
14 no-host configure.yash 1,792 1,036 760 24.2 dash
22 no-host configure.yash 2,485 1,580 949 24.4 osh-cpython
30 no-host configure.yash 1,858 1,021 840 24.5 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 33 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,562 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,556 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 104,396 0 0 0 8 0 1,991 49 bash
9 no-host bin-true 66,443 0 0 0 8 0 1,981 72 dash
17 no-host bin-true 742,006 0 0 0 8 0 2,000 262 osh-cpython
25 no-host bin-true 126,194 0 0 0 16 0 1,991 63 osh-native
2 no-host configure.cpython 2,223,662 0 0 0 32,928 0 14,542 1,266 bash
10 no-host configure.cpython 2,248,097 0 0 0 32,992 0 14,634 1,043 dash
18 no-host configure.cpython 6,098,189 0 0 0 27,512 0 13,292 1,197 osh-cpython
26 no-host configure.cpython 2,233,107 1 0 0 27,520 0 13,307 1,011 osh-native
4 no-host configure.ocaml 410,845 0 0 0 5,120 0 1,951 179 bash
12 no-host configure.ocaml 390,515 0 0 0 5,112 0 1,887 160 dash
20 no-host configure.ocaml 638,215 0 0 0 5,112 0 1,856 175 osh-cpython
28 no-host configure.ocaml 413,238 0 0 0 5,120 0 1,927 160 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,120 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,990 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,090,366 0 0 0 42,400 0 18,522 1,092 bash
11 no-host configure.util-linux 2,258,802 0 0 0 42,584 0 17,479 1,100 dash
19 no-host configure.util-linux 5,321,806 13 0 0 39,136 0 17,020 1,256 osh-cpython
27 no-host configure.util-linux 2,013,829 0 0 0 39,128 0 17,004 1,052 osh-native
6 no-host configure.yash 256,333 0 0 0 4,120 0 872 114 bash
14 no-host configure.yash 245,054 0 0 0 3,720 0 865 75 dash
22 no-host configure.yash 384,875 0 0 0 3,728 0 854 100 osh-cpython
30 no-host configure.yash 258,803 0 0 0 3,736 0 851 82 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,662 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-6c07eab6
dash dash-308ec8e6
osh-cpython osh-83aaf00e
osh-native osh-211da7a4
host label host id
no-host no-host-1c33b689