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 20 9 450 22 22.83 1.13
bin-true no-host 671 545 2,247 809 3.35 1.20
configure.cpython no-host 14,784 14,902 28,135 14,977 1.90 1.01
configure.ocaml no-host 3,786 3,704 4,572 3,780 1.21 1.00
configure.tcc no-host 47 41 192 48 4.06 1.02
configure.util-linux no-host 13,764 14,705 30,803 14,225 2.24 1.03
configure.yash no-host 1,785 1,744 2,390 1,803 1.34 1.01
hello-world no-host 2 1 48 3 31.38 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,504 1,108 23,570 3,216 9.41 1.28
bin-true no-host 104,316 66,421 754,396 125,203 7.23 1.20
configure.cpython no-host 2,216,630 2,238,852 6,162,786 2,235,147 2.78 1.01
configure.ocaml no-host 410,630 390,967 639,849 413,261 1.56 1.01
configure.tcc no-host 6,540 5,491 23,319 7,004 3.57 1.07
configure.util-linux no-host 2,097,515 2,261,635 5,351,233 2,019,657 2.55 0.96
configure.yash no-host 255,451 245,091 383,172 259,016 1.50 1.01
hello-world no-host 154 82 3,684 349 23.92 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.3 3.5 21.6 8.8 5.00 2.03
bin-true no-host 3.0 1.3 17.4 7.9 5.78 2.61
configure.cpython no-host 27.4 27.4 27.4 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.4 19.3 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.0 30.0 30.3 30.1 1.01 1.00
configure.yash no-host 24.5 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.6 17.4 6.3 6.05 2.18

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.3 3,726 3,726 0 684 1,876 1,166 2 0 50,000 0
bin-true no-host 809 1 2 2.7 7.9 154,691 12,991 2,798 11,737 78,345 64,609 5,012 3 50,000 0
configure.cpython no-host 14,977 1 57 15.8 27.4 1,772,667 49,196 28,507 101,770 908,097 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,225 3 58 22.2 30.1 2,703,403 44,765 65,811 126,121 1,320,595 1,256,687 49,081 41 131,622 1
configure.ocaml no-host 3,780 1 2 2.7 20.4 150,037 11,044 5,137 8,602 71,633 69,802 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,526 30,526 0 1,599 14,800 14,127 350 0 50,000 0
configure.yash no-host 1,803 1 2 2.6 24.4 139,694 7,963 6,599 7,554 70,305 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,269 64,454 42,662 4,610 54,545 57,114 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 20 13 7 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 450 402 52 21.6 osh-cpython
31 no-host abuild-print-help 22 17 6 8.8 osh-native
1 no-host bin-true 671 488 212 3.0 bash
9 no-host bin-true 545 418 136 1.3 dash
17 no-host bin-true 2,247 1,498 1,008 17.4 osh-cpython
25 no-host bin-true 809 576 249 7.9 osh-native
2 no-host configure.cpython 14,784 8,741 6,436 27.4 bash
10 no-host configure.cpython 14,902 8,894 6,430 27.4 dash
18 no-host configure.cpython 28,135 17,204 12,755 27.4 osh-cpython
26 no-host configure.cpython 14,977 8,883 6,364 27.4 osh-native
4 no-host configure.ocaml 3,786 1,595 1,227 20.6 bash
12 no-host configure.ocaml 3,704 1,491 1,232 20.6 dash
20 no-host configure.ocaml 4,572 2,127 1,648 20.6 osh-cpython
28 no-host configure.ocaml 3,780 1,589 1,230 20.4 osh-native
5 no-host configure.tcc 47 33 14 19.4 bash
13 no-host configure.tcc 41 24 17 19.3 dash
21 no-host configure.tcc 192 141 54 19.4 osh-cpython
29 no-host configure.tcc 48 29 19 19.4 osh-native
3 no-host configure.util-linux 13,764 8,762 5,471 30.0 bash
11 no-host configure.util-linux 14,705 9,011 6,181 30.0 dash
19 no-host configure.util-linux 30,803 20,521 11,370 30.3 osh-cpython
27 no-host configure.util-linux 14,225 8,616 5,820 30.1 osh-native
6 no-host configure.yash 1,785 1,085 707 24.5 bash
14 no-host configure.yash 1,744 988 760 24.2 dash
22 no-host configure.yash 2,390 1,449 983 24.4 osh-cpython
30 no-host configure.yash 1,803 1,055 752 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 36 12 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,504 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,570 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,216 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,316 0 0 0 8 0 1,993 58 bash
9 no-host bin-true 66,421 0 0 0 8 0 1,989 103 dash
17 no-host bin-true 754,396 0 0 0 8 0 1,996 334 osh-cpython
25 no-host bin-true 125,203 0 0 0 16 0 1,986 66 osh-native
2 no-host configure.cpython 2,216,630 0 0 0 32,928 0 14,549 1,205 bash
10 no-host configure.cpython 2,238,852 0 0 0 32,992 0 14,626 1,091 dash
18 no-host configure.cpython 6,162,786 0 0 0 27,512 0 13,295 1,204 osh-cpython
26 no-host configure.cpython 2,235,147 0 0 0 27,520 0 13,359 1,032 osh-native
4 no-host configure.ocaml 410,630 0 0 0 5,120 0 1,964 158 bash
12 no-host configure.ocaml 390,967 0 0 0 5,112 0 1,923 160 dash
20 no-host configure.ocaml 639,849 1 0 0 5,112 0 1,864 211 osh-cpython
28 no-host configure.ocaml 413,261 0 0 0 5,120 0 1,934 168 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,319 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,097,515 1 0 0 42,400 0 18,521 951 bash
11 no-host configure.util-linux 2,261,635 0 0 0 42,584 0 17,384 1,145 dash
19 no-host configure.util-linux 5,351,233 11 0 0 39,112 0 16,986 1,402 osh-cpython
27 no-host configure.util-linux 2,019,657 4 0 0 39,120 0 17,154 1,028 osh-native
6 no-host configure.yash 255,451 0 0 0 4,120 0 871 101 bash
14 no-host configure.yash 245,091 0 0 0 3,720 0 867 72 dash
22 no-host configure.yash 383,172 0 0 0 3,728 0 858 75 osh-cpython
30 no-host configure.yash 259,016 0 0 0 3,736 0 852 68 osh-native
0 no-host hello-world 154 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,684 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-2a8e9ceb
dash dash-308ec8e6
osh-cpython osh-79199643
osh-native osh-b0bb3a14
host label host id
no-host no-host-1c33b689