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 461 23 24.46 1.20
bin-true no-host 678 540 2,214 820 3.27 1.21
configure.cpython no-host 14,930 15,015 28,331 15,226 1.90 1.02
configure.ocaml no-host 3,785 3,722 4,616 3,807 1.22 1.01
configure.tcc no-host 47 42 193 48 4.12 1.03
configure.util-linux no-host 13,979 14,848 30,940 14,378 2.21 1.03
configure.yash no-host 1,799 1,753 2,430 1,812 1.35 1.01
hello-world no-host 2 1 48 3 31.68 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,550 1,106 23,431 3,226 9.19 1.27
bin-true no-host 104,350 65,479 746,772 128,240 7.16 1.23
configure.cpython no-host 2,218,820 2,241,276 6,141,443 2,238,489 2.77 1.01
configure.ocaml no-host 410,271 390,985 640,881 413,740 1.56 1.01
configure.tcc no-host 6,581 5,495 23,283 6,996 3.54 1.06
configure.util-linux no-host 2,094,767 2,256,421 5,323,564 2,020,463 2.54 0.96
configure.yash no-host 255,132 245,006 384,835 258,194 1.51 1.01
hello-world no-host 154 83 3,681 348 23.90 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.5 3.5 21.6 8.8 4.85 1.97
bin-true no-host 3.0 1.6 17.4 8.0 5.78 2.65
configure.cpython no-host 27.5 27.1 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.1 19.3 19.3 19.3 1.01 1.01
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.5 24.2 1.01 1.00
hello-world no-host 2.9 1.4 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 820 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,226 2 60 15.8 27.4 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,378 2 59 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,807 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 48 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,812 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 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 17 2 4.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 461 407 57 21.6 osh-cpython
31 no-host abuild-print-help 23 15 8 8.8 osh-native
1 no-host bin-true 678 522 187 3.0 bash
9 no-host bin-true 540 419 130 1.6 dash
17 no-host bin-true 2,214 1,456 1,012 17.4 osh-cpython
25 no-host bin-true 820 582 252 8.0 osh-native
2 no-host configure.cpython 14,930 8,850 6,474 27.5 bash
10 no-host configure.cpython 15,015 9,032 6,399 27.1 dash
18 no-host configure.cpython 28,331 17,118 13,026 27.4 osh-cpython
26 no-host configure.cpython 15,226 9,035 6,457 27.4 osh-native
4 no-host configure.ocaml 3,785 1,640 1,184 20.6 bash
12 no-host configure.ocaml 3,722 1,550 1,191 20.6 dash
20 no-host configure.ocaml 4,616 2,215 1,604 20.4 osh-cpython
28 no-host configure.ocaml 3,807 1,666 1,179 20.6 osh-native
5 no-host configure.tcc 47 31 17 19.1 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 193 122 74 19.3 osh-cpython
29 no-host configure.tcc 48 29 19 19.3 osh-native
3 no-host configure.util-linux 13,979 8,782 5,655 30.1 bash
11 no-host configure.util-linux 14,848 9,030 6,306 30.1 dash
19 no-host configure.util-linux 30,940 20,554 11,466 30.3 osh-cpython
27 no-host configure.util-linux 14,378 8,727 5,838 30.1 osh-native
6 no-host configure.yash 1,799 1,070 734 24.2 bash
14 no-host configure.yash 1,753 962 794 24.4 dash
22 no-host configure.yash 2,430 1,457 1,018 24.5 osh-cpython
30 no-host configure.yash 1,812 1,142 674 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 48 28 20 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,550 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,431 0 0 0 8 0 47 15 osh-cpython
31 no-host abuild-print-help 3,226 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 104,350 0 0 0 8 0 1,990 198 bash
9 no-host bin-true 65,479 0 0 0 8 0 1,983 46 dash
17 no-host bin-true 746,772 0 0 0 8 0 1,997 168 osh-cpython
25 no-host bin-true 128,240 0 0 0 16 0 1,990 59 osh-native
2 no-host configure.cpython 2,218,820 0 0 0 32,928 0 14,552 1,235 bash
10 no-host configure.cpython 2,241,276 0 0 0 32,992 0 14,652 1,144 dash
18 no-host configure.cpython 6,141,443 1 0 0 27,512 0 13,211 1,149 osh-cpython
26 no-host configure.cpython 2,238,489 0 0 0 27,520 0 13,360 1,114 osh-native
4 no-host configure.ocaml 410,271 0 0 0 5,120 0 1,947 168 bash
12 no-host configure.ocaml 390,985 0 0 0 5,112 0 1,924 148 dash
20 no-host configure.ocaml 640,881 0 0 0 5,112 0 1,866 171 osh-cpython
28 no-host configure.ocaml 413,740 0 0 0 5,120 0 1,931 172 osh-native
5 no-host configure.tcc 6,581 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,283 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,094,767 1 0 0 42,408 0 18,727 1,115 bash
11 no-host configure.util-linux 2,256,421 1 0 0 42,592 0 17,421 1,218 dash
19 no-host configure.util-linux 5,323,564 14 0 0 39,112 0 17,076 1,291 osh-cpython
27 no-host configure.util-linux 2,020,463 1 0 0 39,120 0 17,071 1,052 osh-native
6 no-host configure.yash 255,132 0 0 0 4,120 0 872 76 bash
14 no-host configure.yash 245,006 0 0 0 3,720 0 871 76 dash
22 no-host configure.yash 384,835 0 0 0 3,728 0 858 83 osh-cpython
30 no-host configure.yash 258,194 0 0 0 3,736 0 851 99 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 1 dash
16 no-host hello-world 3,681 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-d94bace0
dash dash-308ec8e6
osh-cpython osh-c70f61ab
osh-native osh-3a7f3c39
host label host id
no-host no-host-556df3ee