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 455 22 24.16 1.19
bin-true no-host 669 542 2,235 824 3.34 1.23
configure.cpython no-host 14,916 14,916 28,566 15,155 1.92 1.02
configure.ocaml no-host 3,793 3,707 4,617 3,790 1.22 1.00
configure.tcc no-host 47 42 191 48 4.03 1.02
configure.util-linux no-host 13,908 14,736 30,871 14,248 2.22 1.02
configure.yash no-host 1,803 1,757 2,456 1,810 1.36 1.00
hello-world no-host 1 1 47 3 32.11 2.00

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,129 23,409 3,228 9.22 1.27
bin-true no-host 104,402 65,387 755,410 129,110 7.24 1.24
configure.cpython no-host 2,220,143 2,243,014 6,143,799 2,231,694 2.77 1.01
configure.ocaml no-host 409,957 391,757 639,380 413,587 1.56 1.01
configure.tcc no-host 6,546 5,485 23,179 6,970 3.54 1.06
configure.util-linux no-host 2,104,920 2,264,372 5,327,731 2,012,773 2.53 0.96
configure.yash no-host 256,219 244,468 384,923 258,631 1.50 1.01
hello-world no-host 152 80 3,658 349 24.07 2.30

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.6 8.8 5.00 2.03
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.5 27.5 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.1 19.4 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.3 30.0 1.00 0.99
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.8 1.4 17.2 6.2 6.24 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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 824 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,155 1 59 15.8 27.5 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,248 3 58 22.2 30.0 2,703,267 44,765 65,811 126,121 1,320,494 1,256,652 49,081 41 131,622 1
configure.ocaml no-host 3,790 0 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,810 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,265 64,454 42,662 4,609 54,543 57,113 478 3 85,324 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 16 3 4.3 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 455 417 42 21.6 osh-cpython
31 no-host abuild-print-help 22 16 7 8.8 osh-native
1 no-host bin-true 669 476 224 2.9 bash
9 no-host bin-true 542 425 126 1.4 dash
17 no-host bin-true 2,235 1,452 1,046 17.3 osh-cpython
25 no-host bin-true 824 593 246 8.0 osh-native
2 no-host configure.cpython 14,916 8,972 6,340 27.4 bash
10 no-host configure.cpython 14,916 8,944 6,389 27.4 dash
18 no-host configure.cpython 28,566 17,728 12,689 27.5 osh-cpython
26 no-host configure.cpython 15,155 9,149 6,274 27.5 osh-native
4 no-host configure.ocaml 3,793 1,582 1,242 20.6 bash
12 no-host configure.ocaml 3,707 1,556 1,169 20.6 dash
20 no-host configure.ocaml 4,617 2,247 1,573 20.4 osh-cpython
28 no-host configure.ocaml 3,790 1,650 1,179 20.6 osh-native
5 no-host configure.tcc 47 30 18 19.1 bash
13 no-host configure.tcc 42 33 9 19.4 dash
21 no-host configure.tcc 191 134 60 19.3 osh-cpython
29 no-host configure.tcc 48 18 31 19.4 osh-native
3 no-host configure.util-linux 13,908 8,829 5,555 30.3 bash
11 no-host configure.util-linux 14,736 9,106 6,127 30.1 dash
19 no-host configure.util-linux 30,871 20,682 11,261 30.3 osh-cpython
27 no-host configure.util-linux 14,248 8,495 5,949 30.0 osh-native
6 no-host configure.yash 1,803 1,048 760 24.2 bash
14 no-host configure.yash 1,757 1,038 722 24.4 dash
22 no-host configure.yash 2,456 1,442 1,055 24.4 osh-cpython
30 no-host configure.yash 1,810 1,029 785 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 47 30 17 17.2 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,129 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,409 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,228 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 104,402 0 0 0 8 0 1,994 182 bash
9 no-host bin-true 65,387 0 0 0 8 0 1,982 54 dash
17 no-host bin-true 755,410 0 0 0 8 0 1,982 100 osh-cpython
25 no-host bin-true 129,110 0 0 0 16 0 1,990 211 osh-native
2 no-host configure.cpython 2,220,143 0 0 0 32,928 0 14,532 1,140 bash
10 no-host configure.cpython 2,243,014 0 0 0 32,992 0 14,612 1,144 dash
18 no-host configure.cpython 6,143,799 2 0 0 27,512 0 13,266 1,212 osh-cpython
26 no-host configure.cpython 2,231,694 0 0 0 27,520 0 13,284 1,006 osh-native
4 no-host configure.ocaml 409,957 0 0 0 5,120 0 1,958 152 bash
12 no-host configure.ocaml 391,757 0 0 0 5,112 0 1,930 160 dash
20 no-host configure.ocaml 639,380 1 0 0 5,112 0 1,862 183 osh-cpython
28 no-host configure.ocaml 413,587 0 0 0 5,120 0 1,935 170 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,179 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,104,920 0 0 0 42,400 0 18,616 1,160 bash
11 no-host configure.util-linux 2,264,372 0 0 0 42,584 0 17,489 1,139 dash
19 no-host configure.util-linux 5,327,731 9 0 0 39,112 0 17,054 1,262 osh-cpython
27 no-host configure.util-linux 2,012,773 2 0 0 39,120 0 17,072 1,058 osh-native
6 no-host configure.yash 256,219 0 0 0 4,120 0 874 94 bash
14 no-host configure.yash 244,468 0 0 0 3,720 0 869 90 dash
22 no-host configure.yash 384,923 0 0 0 3,728 0 858 242 osh-cpython
30 no-host configure.yash 258,631 0 0 0 3,736 0 853 89 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,658 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-711de4ab
dash dash-308ec8e6
osh-cpython osh-4c1bc561
osh-native osh-8c22fde6
host label host id
no-host no-host-13226fd6