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 10 459 23 22.43 1.11
bin-true no-host 680 563 2,221 821 3.27 1.21
configure.cpython no-host 15,260 15,437 29,383 15,625 1.93 1.02
configure.ocaml no-host 3,893 3,808 4,708 3,881 1.21 1.00
configure.tcc no-host 48 42 191 50 4.00 1.04
configure.util-linux no-host 14,297 15,126 31,440 14,673 2.20 1.03
configure.yash no-host 1,842 1,802 2,485 1,868 1.35 1.01
hello-world no-host 1 1 48 3 31.89 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,544 1,117 22,819 3,216 8.97 1.26
bin-true no-host 104,345 66,457 727,736 127,205 6.97 1.22
configure.cpython no-host 2,214,866 2,246,903 6,046,199 2,235,244 2.73 1.01
configure.ocaml no-host 410,590 391,080 632,371 413,217 1.54 1.01
configure.tcc no-host 6,545 5,487 22,902 6,984 3.50 1.07
configure.util-linux no-host 2,101,772 2,256,889 5,284,744 2,012,873 2.51 0.96
configure.yash no-host 255,607 245,165 381,923 259,233 1.49 1.01
hello-world no-host 152 78 3,652 343 24.03 2.26

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 3.0 1.4 17.3 7.7 5.74 2.57
configure.cpython no-host 27.4 27.5 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.1 30.1 30.4 1.00 1.01
configure.yash no-host 24.2 24.4 24.4 24.5 1.01 1.01
hello-world no-host 2.8 1.3 17.3 6.3 6.29 2.29

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.3 3,710 3,710 0 681 1,865 1,164 2 0 50,000 0
bin-true no-host 821 1 2 2.7 7.7 154,656 12,889 2,791 11,730 78,317 64,609 5,012 3 50,000 0
configure.cpython no-host 15,625 1 66 15.9 27.4 1,769,350 44,560 28,499 101,923 904,763 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,673 3 63 22.2 30.4 2,698,087 29,091 65,783 126,121 1,315,368 1,256,598 49,081 41 131,566 1
configure.ocaml no-host 3,881 1 2 2.7 20.6 149,273 11,026 5,129 8,602 71,056 69,615 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,424 30,424 0 1,599 14,700 14,125 350 0 50,000 0
configure.yash no-host 1,868 1 2 2.6 24.5 139,384 7,140 6,531 7,554 69,998 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,050 64,417 42,656 4,601 54,332 57,117 478 3 85,312 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 11 10 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 459 415 48 21.5 osh-cpython
31 no-host abuild-print-help 23 17 7 8.9 osh-native
1 no-host bin-true 680 503 204 3.0 bash
9 no-host bin-true 563 424 150 1.4 dash
17 no-host bin-true 2,221 1,488 988 17.3 osh-cpython
25 no-host bin-true 821 570 264 7.7 osh-native
2 no-host configure.cpython 15,260 9,268 6,398 27.4 bash
10 no-host configure.cpython 15,437 9,219 6,648 27.5 dash
18 no-host configure.cpython 29,383 17,822 13,406 27.3 osh-cpython
26 no-host configure.cpython 15,625 9,306 6,581 27.4 osh-native
4 no-host configure.ocaml 3,893 1,622 1,301 20.6 bash
12 no-host configure.ocaml 3,808 1,629 1,198 20.4 dash
20 no-host configure.ocaml 4,708 2,296 1,613 20.6 osh-cpython
28 no-host configure.ocaml 3,881 1,705 1,215 20.6 osh-native
5 no-host configure.tcc 48 30 18 19.4 bash
13 no-host configure.tcc 42 29 14 19.1 dash
21 no-host configure.tcc 191 139 56 19.3 osh-cpython
29 no-host configure.tcc 50 25 25 19.4 osh-native
3 no-host configure.util-linux 14,297 8,987 5,793 30.0 bash
11 no-host configure.util-linux 15,126 9,353 6,270 30.1 dash
19 no-host configure.util-linux 31,440 20,933 11,583 30.1 osh-cpython
27 no-host configure.util-linux 14,673 8,961 5,909 30.4 osh-native
6 no-host configure.yash 1,842 1,027 823 24.2 bash
14 no-host configure.yash 1,802 1,014 792 24.4 dash
22 no-host configure.yash 2,485 1,475 1,053 24.4 osh-cpython
30 no-host configure.yash 1,868 1,055 817 24.5 osh-native
0 no-host hello-world 1 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 48 36 12 17.3 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,544 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 22,819 0 0 0 8 0 47 12 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,345 0 0 0 8 0 1,988 49 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,977 124 dash
17 no-host bin-true 727,736 0 0 0 8 0 1,997 126 osh-cpython
25 no-host bin-true 127,205 0 0 0 16 0 1,987 54 osh-native
2 no-host configure.cpython 2,214,866 0 0 0 32,928 0 14,506 1,003 bash
10 no-host configure.cpython 2,246,903 0 0 0 32,992 0 14,599 1,156 dash
18 no-host configure.cpython 6,046,199 1 0 0 27,512 0 13,257 1,357 osh-cpython
26 no-host configure.cpython 2,235,244 0 0 0 27,520 0 13,268 1,103 osh-native
4 no-host configure.ocaml 410,590 0 0 0 5,120 0 1,960 187 bash
12 no-host configure.ocaml 391,080 0 0 0 5,112 0 1,897 134 dash
20 no-host configure.ocaml 632,371 0 0 0 5,112 0 1,861 278 osh-cpython
28 no-host configure.ocaml 413,217 0 0 0 5,120 0 1,931 170 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,902 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 47 11 osh-native
3 no-host configure.util-linux 2,101,772 1 0 0 42,400 0 18,566 1,098 bash
11 no-host configure.util-linux 2,256,889 0 0 0 42,584 0 17,491 1,098 dash
19 no-host configure.util-linux 5,284,744 9 0 0 39,112 0 17,059 1,240 osh-cpython
27 no-host configure.util-linux 2,012,873 1 0 0 39,120 0 17,038 980 osh-native
6 no-host configure.yash 255,607 0 0 0 4,120 0 868 80 bash
14 no-host configure.yash 245,165 0 0 0 3,728 0 867 77 dash
22 no-host configure.yash 381,923 0 0 0 3,728 0 859 114 osh-cpython
30 no-host configure.yash 259,233 0 0 0 3,736 0 853 93 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,652 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1a5af737
dash dash-308ec8e6
osh-cpython osh-63ae8471
osh-native osh-db43cfc0
host label host id
no-host no-host-e54d7702