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 461 23 23.82 1.16
bin-true no-host 674 553 2,283 817 3.39 1.21
configure.cpython no-host 15,356 15,361 29,550 15,599 1.92 1.02
configure.ocaml no-host 3,906 3,763 4,709 3,882 1.21 0.99
configure.tcc no-host 48 43 195 49 4.03 1.02
configure.util-linux no-host 14,323 15,246 31,918 14,727 2.23 1.03
configure.yash no-host 1,856 1,801 2,501 1,873 1.35 1.01
hello-world no-host 2 1 50 3 32.18 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,570 1,096 22,877 3,168 8.90 1.23
bin-true no-host 104,366 65,449 755,537 126,181 7.24 1.21
configure.cpython no-host 2,219,375 2,239,469 6,140,082 2,218,122 2.77 1.00
configure.ocaml no-host 410,558 391,179 638,694 413,806 1.56 1.01
configure.tcc no-host 6,535 5,476 23,246 7,000 3.56 1.07
configure.util-linux no-host 2,101,387 2,263,767 5,307,813 1,999,984 2.53 0.95
configure.yash no-host 256,118 245,185 383,848 257,464 1.50 1.01
hello-world no-host 152 84 3,691 351 24.28 2.31

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.7 9.0 4.88 2.03
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.3 27.5 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.1 19.3 19.1 1.00 0.99
configure.util-linux no-host 30.1 30.3 30.3 30.4 1.00 1.01
configure.yash no-host 24.4 24.2 24.5 24.4 1.01 1.00
hello-world no-host 2.9 1.6 17.3 6.2 6.00 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,599 1 64 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,727 3 63 21.3 30.4 2,703,426 44,785 65,811 109,643 1,320,611 1,273,172 49,081 41 131,622 1
configure.ocaml no-host 3,882 1 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,873 1 2 2.6 24.4 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 3 85,362 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 6 4.5 bash
15 no-host abuild-print-help 10 5 6 3.4 dash
23 no-host abuild-print-help 461 418 46 21.7 osh-cpython
31 no-host abuild-print-help 23 11 12 9.0 osh-native
1 no-host bin-true 674 491 216 3.0 bash
9 no-host bin-true 553 415 143 1.4 dash
17 no-host bin-true 2,283 1,534 1,019 17.4 osh-cpython
25 no-host bin-true 817 571 259 8.1 osh-native
2 no-host configure.cpython 15,356 9,203 6,547 27.3 bash
10 no-host configure.cpython 15,361 9,239 6,521 27.5 dash
18 no-host configure.cpython 29,550 17,949 13,535 27.4 osh-cpython
26 no-host configure.cpython 15,599 9,128 6,730 27.4 osh-native
4 no-host configure.ocaml 3,906 1,695 1,250 20.6 bash
12 no-host configure.ocaml 3,763 1,590 1,191 20.6 dash
20 no-host configure.ocaml 4,709 2,303 1,615 20.6 osh-cpython
28 no-host configure.ocaml 3,882 1,662 1,260 20.6 osh-native
5 no-host configure.tcc 48 30 19 19.3 bash
13 no-host configure.tcc 43 22 21 19.1 dash
21 no-host configure.tcc 195 140 59 19.3 osh-cpython
29 no-host configure.tcc 49 31 19 19.1 osh-native
3 no-host configure.util-linux 14,323 9,016 5,785 30.1 bash
11 no-host configure.util-linux 15,246 9,295 6,417 30.3 dash
19 no-host configure.util-linux 31,918 21,395 11,653 30.3 osh-cpython
27 no-host configure.util-linux 14,727 8,728 6,192 30.4 osh-native
6 no-host configure.yash 1,856 1,078 786 24.4 bash
14 no-host configure.yash 1,801 1,003 801 24.2 dash
22 no-host configure.yash 2,501 1,571 974 24.5 osh-cpython
30 no-host configure.yash 1,873 1,045 832 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 50 34 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,570 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,877 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,168 0 0 0 16 0 39 4 osh-native
1 no-host bin-true 104,366 0 0 0 8 0 1,994 55 bash
9 no-host bin-true 65,449 0 0 0 8 0 1,988 43 dash
17 no-host bin-true 755,537 0 0 0 8 0 1,994 176 osh-cpython
25 no-host bin-true 126,181 0 0 0 16 0 1,988 53 osh-native
2 no-host configure.cpython 2,219,375 0 0 0 32,928 0 14,582 1,041 bash
10 no-host configure.cpython 2,239,469 0 0 0 32,992 0 14,665 1,160 dash
18 no-host configure.cpython 6,140,082 0 0 0 27,512 0 13,216 1,283 osh-cpython
26 no-host configure.cpython 2,218,122 1 0 0 27,520 0 13,262 974 osh-native
4 no-host configure.ocaml 410,558 0 0 0 5,120 0 1,945 186 bash
12 no-host configure.ocaml 391,179 0 0 0 5,112 0 1,899 173 dash
20 no-host configure.ocaml 638,694 0 0 0 5,112 0 1,849 202 osh-cpython
28 no-host configure.ocaml 413,806 0 0 0 5,120 0 1,932 150 osh-native
5 no-host configure.tcc 6,535 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,246 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 7,000 0 0 0 104 0 47 10 osh-native
3 no-host configure.util-linux 2,101,387 0 0 0 42,400 0 18,554 1,158 bash
11 no-host configure.util-linux 2,263,767 0 0 0 42,584 0 17,300 1,160 dash
19 no-host configure.util-linux 5,307,813 8 0 0 39,120 0 16,981 1,446 osh-cpython
27 no-host configure.util-linux 1,999,984 0 0 0 39,128 0 16,968 1,039 osh-native
6 no-host configure.yash 256,118 0 0 0 4,120 0 876 83 bash
14 no-host configure.yash 245,185 0 0 0 3,720 0 872 71 dash
22 no-host configure.yash 383,848 0 0 0 3,728 0 855 97 osh-cpython
30 no-host configure.yash 257,464 0 0 0 3,736 0 850 87 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,691 0 0 0 8 0 7 5 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-63f7c6f6
dash dash-308ec8e6
osh-cpython osh-60a28e84
osh-native osh-99da511f
host label host id
no-host no-host-556df3ee