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 23 23.79 1.19
bin-true no-host 675 547 2,229 812 3.30 1.20
configure.cpython no-host 15,019 15,052 28,542 15,467 1.90 1.03
configure.ocaml no-host 3,821 3,767 4,630 3,883 1.21 1.02
configure.tcc no-host 47 43 191 49 4.06 1.04
configure.util-linux no-host 13,985 15,013 31,149 14,710 2.23 1.05
configure.yash no-host 1,816 1,786 2,443 1,855 1.34 1.02
hello-world no-host 2 1 48 3 31.47 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,540 1,112 23,210 3,204 9.14 1.26
bin-true no-host 106,299 65,489 751,405 126,127 7.07 1.19
configure.cpython no-host 2,219,190 2,239,077 6,102,593 2,232,781 2.75 1.01
configure.ocaml no-host 410,532 390,984 637,041 412,814 1.55 1.01
configure.tcc no-host 6,559 5,481 23,206 7,018 3.54 1.07
configure.util-linux no-host 2,099,420 2,258,430 5,309,481 2,013,377 2.53 0.96
configure.yash no-host 256,732 244,593 384,284 258,947 1.50 1.01
hello-world no-host 150 79 3,658 347 24.39 2.31

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.4 21.6 8.9 4.85 2.00
bin-true no-host 2.9 1.4 17.4 7.9 6.05 2.73
configure.cpython no-host 27.3 27.5 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.3 30.1 30.3 1.00 1.01
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.3 6.2 6.29 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,720 3,720 0 684 1,872 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 7.9 154,685 12,990 2,797 11,737 78,341 64,607 5,012 3 50,000 0
configure.cpython no-host 15,467 1 61 15.8 27.4 1,772,601 49,195 28,506 101,770 908,048 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,710 3 61 22.2 30.3 2,703,265 44,764 65,790 126,121 1,320,492 1,256,652 49,081 41 131,580 1
configure.ocaml no-host 3,883 1 2 2.7 20.4 150,027 11,043 5,136 8,602 71,626 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,520 30,520 0 1,599 14,796 14,125 350 0 50,000 0
configure.yash no-host 1,855 1 2 2.6 24.2 139,684 7,962 6,598 7,554 70,298 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,263 64,453 42,661 4,609 54,541 57,113 478 3 85,322 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 4 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 455 396 63 21.6 osh-cpython
31 no-host abuild-print-help 23 22 2 8.9 osh-native
1 no-host bin-true 675 495 211 2.9 bash
9 no-host bin-true 547 425 130 1.4 dash
17 no-host bin-true 2,229 1,432 1,054 17.4 osh-cpython
25 no-host bin-true 812 570 256 7.9 osh-native
2 no-host configure.cpython 15,019 9,024 6,398 27.3 bash
10 no-host configure.cpython 15,052 8,886 6,582 27.5 dash
18 no-host configure.cpython 28,542 17,399 12,978 27.3 osh-cpython
26 no-host configure.cpython 15,467 9,240 6,494 27.4 osh-native
4 no-host configure.ocaml 3,821 1,617 1,242 20.6 bash
12 no-host configure.ocaml 3,767 1,588 1,198 20.6 dash
20 no-host configure.ocaml 4,630 2,165 1,667 20.6 osh-cpython
28 no-host configure.ocaml 3,883 1,690 1,230 20.4 osh-native
5 no-host configure.tcc 47 31 17 19.3 bash
13 no-host configure.tcc 43 19 24 19.4 dash
21 no-host configure.tcc 191 155 40 19.3 osh-cpython
29 no-host configure.tcc 49 33 17 19.4 osh-native
3 no-host configure.util-linux 13,985 8,718 5,732 30.0 bash
11 no-host configure.util-linux 15,013 9,187 6,324 30.3 dash
19 no-host configure.util-linux 31,149 20,636 11,584 30.1 osh-cpython
27 no-host configure.util-linux 14,710 8,773 6,132 30.3 osh-native
6 no-host configure.yash 1,816 1,006 820 24.2 bash
14 no-host configure.yash 1,786 1,034 755 24.4 dash
22 no-host configure.yash 2,443 1,516 969 24.4 osh-cpython
30 no-host configure.yash 1,855 997 862 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 24 23 17.3 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,540 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,112 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,210 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,204 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,299 0 0 0 8 0 1,994 63 bash
9 no-host bin-true 65,489 0 0 0 8 0 1,991 203 dash
17 no-host bin-true 751,405 0 0 0 8 0 2,001 274 osh-cpython
25 no-host bin-true 126,127 0 0 0 16 0 1,990 95 osh-native
2 no-host configure.cpython 2,219,190 0 0 0 32,928 0 14,412 984 bash
10 no-host configure.cpython 2,239,077 0 0 0 32,992 0 14,621 1,124 dash
18 no-host configure.cpython 6,102,593 0 0 0 27,512 0 13,278 1,200 osh-cpython
26 no-host configure.cpython 2,232,781 0 0 0 27,520 0 13,263 1,037 osh-native
4 no-host configure.ocaml 410,532 0 0 0 5,120 0 1,937 181 bash
12 no-host configure.ocaml 390,984 0 0 0 5,112 0 1,877 151 dash
20 no-host configure.ocaml 637,041 0 0 0 5,112 0 1,866 192 osh-cpython
28 no-host configure.ocaml 412,814 0 0 0 5,120 0 1,928 169 osh-native
5 no-host configure.tcc 6,559 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,206 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,018 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,099,420 0 0 0 42,400 0 18,543 926 bash
11 no-host configure.util-linux 2,258,430 0 0 0 42,584 0 17,496 1,116 dash
19 no-host configure.util-linux 5,309,481 11 0 0 39,120 0 16,986 1,210 osh-cpython
27 no-host configure.util-linux 2,013,377 1 0 0 39,128 0 17,095 1,069 osh-native
6 no-host configure.yash 256,732 0 0 0 4,120 0 871 63 bash
14 no-host configure.yash 244,593 0 0 0 3,720 0 870 97 dash
22 no-host configure.yash 384,284 0 0 0 3,728 0 856 114 osh-cpython
30 no-host configure.yash 258,947 0 0 0 3,736 0 849 75 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,658 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-63327f5f
dash dash-308ec8e6
osh-cpython osh-b879c700
osh-native osh-94cfaeee
host label host id
no-host no-host-13226fd6