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 454 23 22.44 1.13
bin-true no-host 674 540 2,265 814 3.36 1.21
configure.cpython no-host 14,937 15,054 28,542 15,148 1.91 1.01
configure.ocaml no-host 3,821 3,739 4,618 3,830 1.21 1.00
configure.tcc no-host 47 42 193 49 4.11 1.05
configure.util-linux no-host 14,055 14,929 31,258 14,441 2.22 1.03
configure.yash no-host 1,813 1,786 2,460 1,829 1.36 1.01
hello-world no-host 1 1 48 3 33.08 1.97

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,117 23,488 3,201 9.29 1.27
bin-true no-host 105,298 65,397 751,620 128,173 7.14 1.22
configure.cpython no-host 2,218,329 2,244,757 6,131,838 2,231,476 2.76 1.01
configure.ocaml no-host 410,357 390,896 639,775 413,831 1.56 1.01
configure.tcc no-host 6,526 5,486 23,260 6,999 3.56 1.07
configure.util-linux no-host 2,093,062 2,253,925 5,329,280 2,022,464 2.55 0.97
configure.yash no-host 256,703 244,481 384,981 259,109 1.50 1.01
hello-world no-host 154 83 3,684 349 23.92 2.27

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.8 8.8 4.88 1.97
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.5 27.4 27.3 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.0 30.0 0.99 0.99
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 814 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,148 1 60 15.8 27.4 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,441 2 59 22.2 30.0 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,830 1 2 2.7 20.6 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.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,829 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 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 20 16 4 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 454 408 49 21.8 osh-cpython
31 no-host abuild-print-help 23 22 2 8.8 osh-native
1 no-host bin-true 674 489 215 3.0 bash
9 no-host bin-true 540 421 129 1.4 dash
17 no-host bin-true 2,265 1,513 1,007 17.4 osh-cpython
25 no-host bin-true 814 594 235 8.0 osh-native
2 no-host configure.cpython 14,937 9,168 6,169 27.5 bash
10 no-host configure.cpython 15,054 9,157 6,314 27.4 dash
18 no-host configure.cpython 28,542 17,650 12,742 27.3 osh-cpython
26 no-host configure.cpython 15,148 8,871 6,539 27.4 osh-native
4 no-host configure.ocaml 3,821 1,609 1,240 20.6 bash
12 no-host configure.ocaml 3,739 1,544 1,214 20.6 dash
20 no-host configure.ocaml 4,618 2,231 1,592 20.4 osh-cpython
28 no-host configure.ocaml 3,830 1,590 1,279 20.6 osh-native
5 no-host configure.tcc 47 30 17 19.3 bash
13 no-host configure.tcc 42 17 24 19.3 dash
21 no-host configure.tcc 193 128 68 19.4 osh-cpython
29 no-host configure.tcc 49 27 23 19.3 osh-native
3 no-host configure.util-linux 14,055 9,127 5,396 30.3 bash
11 no-host configure.util-linux 14,929 9,165 6,252 30.1 dash
19 no-host configure.util-linux 31,258 20,611 11,736 30.0 osh-cpython
27 no-host configure.util-linux 14,441 8,631 6,008 30.0 osh-native
6 no-host configure.yash 1,813 1,084 738 24.4 bash
14 no-host configure.yash 1,786 968 820 24.4 dash
22 no-host configure.yash 2,460 1,506 998 24.2 osh-cpython
30 no-host configure.yash 1,829 1,063 770 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 19 29 17.3 osh-cpython
24 no-host hello-world 3 3 0 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 40 3 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,488 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 105,298 0 0 0 8 0 1,987 97 bash
9 no-host bin-true 65,397 0 0 0 8 0 1,988 98 dash
17 no-host bin-true 751,620 0 0 0 8 0 2,000 477 osh-cpython
25 no-host bin-true 128,173 0 0 0 16 0 1,988 78 osh-native
2 no-host configure.cpython 2,218,329 0 0 0 32,928 0 14,516 1,276 bash
10 no-host configure.cpython 2,244,757 0 0 0 32,992 0 14,602 1,086 dash
18 no-host configure.cpython 6,131,838 0 0 0 27,512 0 13,236 1,199 osh-cpython
26 no-host configure.cpython 2,231,476 0 0 0 27,520 0 13,352 1,030 osh-native
4 no-host configure.ocaml 410,357 0 0 0 5,120 0 1,949 176 bash
12 no-host configure.ocaml 390,896 0 0 0 5,112 0 1,897 156 dash
20 no-host configure.ocaml 639,775 1 0 0 5,112 0 1,864 225 osh-cpython
28 no-host configure.ocaml 413,831 0 0 0 5,120 0 1,926 144 osh-native
5 no-host configure.tcc 6,526 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,260 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 46 2 osh-native
3 no-host configure.util-linux 2,093,062 0 0 0 42,400 0 18,746 1,097 bash
11 no-host configure.util-linux 2,253,925 1 0 0 42,584 0 17,441 1,070 dash
19 no-host configure.util-linux 5,329,280 15 0 0 39,112 0 17,083 1,244 osh-cpython
27 no-host configure.util-linux 2,022,464 0 0 0 39,120 0 17,066 989 osh-native
6 no-host configure.yash 256,703 0 0 0 4,120 0 869 115 bash
14 no-host configure.yash 244,481 0 0 0 3,720 0 867 143 dash
22 no-host configure.yash 384,981 0 0 0 3,728 0 858 94 osh-cpython
30 no-host configure.yash 259,109 0 0 0 3,736 0 852 85 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,684 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-88bcdf9d
dash dash-308ec8e6
osh-cpython osh-b59fb00b
osh-native osh-891bf32d
host label host id
no-host no-host-556df3ee