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 456 22 23.81 1.17
bin-true no-host 671 539 2,259 801 3.37 1.19
configure.cpython no-host 14,921 14,985 28,475 15,140 1.91 1.01
configure.ocaml no-host 3,792 3,727 4,596 3,809 1.21 1.00
configure.tcc no-host 48 41 192 49 4.03 1.03
configure.util-linux no-host 13,881 14,840 30,998 14,427 2.23 1.04
configure.yash no-host 1,814 1,750 2,428 1,821 1.34 1.00
hello-world no-host 2 1 48 3 32.05 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,543 1,097 23,619 3,181 9.29 1.25
bin-true no-host 107,345 66,415 755,040 125,114 7.03 1.17
configure.cpython no-host 2,227,949 2,242,263 6,133,541 2,232,377 2.75 1.00
configure.ocaml no-host 410,679 390,704 639,787 413,372 1.56 1.01
configure.tcc no-host 6,547 5,481 23,278 6,997 3.56 1.07
configure.util-linux no-host 2,094,016 2,269,674 5,335,217 2,019,618 2.55 0.96
configure.yash no-host 255,689 244,487 384,540 258,045 1.50 1.01
hello-world no-host 155 85 3,690 347 23.81 2.24

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.9 9.0 4.91 2.03
bin-true no-host 2.9 1.6 17.6 8.1 6.09 2.82
configure.cpython no-host 27.4 27.4 27.4 27.5 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.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.9 1.6 17.4 6.2 6.05 2.14

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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 801 1 2 2.7 8.1 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,140 1 59 15.8 27.5 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,427 3 60 22.2 30.1 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,809 1 2 2.7 20.4 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,821 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,270 64,455 42,663 4,610 54,546 57,114 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 16 3 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 456 419 39 21.9 osh-cpython
31 no-host abuild-print-help 22 21 1 9.0 osh-native
1 no-host bin-true 671 496 208 2.9 bash
9 no-host bin-true 539 404 142 1.6 dash
17 no-host bin-true 2,259 1,439 1,080 17.6 osh-cpython
25 no-host bin-true 801 577 239 8.1 osh-native
2 no-host configure.cpython 14,921 9,023 6,293 27.4 bash
10 no-host configure.cpython 14,985 8,999 6,402 27.4 dash
18 no-host configure.cpython 28,475 17,276 13,046 27.4 osh-cpython
26 no-host configure.cpython 15,140 8,861 6,542 27.5 osh-native
4 no-host configure.ocaml 3,792 1,575 1,250 20.6 bash
12 no-host configure.ocaml 3,727 1,621 1,123 20.6 dash
20 no-host configure.ocaml 4,596 2,223 1,574 20.6 osh-cpython
28 no-host configure.ocaml 3,809 1,644 1,205 20.4 osh-native
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 41 25 17 19.3 dash
21 no-host configure.tcc 192 142 53 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
3 no-host configure.util-linux 13,881 8,694 5,658 30.1 bash
11 no-host configure.util-linux 14,840 9,160 6,174 30.1 dash
19 no-host configure.util-linux 30,998 20,588 11,494 30.3 osh-cpython
27 no-host configure.util-linux 14,427 8,694 5,919 30.1 osh-native
6 no-host configure.yash 1,814 988 835 24.2 bash
14 no-host configure.yash 1,750 976 778 24.4 dash
22 no-host configure.yash 2,428 1,509 962 24.2 osh-cpython
30 no-host configure.yash 1,821 1,031 795 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 40 8 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,543 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,619 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,345 0 0 0 8 0 1,997 96 bash
9 no-host bin-true 66,415 0 0 0 8 0 1,985 43 dash
17 no-host bin-true 755,040 0 0 0 8 0 1,998 414 osh-cpython
25 no-host bin-true 125,114 0 0 0 16 0 1,983 51 osh-native
2 no-host configure.cpython 2,227,949 0 0 0 32,928 0 14,450 1,056 bash
10 no-host configure.cpython 2,242,263 0 0 0 32,992 0 14,611 1,063 dash
18 no-host configure.cpython 6,133,541 2 0 0 27,512 0 13,328 1,227 osh-cpython
26 no-host configure.cpython 2,232,377 0 0 0 27,520 0 13,327 1,196 osh-native
4 no-host configure.ocaml 410,679 0 0 0 5,120 0 1,956 161 bash
12 no-host configure.ocaml 390,704 0 0 0 5,112 0 1,881 150 dash
20 no-host configure.ocaml 639,787 1 0 0 5,112 0 1,861 186 osh-cpython
28 no-host configure.ocaml 413,372 0 0 0 5,120 0 1,933 162 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,278 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,094,016 0 0 0 42,400 0 18,625 1,060 bash
11 no-host configure.util-linux 2,269,674 2 0 0 42,584 0 17,496 969 dash
19 no-host configure.util-linux 5,335,217 6 0 0 39,112 0 17,139 1,198 osh-cpython
27 no-host configure.util-linux 2,019,618 2 0 0 39,128 0 17,071 1,012 osh-native
6 no-host configure.yash 255,689 0 0 0 4,120 0 867 90 bash
14 no-host configure.yash 244,487 0 0 0 3,720 0 866 80 dash
22 no-host configure.yash 384,540 0 0 0 3,728 0 858 101 osh-cpython
30 no-host configure.yash 258,045 0 0 0 3,736 0 848 91 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,690 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 0 1 osh-native

Shell and Host

shell label shell id
bash bash-2e9e3139
dash dash-308ec8e6
osh-cpython osh-4c5c62b6
osh-native osh-45ff73ee
host label host id
no-host no-host-1c33b689