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 450 22 24.11 1.16
bin-true no-host 685 538 2,261 805 3.30 1.18
configure.cpython no-host 14,715 14,800 28,196 14,914 1.92 1.01
configure.ocaml no-host 3,739 3,681 4,552 3,767 1.22 1.01
configure.tcc no-host 47 41 191 48 4.07 1.03
configure.util-linux no-host 13,771 14,629 30,752 14,114 2.23 1.02
configure.yash no-host 1,780 1,734 2,391 1,799 1.34 1.01
hello-world no-host 1 1 49 3 32.64 1.92

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,513 1,139 22,858 3,170 9.10 1.26
bin-true no-host 109,310 66,439 757,479 126,202 6.93 1.15
configure.cpython no-host 2,219,211 2,240,191 6,161,044 2,214,825 2.78 1.00
configure.ocaml no-host 410,295 390,694 641,363 412,728 1.56 1.01
configure.tcc no-host 6,540 5,481 23,307 7,004 3.56 1.07
configure.util-linux no-host 2,101,402 2,262,940 5,327,405 1,997,559 2.54 0.95
configure.yash no-host 255,313 244,607 385,116 258,090 1.51 1.01
hello-world no-host 149 81 3,690 350 24.77 2.35

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.7 5.06 2.00
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.3 27.4 27.4 27.5 1.00 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.4 1.00 1.01
configure.yash no-host 24.2 24.4 24.2 24.2 1.00 1.00
hello-world no-host 2.6 1.4 17.4 6.3 6.65 2.40

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.3 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 805 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 14,914 1 56 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 14,114 3 57 21.3 30.4 2,703,426 42,790 65,831 109,643 1,320,611 1,273,172 49,081 41 131,662 1
configure.ocaml no-host 3,767 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 48 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,799 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 22 1 2 2.8 8.7 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 5 4.3 bash
15 no-host abuild-print-help 10 4 5 3.5 dash
23 no-host abuild-print-help 450 416 37 21.9 osh-cpython
31 no-host abuild-print-help 22 22 0 8.7 osh-native
1 no-host bin-true 685 505 212 3.0 bash
9 no-host bin-true 538 415 132 1.4 dash
17 no-host bin-true 2,261 1,455 1,061 17.4 osh-cpython
25 no-host bin-true 805 577 244 8.0 osh-native
2 no-host configure.cpython 14,715 8,887 6,227 27.3 bash
10 no-host configure.cpython 14,800 8,964 6,249 27.4 dash
18 no-host configure.cpython 28,196 17,168 12,850 27.4 osh-cpython
26 no-host configure.cpython 14,914 8,826 6,354 27.5 osh-native
4 no-host configure.ocaml 3,739 1,636 1,142 20.6 bash
12 no-host configure.ocaml 3,681 1,605 1,097 20.6 dash
20 no-host configure.ocaml 4,552 2,191 1,566 20.6 osh-cpython
28 no-host configure.ocaml 3,767 1,633 1,173 20.6 osh-native
5 no-host configure.tcc 47 36 12 19.3 bash
13 no-host configure.tcc 41 30 11 19.4 dash
21 no-host configure.tcc 191 156 39 19.4 osh-cpython
29 no-host configure.tcc 48 21 28 19.4 osh-native
3 no-host configure.util-linux 13,771 8,811 5,440 30.1 bash
11 no-host configure.util-linux 14,629 8,927 6,199 30.3 dash
19 no-host configure.util-linux 30,752 20,662 11,161 30.1 osh-cpython
27 no-host configure.util-linux 14,114 8,498 5,820 30.4 osh-native
6 no-host configure.yash 1,780 1,071 718 24.2 bash
14 no-host configure.yash 1,734 1,035 702 24.4 dash
22 no-host configure.yash 2,391 1,499 933 24.2 osh-cpython
30 no-host configure.yash 1,799 1,017 786 24.2 osh-native
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 36 12 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,513 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,139 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,858 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 39 0 osh-native
1 no-host bin-true 109,310 0 0 0 8 0 1,994 132 bash
9 no-host bin-true 66,439 0 0 0 8 0 1,990 35 dash
17 no-host bin-true 757,479 0 0 0 8 0 1,995 269 osh-cpython
25 no-host bin-true 126,202 0 0 0 16 0 1,993 48 osh-native
2 no-host configure.cpython 2,219,211 0 0 0 32,928 0 14,462 1,013 bash
10 no-host configure.cpython 2,240,191 0 0 0 32,992 0 14,640 1,104 dash
18 no-host configure.cpython 6,161,044 0 0 0 27,512 0 13,273 1,375 osh-cpython
26 no-host configure.cpython 2,214,825 0 0 0 27,520 0 13,381 1,081 osh-native
4 no-host configure.ocaml 410,295 0 0 0 5,120 0 1,950 182 bash
12 no-host configure.ocaml 390,694 0 0 0 5,112 0 1,909 134 dash
20 no-host configure.ocaml 641,363 1 0 0 5,112 0 1,856 191 osh-cpython
28 no-host configure.ocaml 412,728 0 0 0 5,120 0 1,925 148 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,307 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,101,402 2 0 0 42,408 0 18,707 1,205 bash
11 no-host configure.util-linux 2,262,940 0 0 0 42,592 0 17,452 1,048 dash
19 no-host configure.util-linux 5,327,405 14 0 0 39,112 0 17,064 1,219 osh-cpython
27 no-host configure.util-linux 1,997,559 1 0 0 39,120 0 16,964 963 osh-native
6 no-host configure.yash 255,313 0 0 0 4,120 0 872 84 bash
14 no-host configure.yash 244,607 0 0 0 3,720 0 865 95 dash
22 no-host configure.yash 385,116 0 0 0 3,728 0 854 90 osh-cpython
30 no-host configure.yash 258,090 0 0 0 3,736 0 847 81 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,690 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c45f1897
dash dash-308ec8e6
osh-cpython osh-52999785
osh-native osh-f4b88db3
host label host id
no-host no-host-556df3ee