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 9 454 23 24.12 1.20
bin-true no-host 680 543 2,198 817 3.23 1.20
configure.cpython no-host 14,979 15,028 28,385 15,199 1.89 1.01
configure.ocaml no-host 3,780 3,716 4,589 3,811 1.21 1.01
configure.tcc no-host 48 41 189 48 3.98 1.02
configure.util-linux no-host 13,982 14,785 30,862 14,372 2.21 1.03
configure.yash no-host 1,826 1,764 2,437 1,820 1.33 1.00
hello-world no-host 2 1 47 3 31.17 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,529 1,091 23,093 3,200 9.13 1.27
bin-true no-host 105,396 66,469 738,822 129,225 7.01 1.23
configure.cpython no-host 2,218,681 2,240,176 6,096,190 2,228,503 2.75 1.00
configure.ocaml no-host 410,368 390,552 636,250 414,122 1.55 1.01
configure.tcc no-host 6,532 5,484 23,062 7,017 3.53 1.07
configure.util-linux no-host 2,094,812 2,257,611 5,287,428 2,012,854 2.52 0.96
configure.yash no-host 255,479 245,072 384,587 258,177 1.51 1.01
hello-world no-host 151 79 3,645 344 24.14 2.28

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.5 8.9 4.97 2.06
bin-true no-host 2.8 1.4 17.3 8.0 6.29 2.90
configure.cpython no-host 27.5 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.7 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.2 6.0 5.95 2.09

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.2 6.0 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 817 1 2 2.7 8.0 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,199 1 62 15.9 27.4 1,772,935 49,191 28,502 101,923 908,314 762,698 42,399 60 50,000 0
configure.util-linux no-host 14,372 2 60 22.2 30.0 2,703,259 44,760 65,806 126,121 1,320,486 1,256,652 49,081 41 131,612 1
configure.ocaml no-host 3,811 1 2 2.7 20.7 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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 5 4.3 bash
15 no-host abuild-print-help 9 6 4 3.4 dash
23 no-host abuild-print-help 454 417 40 21.5 osh-cpython
31 no-host abuild-print-help 23 12 11 8.9 osh-native
1 no-host bin-true 680 500 213 2.8 bash
9 no-host bin-true 543 418 134 1.4 dash
17 no-host bin-true 2,198 1,484 966 17.3 osh-cpython
25 no-host bin-true 817 574 256 8.0 osh-native
2 no-host configure.cpython 14,979 9,036 6,335 27.5 bash
10 no-host configure.cpython 15,028 9,003 6,423 27.4 dash
18 no-host configure.cpython 28,385 17,390 12,788 27.5 osh-cpython
26 no-host configure.cpython 15,199 8,975 6,479 27.4 osh-native
4 no-host configure.ocaml 3,780 1,609 1,212 20.4 bash
12 no-host configure.ocaml 3,716 1,560 1,173 20.6 dash
20 no-host configure.ocaml 4,589 2,210 1,578 20.6 osh-cpython
28 no-host configure.ocaml 3,811 1,638 1,213 20.7 osh-native
5 no-host configure.tcc 48 22 26 19.3 bash
13 no-host configure.tcc 41 26 16 19.3 dash
21 no-host configure.tcc 189 138 54 19.3 osh-cpython
29 no-host configure.tcc 48 35 14 19.4 osh-native
3 no-host configure.util-linux 13,982 8,742 5,707 30.1 bash
11 no-host configure.util-linux 14,785 9,045 6,236 30.1 dash
19 no-host configure.util-linux 30,862 20,455 11,449 30.0 osh-cpython
27 no-host configure.util-linux 14,372 8,822 5,757 30.0 osh-native
6 no-host configure.yash 1,826 1,030 800 24.2 bash
14 no-host configure.yash 1,764 1,020 746 24.4 dash
22 no-host configure.yash 2,437 1,510 969 24.4 osh-cpython
30 no-host configure.yash 1,820 1,091 734 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 36 12 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,529 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,093 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 105,396 0 0 0 8 0 1,994 167 bash
9 no-host bin-true 66,469 0 0 0 8 0 1,982 34 dash
17 no-host bin-true 738,822 0 0 0 8 0 1,996 126 osh-cpython
25 no-host bin-true 129,225 0 0 0 16 0 1,992 85 osh-native
2 no-host configure.cpython 2,218,681 0 0 0 32,928 0 14,509 1,186 bash
10 no-host configure.cpython 2,240,176 0 0 0 32,992 0 14,713 980 dash
18 no-host configure.cpython 6,096,190 0 0 0 27,512 0 13,189 1,252 osh-cpython
26 no-host configure.cpython 2,228,503 0 0 0 27,520 0 13,340 1,164 osh-native
4 no-host configure.ocaml 410,368 0 0 0 5,120 0 1,948 164 bash
12 no-host configure.ocaml 390,552 0 0 0 5,112 0 1,920 159 dash
20 no-host configure.ocaml 636,250 0 0 0 5,112 0 1,866 183 osh-cpython
28 no-host configure.ocaml 414,122 0 0 0 5,120 0 1,928 165 osh-native
5 no-host configure.tcc 6,532 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,062 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,017 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,094,812 1 0 0 42,400 0 18,657 1,037 bash
11 no-host configure.util-linux 2,257,611 1 0 0 42,584 0 17,471 1,119 dash
19 no-host configure.util-linux 5,287,428 4 0 0 39,120 0 17,063 1,240 osh-cpython
27 no-host configure.util-linux 2,012,854 1 0 0 39,120 0 17,054 1,035 osh-native
6 no-host configure.yash 255,479 0 0 0 4,120 0 880 71 bash
14 no-host configure.yash 245,072 0 0 0 3,720 0 870 97 dash
22 no-host configure.yash 384,587 0 0 0 3,728 0 853 92 osh-cpython
30 no-host configure.yash 258,177 0 0 0 3,736 0 852 70 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,645 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-6bc35843
dash dash-308ec8e6
osh-cpython osh-11937e84
osh-native osh-865e48d9
host label host id
no-host no-host-e54d7702