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 462 23 23.78 1.19
bin-true no-host 680 546 2,250 821 3.31 1.21
configure.cpython no-host 15,203 15,334 29,082 15,756 1.91 1.04
configure.ocaml no-host 3,846 3,775 4,712 3,913 1.23 1.02
configure.tcc no-host 49 42 194 51 3.99 1.05
configure.util-linux no-host 14,197 15,065 31,989 14,871 2.25 1.05
configure.yash no-host 1,859 1,807 2,528 1,875 1.36 1.01
hello-world no-host 2 1 49 3 32.13 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,511 1,086 23,336 3,223 9.29 1.28
bin-true no-host 107,337 65,430 747,693 125,187 6.97 1.17
configure.cpython no-host 2,219,014 2,240,125 6,139,105 2,229,890 2.77 1.00
configure.ocaml no-host 410,366 391,170 638,306 414,461 1.56 1.01
configure.tcc no-host 6,586 5,477 23,136 6,992 3.51 1.06
configure.util-linux no-host 2,102,955 2,257,632 5,340,308 2,008,680 2.54 0.96
configure.yash no-host 256,467 244,986 385,214 258,773 1.50 1.01
hello-world no-host 152 82 3,651 345 24.02 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.2 3.4 21.5 9.0 5.12 2.16
bin-true no-host 3.0 1.4 17.4 7.9 5.78 2.61
configure.cpython no-host 27.1 27.4 27.4 27.5 1.01 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.1 30.0 1.00 0.99
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.2 6.0 6.24 2.19

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.0 3,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 821 1 2 2.7 7.9 154,688 12,992 2,799 11,737 78,344 64,607 5,012 3 50,000 0
configure.cpython no-host 15,756 1 66 15.8 27.5 1,772,604 49,197 28,508 101,770 908,051 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,871 3 66 22.2 30.0 2,703,268 44,766 65,792 126,121 1,320,495 1,256,652 49,081 41 131,584 1
configure.ocaml no-host 3,913 1 2 2.7 20.6 150,030 11,045 5,138 8,602 71,629 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,523 30,523 0 1,599 14,799 14,125 350 0 50,000 0
configure.yash no-host 1,875 1 2 2.6 24.4 139,687 7,964 6,600 7,554 70,301 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,266 64,455 42,663 4,610 54,544 57,112 478 3 85,326 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 11 9 4.2 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 462 407 58 21.5 osh-cpython
31 no-host abuild-print-help 23 18 6 9.0 osh-native
1 no-host bin-true 680 489 222 3.0 bash
9 no-host bin-true 546 425 131 1.4 dash
17 no-host bin-true 2,250 1,454 1,058 17.4 osh-cpython
25 no-host bin-true 821 584 251 7.9 osh-native
2 no-host configure.cpython 15,203 9,371 6,229 27.1 bash
10 no-host configure.cpython 15,334 9,063 6,675 27.4 dash
18 no-host configure.cpython 29,082 17,600 13,352 27.4 osh-cpython
26 no-host configure.cpython 15,756 9,313 6,711 27.5 osh-native
4 no-host configure.ocaml 3,846 1,596 1,285 20.4 bash
12 no-host configure.ocaml 3,775 1,602 1,190 20.6 dash
20 no-host configure.ocaml 4,712 2,303 1,616 20.6 osh-cpython
28 no-host configure.ocaml 3,913 1,596 1,357 20.6 osh-native
5 no-host configure.tcc 49 30 19 19.3 bash
13 no-host configure.tcc 42 26 16 19.4 dash
21 no-host configure.tcc 194 135 62 19.3 osh-cpython
29 no-host configure.tcc 51 23 29 19.3 osh-native
3 no-host configure.util-linux 14,197 9,038 5,628 30.3 bash
11 no-host configure.util-linux 15,065 9,162 6,391 30.3 dash
19 no-host configure.util-linux 31,989 21,456 11,629 30.1 osh-cpython
27 no-host configure.util-linux 14,871 8,972 6,087 30.0 osh-native
6 no-host configure.yash 1,859 1,090 778 24.4 bash
14 no-host configure.yash 1,807 1,082 727 24.4 dash
22 no-host configure.yash 2,528 1,531 1,041 24.2 osh-cpython
30 no-host configure.yash 1,875 1,045 833 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 49 25 24 17.2 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,511 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,336 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,223 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,337 0 0 0 8 0 1,993 79 bash
9 no-host bin-true 65,430 0 0 0 8 0 1,989 46 dash
17 no-host bin-true 747,693 0 0 0 8 0 1,994 188 osh-cpython
25 no-host bin-true 125,187 0 0 0 16 0 1,978 53 osh-native
2 no-host configure.cpython 2,219,014 0 0 0 32,928 0 14,482 1,158 bash
10 no-host configure.cpython 2,240,125 0 0 0 32,992 0 14,499 1,126 dash
18 no-host configure.cpython 6,139,105 0 0 0 27,512 0 13,232 1,222 osh-cpython
26 no-host configure.cpython 2,229,890 0 0 0 27,520 0 13,247 1,102 osh-native
4 no-host configure.ocaml 410,366 0 0 0 5,120 0 1,953 192 bash
12 no-host configure.ocaml 391,170 0 0 0 5,112 0 1,899 172 dash
20 no-host configure.ocaml 638,306 0 0 0 5,112 0 1,861 170 osh-cpython
28 no-host configure.ocaml 414,461 0 0 0 5,120 0 1,933 180 osh-native
5 no-host configure.tcc 6,586 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,136 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,992 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,102,955 1 0 0 42,400 0 18,598 1,254 bash
11 no-host configure.util-linux 2,257,632 1 0 0 42,584 0 17,487 1,065 dash
19 no-host configure.util-linux 5,340,308 9 0 0 39,136 0 17,019 1,291 osh-cpython
27 no-host configure.util-linux 2,008,680 0 0 0 39,128 0 17,075 1,080 osh-native
6 no-host configure.yash 256,467 0 0 0 4,120 0 871 71 bash
14 no-host configure.yash 244,986 0 0 0 3,720 0 867 95 dash
22 no-host configure.yash 385,214 0 0 0 3,728 0 857 91 osh-cpython
30 no-host configure.yash 258,773 0 0 0 3,736 0 853 87 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,651 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-cfa94e13
dash dash-308ec8e6
osh-cpython osh-7bffccd7
osh-native osh-5e0161b0
host label host id
no-host no-host-13226fd6