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 458 22 24.02 1.15
bin-true no-host 675 540 2,259 813 3.35 1.20
configure.cpython no-host 15,070 15,222 28,757 15,358 1.91 1.02
configure.ocaml no-host 3,832 3,748 4,661 3,858 1.22 1.01
configure.tcc no-host 48 42 194 49 4.07 1.03
configure.util-linux no-host 14,083 14,960 31,436 14,468 2.23 1.03
configure.yash no-host 1,832 1,784 2,465 1,853 1.35 1.01
hello-world no-host 1 1 49 3 33.23 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,538 1,128 22,724 3,209 8.95 1.26
bin-true no-host 106,365 66,510 752,727 126,179 7.08 1.19
configure.cpython no-host 2,218,647 2,240,810 6,139,541 2,219,867 2.77 1.00
configure.ocaml no-host 410,658 391,195 636,859 413,853 1.55 1.01
configure.tcc no-host 6,554 5,473 23,258 6,993 3.55 1.07
configure.util-linux no-host 2,108,480 2,261,012 5,310,535 1,999,023 2.52 0.95
configure.yash no-host 256,168 244,850 384,156 257,778 1.50 1.01
hello-world no-host 151 79 3,689 346 24.43 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.4 21.7 8.9 5.03 2.06
bin-true no-host 2.9 1.4 17.4 8.0 6.04 2.77
configure.cpython no-host 27.5 27.4 27.3 27.4 0.99 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 1.00 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.4 30.1 30.3 30.1 1.00 0.99
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.3 6.2 6.28 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 813 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 15,358 1 61 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,468 3 61 21.3 30.1 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,858 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.3 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,853 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 22 1 2 2.8 8.9 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 9 1 3.4 dash
23 no-host abuild-print-help 458 402 59 21.7 osh-cpython
31 no-host abuild-print-help 22 21 1 8.9 osh-native
1 no-host bin-true 675 498 208 2.9 bash
9 no-host bin-true 540 408 145 1.4 dash
17 no-host bin-true 2,259 1,504 1,019 17.4 osh-cpython
25 no-host bin-true 813 588 240 8.0 osh-native
2 no-host configure.cpython 15,070 9,103 6,368 27.5 bash
10 no-host configure.cpython 15,222 9,237 6,411 27.4 dash
18 no-host configure.cpython 28,757 17,421 13,195 27.3 osh-cpython
26 no-host configure.cpython 15,358 8,991 6,630 27.4 osh-native
4 no-host configure.ocaml 3,832 1,625 1,245 20.4 bash
12 no-host configure.ocaml 3,748 1,573 1,195 20.6 dash
20 no-host configure.ocaml 4,661 2,193 1,677 20.4 osh-cpython
28 no-host configure.ocaml 3,858 1,580 1,317 20.6 osh-native
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 42 21 21 19.3 dash
21 no-host configure.tcc 194 145 53 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
3 no-host configure.util-linux 14,083 8,876 5,684 30.4 bash
11 no-host configure.util-linux 14,960 9,029 6,430 30.1 dash
19 no-host configure.util-linux 31,436 20,938 11,586 30.3 osh-cpython
27 no-host configure.util-linux 14,468 8,768 5,893 30.1 osh-native
6 no-host configure.yash 1,832 1,059 782 24.4 bash
14 no-host configure.yash 1,784 983 804 24.4 dash
22 no-host configure.yash 2,465 1,444 1,063 24.4 osh-cpython
30 no-host configure.yash 1,853 1,028 828 24.4 osh-native
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 21 28 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,538 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,724 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 38 1 osh-native
1 no-host bin-true 106,365 0 0 0 8 0 1,984 46 bash
9 no-host bin-true 66,510 0 0 0 8 0 1,989 35 dash
17 no-host bin-true 752,727 0 0 0 8 0 1,995 140 osh-cpython
25 no-host bin-true 126,179 0 0 0 16 0 1,993 127 osh-native
2 no-host configure.cpython 2,218,647 0 0 0 32,928 0 14,498 1,079 bash
10 no-host configure.cpython 2,240,810 0 0 0 32,992 0 14,583 1,019 dash
18 no-host configure.cpython 6,139,541 0 0 0 27,512 0 13,201 1,281 osh-cpython
26 no-host configure.cpython 2,219,867 1 0 0 27,520 0 13,208 1,046 osh-native
4 no-host configure.ocaml 410,658 0 0 0 5,120 0 1,950 150 bash
12 no-host configure.ocaml 391,195 0 0 0 5,112 0 1,862 138 dash
20 no-host configure.ocaml 636,859 0 0 0 5,112 0 1,861 163 osh-cpython
28 no-host configure.ocaml 413,853 0 0 0 5,120 0 1,937 178 osh-native
5 no-host configure.tcc 6,554 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 8 dash
21 no-host configure.tcc 23,258 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,108,480 0 0 0 42,400 0 18,681 1,029 bash
11 no-host configure.util-linux 2,261,012 0 0 0 42,584 0 17,381 1,137 dash
19 no-host configure.util-linux 5,310,535 8 0 0 39,112 0 17,030 1,245 osh-cpython
27 no-host configure.util-linux 1,999,023 0 0 0 39,120 0 16,976 956 osh-native
6 no-host configure.yash 256,168 0 0 0 4,120 0 874 74 bash
14 no-host configure.yash 244,850 0 0 0 3,720 0 868 81 dash
22 no-host configure.yash 384,156 0 0 0 3,728 0 856 82 osh-cpython
30 no-host configure.yash 257,778 0 0 0 3,736 0 848 128 osh-native
0 no-host hello-world 151 0 0 0 8 0 0 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,689 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e5d2041f
dash dash-308ec8e6
osh-cpython osh-d85b295f
osh-native osh-4776dcfd
host label host id
no-host no-host-556df3ee