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 462 22 24.15 1.16
bin-true no-host 672 542 2,240 814 3.33 1.21
configure.cpython no-host 14,821 15,098 28,218 15,057 1.90 1.02
configure.ocaml no-host 3,840 3,762 4,579 3,791 1.19 0.99
configure.tcc no-host 48 42 193 49 4.00 1.01
configure.util-linux no-host 13,891 14,835 30,744 14,255 2.21 1.03
configure.yash no-host 1,831 1,817 2,424 1,824 1.32 1.00
hello-world no-host 2 1 50 3 33.07 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,555 1,108 22,762 3,178 8.91 1.24
bin-true no-host 105,239 65,418 745,483 128,188 7.08 1.22
configure.cpython no-host 2,218,841 2,245,888 6,116,419 2,224,129 2.76 1.00
configure.ocaml no-host 410,374 391,006 637,954 413,563 1.55 1.01
configure.tcc no-host 6,565 5,467 23,218 6,988 3.54 1.06
configure.util-linux no-host 2,104,656 2,263,735 5,303,487 2,001,351 2.52 0.95
configure.yash no-host 255,194 244,590 383,438 257,923 1.50 1.01
hello-world no-host 154 83 3,687 347 23.94 2.25

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 9.0 5.00 2.09
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.5 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.0 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.6 17.4 6.2 6.33 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,732 3,732 0 681 1,882 1,169 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.0 154,697 12,996 2,803 9,731 78,351 66,615 5,012 3 50,000 0
configure.cpython no-host 15,057 1 59 15.0 27.3 1,772,673 49,201 28,512 86,378 908,103 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,255 3 59 21.3 30.0 2,703,409 42,776 65,817 109,640 1,320,601 1,273,168 49,081 41 131,634 1
configure.ocaml no-host 3,791 1 2 2.6 20.6 150,043 11,050 5,143 7,510 71,639 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,532 30,532 0 1,501 14,806 14,225 350 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 24.4 139,700 7,968 6,604 6,317 70,311 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,275 64,459 42,667 4,552 54,551 57,172 478 3 85,334 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 12 8 4.3 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 462 404 59 21.6 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
1 no-host bin-true 672 492 214 3.0 bash
9 no-host bin-true 542 418 132 1.4 dash
17 no-host bin-true 2,240 1,465 1,040 17.4 osh-cpython
25 no-host bin-true 814 575 253 8.0 osh-native
2 no-host configure.cpython 14,821 8,921 6,297 27.4 bash
10 no-host configure.cpython 15,098 9,009 6,514 27.5 dash
18 no-host configure.cpython 28,218 16,974 13,085 27.4 osh-cpython
26 no-host configure.cpython 15,057 8,891 6,433 27.3 osh-native
4 no-host configure.ocaml 3,840 1,646 1,222 20.6 bash
12 no-host configure.ocaml 3,762 1,629 1,150 20.6 dash
20 no-host configure.ocaml 4,579 2,241 1,543 20.6 osh-cpython
28 no-host configure.ocaml 3,791 1,615 1,213 20.6 osh-native
5 no-host configure.tcc 48 19 29 19.3 bash
13 no-host configure.tcc 42 32 10 19.3 dash
21 no-host configure.tcc 193 143 53 19.4 osh-cpython
29 no-host configure.tcc 49 35 14 19.3 osh-native
3 no-host configure.util-linux 13,891 8,845 5,496 30.0 bash
11 no-host configure.util-linux 14,835 9,153 6,148 30.0 dash
19 no-host configure.util-linux 30,744 20,691 11,115 30.1 osh-cpython
27 no-host configure.util-linux 14,255 8,583 5,866 30.0 osh-native
6 no-host configure.yash 1,831 1,042 795 24.4 bash
14 no-host configure.yash 1,817 1,038 782 24.4 dash
22 no-host configure.yash 2,424 1,443 1,023 24.2 osh-cpython
30 no-host configure.yash 1,824 1,069 759 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 50 41 8 17.4 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,555 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,762 0 0 0 8 0 47 72 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 3 osh-native
1 no-host bin-true 105,239 0 0 0 8 0 1,990 163 bash
9 no-host bin-true 65,418 0 0 0 8 0 1,991 36 dash
17 no-host bin-true 745,483 0 0 0 8 0 1,997 90 osh-cpython
25 no-host bin-true 128,188 0 0 0 16 0 1,985 48 osh-native
2 no-host configure.cpython 2,218,841 0 0 0 32,928 0 14,548 1,096 bash
10 no-host configure.cpython 2,245,888 0 0 0 32,992 0 14,630 1,182 dash
18 no-host configure.cpython 6,116,419 1 0 0 27,512 0 13,263 1,155 osh-cpython
26 no-host configure.cpython 2,224,129 0 0 0 27,520 0 13,263 1,211 osh-native
4 no-host configure.ocaml 410,374 0 0 0 5,120 0 1,964 201 bash
12 no-host configure.ocaml 391,006 0 0 0 5,112 0 1,923 142 dash
20 no-host configure.ocaml 637,954 0 0 0 5,112 0 1,853 179 osh-cpython
28 no-host configure.ocaml 413,563 0 0 0 5,120 0 1,924 185 osh-native
5 no-host configure.tcc 6,565 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,467 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,218 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,988 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,104,656 0 0 0 42,400 0 18,559 1,059 bash
11 no-host configure.util-linux 2,263,735 1 0 0 42,584 0 17,470 1,181 dash
19 no-host configure.util-linux 5,303,487 3 0 0 39,112 0 16,970 1,298 osh-cpython
27 no-host configure.util-linux 2,001,351 0 0 0 39,120 0 16,935 1,038 osh-native
6 no-host configure.yash 255,194 0 0 0 4,120 0 870 87 bash
14 no-host configure.yash 244,590 0 0 0 3,720 0 864 91 dash
22 no-host configure.yash 383,438 0 0 0 3,728 0 853 96 osh-cpython
30 no-host configure.yash 257,923 0 0 0 3,736 0 849 77 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,687 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-e8569b57
dash dash-308ec8e6
osh-cpython osh-382e135d
osh-native osh-b9627042
host label host id
no-host no-host-556df3ee