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.59 1.17
bin-true no-host 668 549 2,235 820 3.35 1.23
configure.cpython no-host 15,213 15,332 28,714 15,484 1.89 1.02
configure.ocaml no-host 3,870 3,779 4,687 3,860 1.21 1.00
configure.tcc no-host 49 43 193 49 3.97 1.01
configure.util-linux no-host 14,216 15,265 31,541 14,571 2.22 1.03
configure.yash no-host 1,858 1,802 2,487 1,856 1.34 1.00
hello-world no-host 1 1 50 3 34.77 2.00

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,521 1,111 23,243 3,262 9.22 1.29
bin-true no-host 104,401 66,455 745,376 126,149 7.14 1.21
configure.cpython no-host 2,215,120 2,239,558 6,153,555 2,220,229 2.78 1.00
configure.ocaml no-host 410,828 391,040 638,145 413,611 1.55 1.01
configure.tcc no-host 6,577 5,483 23,245 6,979 3.53 1.06
configure.util-linux no-host 2,097,374 2,251,826 5,310,974 1,999,923 2.53 0.95
configure.yash no-host 256,763 244,526 385,046 257,608 1.50 1.00
hello-world no-host 151 80 3,716 349 24.61 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.7 4.85 1.94
bin-true no-host 3.0 1.4 17.4 7.7 5.78 2.57
configure.cpython no-host 27.3 27.3 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.1 19.3 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 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,727 3,727 0 681 1,877 1,169 2 0 50,000 0
bin-true no-host 820 1 2 2.6 7.7 154,692 12,992 2,799 9,731 78,346 66,615 5,012 3 50,000 0
configure.cpython no-host 15,484 1 63 15.0 27.4 1,772,668 49,197 28,508 86,378 908,098 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,571 3 62 21.3 30.1 2,703,404 44,766 65,792 109,640 1,320,596 1,273,168 49,081 41 131,584 1
configure.ocaml no-host 3,860 1 2 2.6 20.4 150,038 11,045 5,138 7,510 71,634 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,856 1 2 2.6 24.4 139,695 7,964 6,600 6,317 70,306 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,270 64,455 42,663 4,552 54,546 57,172 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 17 3 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 455 401 57 21.6 osh-cpython
31 no-host abuild-print-help 23 18 5 8.7 osh-native
1 no-host bin-true 668 497 200 3.0 bash
9 no-host bin-true 549 420 137 1.4 dash
17 no-host bin-true 2,235 1,464 1,027 17.4 osh-cpython
25 no-host bin-true 820 578 257 7.7 osh-native
2 no-host configure.cpython 15,213 9,348 6,244 27.3 bash
10 no-host configure.cpython 15,332 9,281 6,465 27.3 dash
18 no-host configure.cpython 28,714 17,586 12,974 27.4 osh-cpython
26 no-host configure.cpython 15,484 9,052 6,701 27.4 osh-native
4 no-host configure.ocaml 3,870 1,625 1,265 20.6 bash
12 no-host configure.ocaml 3,779 1,693 1,104 20.6 dash
20 no-host configure.ocaml 4,687 2,232 1,657 20.6 osh-cpython
28 no-host configure.ocaml 3,860 1,657 1,243 20.4 osh-native
5 no-host configure.tcc 49 27 22 19.1 bash
13 no-host configure.tcc 43 25 18 19.3 dash
21 no-host configure.tcc 193 140 57 19.3 osh-cpython
29 no-host configure.tcc 49 23 27 19.3 osh-native
3 no-host configure.util-linux 14,216 8,889 5,809 30.1 bash
11 no-host configure.util-linux 15,265 9,257 6,368 30.3 dash
19 no-host configure.util-linux 31,541 21,119 11,508 30.0 osh-cpython
27 no-host configure.util-linux 14,571 8,846 5,915 30.1 osh-native
6 no-host configure.yash 1,858 1,012 847 24.4 bash
14 no-host configure.yash 1,802 1,058 747 24.4 dash
22 no-host configure.yash 2,487 1,550 982 24.4 osh-cpython
30 no-host configure.yash 1,856 1,075 784 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 17 32 17.4 osh-cpython
24 no-host hello-world 3 3 0 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,521 0 0 0 16 0 41 6 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,243 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,262 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 104,401 0 0 0 8 0 1,990 69 bash
9 no-host bin-true 66,455 0 0 0 8 0 1,994 94 dash
17 no-host bin-true 745,376 0 0 0 8 0 1,993 216 osh-cpython
25 no-host bin-true 126,149 0 0 0 16 0 1,994 104 osh-native
2 no-host configure.cpython 2,215,120 0 0 0 32,928 0 14,583 1,196 bash
10 no-host configure.cpython 2,239,558 0 0 0 32,992 0 14,654 1,263 dash
18 no-host configure.cpython 6,153,555 0 0 0 27,512 0 13,324 1,322 osh-cpython
26 no-host configure.cpython 2,220,229 0 0 0 27,520 0 13,297 1,038 osh-native
4 no-host configure.ocaml 410,828 0 0 0 5,120 0 1,951 167 bash
12 no-host configure.ocaml 391,040 0 0 0 5,112 0 1,905 199 dash
20 no-host configure.ocaml 638,145 0 0 0 5,112 0 1,854 197 osh-cpython
28 no-host configure.ocaml 413,611 0 0 0 5,120 0 1,935 163 osh-native
5 no-host configure.tcc 6,577 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 30 dash
21 no-host configure.tcc 23,245 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,097,374 0 0 0 42,400 0 18,621 1,142 bash
11 no-host configure.util-linux 2,251,826 0 0 0 42,592 0 17,538 1,148 dash
19 no-host configure.util-linux 5,310,974 12 0 0 39,112 0 17,074 1,320 osh-cpython
27 no-host configure.util-linux 1,999,923 0 0 0 39,120 0 17,106 1,023 osh-native
6 no-host configure.yash 256,763 0 0 0 4,120 0 869 90 bash
14 no-host configure.yash 244,526 0 0 0 3,720 0 870 79 dash
22 no-host configure.yash 385,046 0 0 0 3,728 0 855 104 osh-cpython
30 no-host configure.yash 257,608 0 0 0 3,736 0 853 81 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,716 0 0 0 8 0 7 1 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-c74a2270
dash dash-308ec8e6
osh-cpython osh-f7175938
osh-native osh-00c2672f
host label host id
no-host no-host-556df3ee