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 459 22 23.84 1.15
bin-true no-host 691 557 2,325 818 3.37 1.18
configure.cpython no-host 15,644 15,706 29,485 15,800 1.88 1.01
configure.ocaml no-host 3,933 3,856 4,742 3,999 1.21 1.02
configure.tcc no-host 49 43 196 53 4.04 1.09
configure.util-linux no-host 14,564 15,344 32,001 14,852 2.20 1.02
configure.yash no-host 1,910 1,844 2,524 1,902 1.32 1.00
hello-world no-host 2 1 53 3 30.51 1.63

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,107 22,907 3,149 8.97 1.23
bin-true no-host 106,329 66,419 750,370 126,356 7.06 1.19
configure.cpython no-host 2,217,252 2,240,183 6,117,704 2,218,439 2.76 1.00
configure.ocaml no-host 410,201 391,207 639,378 414,074 1.56 1.01
configure.tcc no-host 6,556 5,469 23,249 6,999 3.55 1.07
configure.util-linux no-host 2,100,667 2,260,867 5,297,185 2,003,448 2.52 0.95
configure.yash no-host 255,746 244,633 383,014 258,151 1.50 1.01
hello-world no-host 150 83 3,705 344 24.70 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.3 3.5 21.9 8.8 5.06 2.03
bin-true no-host 3.0 1.4 17.6 8.0 5.83 2.65
configure.cpython no-host 27.5 27.4 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.4 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.4 24.4 24.1 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.6 6.2 6.38 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,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 15,800 1 66 15.0 27.4 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,852 3 64 21.3 30.3 2,703,413 44,774 65,800 109,640 1,320,605 1,273,168 49,081 41 131,600 1
configure.ocaml no-host 3,999 1 2 2.6 20.6 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 53 0 0 1.3 19.3 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,902 1 2 2.6 24.4 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 19 1 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 459 408 54 21.9 osh-cpython
31 no-host abuild-print-help 22 17 6 8.8 osh-native
1 no-host bin-true 691 506 219 3.0 bash
9 no-host bin-true 557 433 132 1.4 dash
17 no-host bin-true 2,325 1,512 1,077 17.6 osh-cpython
25 no-host bin-true 818 578 257 8.0 osh-native
2 no-host configure.cpython 15,644 9,426 6,635 27.5 bash
10 no-host configure.cpython 15,706 9,555 6,586 27.4 dash
18 no-host configure.cpython 29,485 18,107 13,308 27.4 osh-cpython
26 no-host configure.cpython 15,800 9,406 6,675 27.4 osh-native
4 no-host configure.ocaml 3,933 1,748 1,228 20.6 bash
12 no-host configure.ocaml 3,856 1,729 1,146 20.6 dash
20 no-host configure.ocaml 4,742 2,444 1,511 20.6 osh-cpython
28 no-host configure.ocaml 3,999 1,693 1,346 20.6 osh-native
5 no-host configure.tcc 49 28 21 19.4 bash
13 no-host configure.tcc 43 23 20 19.4 dash
21 no-host configure.tcc 196 138 62 19.3 osh-cpython
29 no-host configure.tcc 53 22 32 19.3 osh-native
3 no-host configure.util-linux 14,564 9,297 5,762 30.3 bash
11 no-host configure.util-linux 15,344 9,319 6,530 30.1 dash
19 no-host configure.util-linux 32,001 21,444 11,678 30.1 osh-cpython
27 no-host configure.util-linux 14,852 9,018 6,034 30.3 osh-native
6 no-host configure.yash 1,910 1,101 810 24.4 bash
14 no-host configure.yash 1,844 1,034 813 24.4 dash
22 no-host configure.yash 2,524 1,533 1,035 24.1 osh-cpython
30 no-host configure.yash 1,902 1,076 831 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 53 44 9 17.6 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,554 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,907 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,149 0 0 0 16 0 38 1 osh-native
1 no-host bin-true 106,329 0 0 0 8 0 1,985 119 bash
9 no-host bin-true 66,419 0 0 0 8 0 1,988 57 dash
17 no-host bin-true 750,370 0 0 0 8 0 2,000 601 osh-cpython
25 no-host bin-true 126,356 0 0 0 16 0 1,990 65 osh-native
2 no-host configure.cpython 2,217,252 0 0 0 32,928 0 14,490 1,097 bash
10 no-host configure.cpython 2,240,183 0 0 0 32,992 0 14,617 1,253 dash
18 no-host configure.cpython 6,117,704 0 0 0 27,512 0 13,264 1,300 osh-cpython
26 no-host configure.cpython 2,218,439 0 0 0 27,520 0 13,238 1,053 osh-native
4 no-host configure.ocaml 410,201 0 0 0 5,120 0 1,947 171 bash
12 no-host configure.ocaml 391,207 0 0 0 5,112 0 1,888 137 dash
20 no-host configure.ocaml 639,378 0 0 0 5,112 0 1,858 177 osh-cpython
28 no-host configure.ocaml 414,074 0 0 0 5,120 0 1,930 174 osh-native
5 no-host configure.tcc 6,556 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,249 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,100,667 0 0 0 42,400 0 18,622 1,066 bash
11 no-host configure.util-linux 2,260,867 0 0 0 42,592 0 17,500 1,087 dash
19 no-host configure.util-linux 5,297,185 7 0 0 39,136 0 17,000 1,400 osh-cpython
27 no-host configure.util-linux 2,003,448 4 0 0 39,120 0 16,989 1,141 osh-native
6 no-host configure.yash 255,746 0 0 0 4,120 0 869 79 bash
14 no-host configure.yash 244,633 0 0 0 3,720 0 866 90 dash
22 no-host configure.yash 383,014 0 0 0 3,728 0 849 91 osh-cpython
30 no-host configure.yash 258,151 0 0 0 3,736 0 849 86 osh-native
0 no-host hello-world 150 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,705 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-915bbf69
dash dash-308ec8e6
osh-cpython osh-8b9093f5
osh-native osh-f7929a4c
host label host id
no-host no-host-556df3ee