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 444 22 23.11 1.14
bin-true no-host 673 542 2,495 830 3.71 1.23
configure.cpython no-host 14,878 14,960 28,321 15,081 1.90 1.01
configure.ocaml no-host 3,758 3,704 4,569 3,807 1.22 1.01
configure.tcc no-host 47 42 193 48 4.12 1.03
configure.util-linux no-host 13,873 14,796 30,823 14,246 2.22 1.03
configure.yash no-host 1,796 1,754 2,439 1,801 1.36 1.00
hello-world no-host 1 1 49 3 33.50 1.97

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,532 1,087 22,935 3,202 9.06 1.26
bin-true no-host 106,343 66,374 862,450 132,617 8.11 1.25
configure.cpython no-host 2,232,293 2,242,712 6,170,536 2,223,515 2.76 1.00
configure.ocaml no-host 410,589 391,150 638,866 413,989 1.56 1.01
configure.tcc no-host 6,573 5,469 23,261 6,979 3.54 1.06
configure.util-linux no-host 2,102,022 2,254,067 5,323,499 1,999,008 2.53 0.95
configure.yash no-host 256,144 244,547 384,647 258,092 1.50 1.01
hello-world no-host 153 82 3,697 348 24.16 2.27

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.5 21.8 9.0 4.88 2.03
bin-true no-host 2.9 1.6 18.1 8.1 6.27 2.82
configure.cpython no-host 27.5 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.4 6.2 6.33 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 830 1 3 3.0 8.1 186,720 15,060 9,607 11,740 86,361 88,619 3,008 4 50,000 0
configure.cpython no-host 15,081 1 58 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,246 2 58 21.3 30.0 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,807 0 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,801 1 2 2.6 24.2 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 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 7 3 3.5 dash
23 no-host abuild-print-help 444 395 52 21.8 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
1 no-host bin-true 673 494 210 2.9 bash
9 no-host bin-true 542 408 142 1.6 dash
17 no-host bin-true 2,495 1,636 1,126 18.1 osh-cpython
25 no-host bin-true 830 594 250 8.1 osh-native
2 no-host configure.cpython 14,878 9,010 6,251 27.5 bash
10 no-host configure.cpython 14,960 8,898 6,452 27.3 dash
18 no-host configure.cpython 28,321 17,158 13,000 27.5 osh-cpython
26 no-host configure.cpython 15,081 8,905 6,442 27.4 osh-native
4 no-host configure.ocaml 3,758 1,548 1,248 20.6 bash
12 no-host configure.ocaml 3,704 1,563 1,160 20.6 dash
20 no-host configure.ocaml 4,569 2,220 1,552 20.4 osh-cpython
28 no-host configure.ocaml 3,807 1,591 1,254 20.6 osh-native
5 no-host configure.tcc 47 26 21 19.3 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 193 146 50 19.3 osh-cpython
29 no-host configure.tcc 48 33 15 19.3 osh-native
3 no-host configure.util-linux 13,873 8,871 5,475 30.1 bash
11 no-host configure.util-linux 14,796 9,110 6,174 30.0 dash
19 no-host configure.util-linux 30,823 20,557 11,342 30.1 osh-cpython
27 no-host configure.util-linux 14,246 8,602 5,842 30.0 osh-native
6 no-host configure.yash 1,796 1,024 779 24.5 bash
14 no-host configure.yash 1,754 995 762 24.4 dash
22 no-host configure.yash 2,439 1,567 914 24.4 osh-cpython
30 no-host configure.yash 1,801 1,058 746 24.2 osh-native
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 37 11 17.4 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,532 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,935 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 106,343 0 0 0 8 0 1,992 91 bash
9 no-host bin-true 66,374 0 0 0 8 0 1,989 100 dash
17 no-host bin-true 862,450 0 0 0 8 0 1,994 411 osh-cpython
25 no-host bin-true 132,617 0 0 0 16 0 1,988 148 osh-native
2 no-host configure.cpython 2,232,293 0 0 0 32,928 0 14,460 1,406 bash
10 no-host configure.cpython 2,242,712 0 0 0 32,992 0 14,588 969 dash
18 no-host configure.cpython 6,170,536 0 0 0 27,512 0 13,287 1,161 osh-cpython
26 no-host configure.cpython 2,223,515 0 0 0 27,520 0 13,121 1,103 osh-native
4 no-host configure.ocaml 410,589 0 0 0 5,120 0 1,947 166 bash
12 no-host configure.ocaml 391,150 0 0 0 5,112 0 1,889 164 dash
20 no-host configure.ocaml 638,866 0 0 0 5,112 0 1,855 175 osh-cpython
28 no-host configure.ocaml 413,989 0 0 0 5,120 0 1,935 172 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,261 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 48 5 osh-native
3 no-host configure.util-linux 2,102,022 0 0 0 42,400 0 18,495 1,061 bash
11 no-host configure.util-linux 2,254,067 0 0 0 42,584 0 17,484 1,187 dash
19 no-host configure.util-linux 5,323,499 6 0 0 39,120 0 16,969 1,274 osh-cpython
27 no-host configure.util-linux 1,999,008 3 0 0 39,120 0 16,972 1,023 osh-native
6 no-host configure.yash 256,144 0 0 0 4,120 0 870 85 bash
14 no-host configure.yash 244,547 0 0 0 3,720 0 872 86 dash
22 no-host configure.yash 384,647 0 0 0 3,728 0 854 88 osh-cpython
30 no-host configure.yash 258,092 0 0 0 3,736 0 847 105 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,697 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-b6344c2b
dash dash-308ec8e6
osh-cpython osh-bcbf9de4
osh-native osh-7b2b10ec
host label host id
no-host no-host-556df3ee