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 24.29 1.19
bin-true no-host 673 538 2,215 815 3.29 1.21
configure.cpython no-host 14,934 15,113 28,273 15,171 1.89 1.02
configure.ocaml no-host 3,773 3,694 4,609 3,858 1.22 1.02
configure.tcc no-host 48 41 190 49 4.00 1.03
configure.util-linux no-host 13,964 14,740 30,972 14,342 2.22 1.03
configure.yash no-host 1,787 1,761 2,446 1,812 1.37 1.01
hello-world no-host 2 1 48 3 31.57 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,529 1,096 23,458 3,213 9.28 1.27
bin-true no-host 106,335 66,513 751,662 125,195 7.07 1.18
configure.cpython no-host 2,215,158 2,242,526 6,136,074 2,232,118 2.77 1.01
configure.ocaml no-host 410,545 390,714 639,956 413,983 1.56 1.01
configure.tcc no-host 6,585 5,459 23,300 6,994 3.54 1.06
configure.util-linux no-host 2,100,313 2,252,411 5,328,158 2,023,070 2.54 0.96
configure.yash no-host 256,465 245,214 384,213 258,846 1.50 1.01
hello-world no-host 153 80 3,684 351 24.08 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.2 3.4 21.8 8.5 5.19 2.03
bin-true no-host 3.0 1.6 17.4 8.0 5.78 2.65
configure.cpython no-host 27.5 27.4 27.5 27.3 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.1 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 29.9 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.4 6.2 6.05 2.14

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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 815 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,171 2 61 15.8 27.3 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,342 3 59 22.2 30.1 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,858 1 2 2.7 20.4 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,812 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 14 5 4.2 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 456 412 47 21.8 osh-cpython
31 no-host abuild-print-help 22 11 12 8.5 osh-native
1 no-host bin-true 673 480 224 3.0 bash
9 no-host bin-true 538 411 139 1.6 dash
17 no-host bin-true 2,215 1,448 1,023 17.4 osh-cpython
25 no-host bin-true 815 593 238 8.0 osh-native
2 no-host configure.cpython 14,934 9,121 6,207 27.5 bash
10 no-host configure.cpython 15,113 9,100 6,424 27.4 dash
18 no-host configure.cpython 28,273 17,105 13,004 27.5 osh-cpython
26 no-host configure.cpython 15,171 9,060 6,375 27.3 osh-native
4 no-host configure.ocaml 3,773 1,724 1,087 20.6 bash
12 no-host configure.ocaml 3,694 1,522 1,192 20.6 dash
20 no-host configure.ocaml 4,609 2,241 1,574 20.6 osh-cpython
28 no-host configure.ocaml 3,858 1,646 1,248 20.4 osh-native
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 41 34 7 19.1 dash
21 no-host configure.tcc 190 148 45 19.3 osh-cpython
29 no-host configure.tcc 49 39 10 19.4 osh-native
3 no-host configure.util-linux 13,964 8,808 5,624 30.3 bash
11 no-host configure.util-linux 14,740 9,170 6,055 29.9 dash
19 no-host configure.util-linux 30,972 20,715 11,346 30.1 osh-cpython
27 no-host configure.util-linux 14,342 8,570 5,978 30.1 osh-native
6 no-host configure.yash 1,787 1,010 786 24.2 bash
14 no-host configure.yash 1,761 1,027 738 24.2 dash
22 no-host configure.yash 2,446 1,512 973 24.4 osh-cpython
30 no-host configure.yash 1,812 1,059 757 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 26 22 17.4 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,529 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,458 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,335 0 0 0 8 0 1,990 50 bash
9 no-host bin-true 66,513 0 0 0 8 0 1,987 102 dash
17 no-host bin-true 751,662 0 0 0 8 0 1,995 92 osh-cpython
25 no-host bin-true 125,195 0 0 0 16 0 1,995 229 osh-native
2 no-host configure.cpython 2,215,158 0 0 0 32,928 0 14,435 1,020 bash
10 no-host configure.cpython 2,242,526 0 0 0 32,992 0 14,603 1,211 dash
18 no-host configure.cpython 6,136,074 0 0 0 27,512 0 13,223 1,296 osh-cpython
26 no-host configure.cpython 2,232,118 0 0 0 27,520 0 13,300 868 osh-native
4 no-host configure.ocaml 410,545 0 0 0 5,120 0 1,945 180 bash
12 no-host configure.ocaml 390,714 0 0 0 5,112 0 1,930 139 dash
20 no-host configure.ocaml 639,956 1 0 0 5,112 0 1,863 207 osh-cpython
28 no-host configure.ocaml 413,983 0 0 0 5,120 0 1,930 167 osh-native
5 no-host configure.tcc 6,585 0 0 0 104 0 49 7 bash
13 no-host configure.tcc 5,459 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,300 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,313 1 0 0 42,400 0 18,597 1,069 bash
11 no-host configure.util-linux 2,252,411 0 0 0 42,584 0 17,497 1,079 dash
19 no-host configure.util-linux 5,328,158 15 0 0 39,120 0 17,055 1,217 osh-cpython
27 no-host configure.util-linux 2,023,070 2 0 0 39,120 0 17,071 1,160 osh-native
6 no-host configure.yash 256,465 0 0 0 4,120 0 871 75 bash
14 no-host configure.yash 245,214 0 0 0 3,720 0 868 97 dash
22 no-host configure.yash 384,213 0 0 0 3,728 0 861 85 osh-cpython
30 no-host configure.yash 258,846 0 0 0 3,736 0 848 81 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,684 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-02b8fea8
dash dash-308ec8e6
osh-cpython osh-efb75288
osh-native osh-a0af24ff
host label host id
no-host no-host-556df3ee