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 9 454 23 23.26 1.15
bin-true no-host 686 550 2,308 824 3.36 1.20
configure.cpython no-host 15,285 15,303 29,464 16,009 1.93 1.05
configure.ocaml no-host 3,919 3,870 4,733 3,956 1.21 1.01
configure.tcc no-host 53 42 203 50 3.86 0.95
configure.util-linux no-host 14,222 15,524 32,514 15,154 2.29 1.07
configure.yash no-host 1,872 1,788 2,551 1,894 1.36 1.01
hello-world no-host 2 1 51 3 32.84 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,560 1,104 22,779 3,178 8.90 1.24
bin-true no-host 108,393 66,494 751,725 129,192 6.94 1.19
configure.cpython no-host 2,225,054 2,237,494 6,140,440 2,217,713 2.76 1.00
configure.ocaml no-host 410,288 391,152 637,755 413,646 1.55 1.01
configure.tcc no-host 6,546 5,484 23,237 6,998 3.55 1.07
configure.util-linux no-host 2,099,283 2,257,473 5,317,681 1,996,132 2.53 0.95
configure.yash no-host 256,711 244,068 383,878 258,564 1.50 1.01
hello-world no-host 156 79 3,682 346 23.60 2.22

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 9.0 4.88 2.03
bin-true no-host 2.9 1.6 17.4 8.0 6.04 2.77
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.1 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.9 1.4 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 824 1 2 2.6 8.0 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 16,009 1 66 15.0 27.5 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 15,154 3 65 21.3 30.1 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,956 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 50 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,894 1 2 2.6 24.2 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 20 15 5 4.5 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 454 419 39 21.8 osh-cpython
31 no-host abuild-print-help 23 13 10 9.0 osh-native
1 no-host bin-true 686 487 234 2.9 bash
9 no-host bin-true 550 425 138 1.6 dash
17 no-host bin-true 2,308 1,550 1,024 17.4 osh-cpython
25 no-host bin-true 824 580 261 8.0 osh-native
2 no-host configure.cpython 15,285 9,105 6,588 27.4 bash
10 no-host configure.cpython 15,303 9,170 6,555 27.4 dash
18 no-host configure.cpython 29,464 17,880 13,364 27.4 osh-cpython
26 no-host configure.cpython 16,009 9,445 6,843 27.5 osh-native
4 no-host configure.ocaml 3,919 1,688 1,271 20.6 bash
12 no-host configure.ocaml 3,870 1,634 1,178 20.4 dash
20 no-host configure.ocaml 4,733 2,285 1,660 20.6 osh-cpython
28 no-host configure.ocaml 3,956 1,641 1,356 20.6 osh-native
5 no-host configure.tcc 53 32 21 19.3 bash
13 no-host configure.tcc 42 15 28 19.3 dash
21 no-host configure.tcc 203 153 54 19.4 osh-cpython
29 no-host configure.tcc 50 22 28 19.3 osh-native
3 no-host configure.util-linux 14,222 8,924 5,777 30.1 bash
11 no-host configure.util-linux 15,524 9,435 6,462 30.3 dash
19 no-host configure.util-linux 32,514 21,644 12,011 30.0 osh-cpython
27 no-host configure.util-linux 15,154 8,976 6,369 30.1 osh-native
6 no-host configure.yash 1,872 1,074 807 24.1 bash
14 no-host configure.yash 1,788 1,032 760 24.4 dash
22 no-host configure.yash 2,551 1,496 1,099 24.4 osh-cpython
30 no-host configure.yash 1,894 1,124 775 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 51 28 23 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,560 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,779 0 0 0 8 0 44 6 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 108,393 0 0 0 8 0 1,986 42 bash
9 no-host bin-true 66,494 0 0 0 8 0 1,987 101 dash
17 no-host bin-true 751,725 0 0 0 8 0 1,992 320 osh-cpython
25 no-host bin-true 129,192 0 0 0 16 0 1,993 50 osh-native
2 no-host configure.cpython 2,225,054 0 0 0 32,928 0 14,476 1,121 bash
10 no-host configure.cpython 2,237,494 0 0 0 32,992 0 14,620 1,082 dash
18 no-host configure.cpython 6,140,440 0 0 0 27,512 0 13,268 1,348 osh-cpython
26 no-host configure.cpython 2,217,713 0 0 0 27,520 0 13,291 1,028 osh-native
4 no-host configure.ocaml 410,288 0 0 0 5,120 0 1,947 146 bash
12 no-host configure.ocaml 391,152 0 0 0 5,112 0 1,938 152 dash
20 no-host configure.ocaml 637,755 0 0 0 5,112 0 1,853 186 osh-cpython
28 no-host configure.ocaml 413,646 0 0 0 5,120 0 1,931 167 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 24 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,237 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,998 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,099,283 0 0 0 42,400 0 18,799 1,055 bash
11 no-host configure.util-linux 2,257,473 1 0 0 42,592 0 17,525 1,010 dash
19 no-host configure.util-linux 5,317,681 8 0 0 39,136 0 16,968 1,326 osh-cpython
27 no-host configure.util-linux 1,996,132 0 0 0 39,120 0 16,985 1,054 osh-native
6 no-host configure.yash 256,711 0 0 0 4,120 0 871 83 bash
14 no-host configure.yash 244,068 0 0 0 3,720 0 869 79 dash
22 no-host configure.yash 383,878 0 0 0 3,728 0 854 99 osh-cpython
30 no-host configure.yash 258,564 0 0 0 3,736 0 848 65 osh-native
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,682 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-ef84c121
dash dash-308ec8e6
osh-cpython osh-338f0d7e
osh-native osh-515192ed
host label host id
no-host no-host-556df3ee