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 460 22 24.32 1.17
bin-true no-host 678 545 2,219 819 3.27 1.21
configure.cpython no-host 14,928 15,126 28,600 15,268 1.92 1.02
configure.ocaml no-host 3,807 3,763 4,627 3,824 1.22 1.00
configure.tcc no-host 47 42 190 48 4.04 1.03
configure.util-linux no-host 13,952 14,912 31,110 14,478 2.23 1.04
configure.yash no-host 1,811 1,780 2,450 1,831 1.35 1.01
hello-world no-host 2 1 48 3 31.23 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,502 1,103 23,719 3,198 9.48 1.28
bin-true no-host 106,414 65,360 739,844 126,191 6.95 1.19
configure.cpython no-host 2,217,189 2,243,992 6,118,643 2,240,450 2.76 1.01
configure.ocaml no-host 410,405 391,307 638,892 413,586 1.56 1.01
configure.tcc no-host 6,543 5,486 23,133 6,977 3.54 1.07
configure.util-linux no-host 2,103,727 2,259,529 5,293,604 2,011,193 2.52 0.96
configure.yash no-host 256,461 243,624 385,093 258,645 1.50 1.01
hello-world no-host 153 86 3,662 348 23.93 2.27

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.8 8.8 4.88 1.97
bin-true no-host 2.9 1.3 17.3 7.9 6.00 2.73
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.4 20.6 1.00 1.01
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 29.9 30.0 30.1 0.99 1.00
configure.yash no-host 24.5 24.2 24.4 24.2 0.99 0.99
hello-world no-host 2.8 1.6 17.2 6.2 6.24 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,722 3,722 0 684 1,873 1,165 2 0 50,000 0
bin-true no-host 819 1 2 2.7 7.9 154,687 12,991 2,798 11,737 78,342 64,608 5,012 3 50,000 0
configure.cpython no-host 15,268 1 61 15.8 27.4 1,772,603 49,196 28,507 101,770 908,049 762,784 42,399 60 50,000 0
configure.util-linux no-host 14,478 3 62 22.2 30.1 2,703,267 44,765 65,791 126,121 1,320,493 1,256,653 49,081 41 131,582 1
configure.ocaml no-host 3,824 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,627 69,800 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,522 30,522 0 1,599 14,797 14,126 350 0 50,000 0
configure.yash no-host 1,831 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,299 61,833 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,265 64,454 42,662 4,610 54,542 57,113 478 3 85,324 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 7 3 3.4 dash
23 no-host abuild-print-help 460 415 48 21.8 osh-cpython
31 no-host abuild-print-help 22 18 5 8.8 osh-native
1 no-host bin-true 678 505 203 2.9 bash
9 no-host bin-true 545 425 128 1.3 dash
17 no-host bin-true 2,219 1,431 1,043 17.3 osh-cpython
25 no-host bin-true 819 580 253 7.9 osh-native
2 no-host configure.cpython 14,928 9,041 6,275 27.4 bash
10 no-host configure.cpython 15,126 9,050 6,477 27.3 dash
18 no-host configure.cpython 28,600 17,472 12,977 27.4 osh-cpython
26 no-host configure.cpython 15,268 9,123 6,400 27.4 osh-native
4 no-host configure.ocaml 3,807 1,591 1,245 20.4 bash
12 no-host configure.ocaml 3,763 1,584 1,198 20.4 dash
20 no-host configure.ocaml 4,627 2,205 1,630 20.4 osh-cpython
28 no-host configure.ocaml 3,824 1,645 1,218 20.6 osh-native
5 no-host configure.tcc 47 21 27 19.4 bash
13 no-host configure.tcc 42 23 19 19.3 dash
21 no-host configure.tcc 190 129 66 19.3 osh-cpython
29 no-host configure.tcc 48 33 16 19.3 osh-native
3 no-host configure.util-linux 13,952 8,678 5,747 30.3 bash
11 no-host configure.util-linux 14,912 9,262 6,133 29.9 dash
19 no-host configure.util-linux 31,110 20,927 11,270 30.0 osh-cpython
27 no-host configure.util-linux 14,478 8,615 6,051 30.1 osh-native
6 no-host configure.yash 1,811 1,056 758 24.5 bash
14 no-host configure.yash 1,780 1,052 731 24.2 dash
22 no-host configure.yash 2,450 1,561 931 24.4 osh-cpython
30 no-host configure.yash 1,831 1,033 802 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 32 16 17.2 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,502 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,719 0 0 0 8 0 47 16 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,414 0 0 0 8 0 1,990 56 bash
9 no-host bin-true 65,360 0 0 0 8 0 1,993 84 dash
17 no-host bin-true 739,844 0 0 0 8 0 1,997 181 osh-cpython
25 no-host bin-true 126,191 0 0 0 16 0 1,991 127 osh-native
2 no-host configure.cpython 2,217,189 0 0 0 32,928 0 14,427 1,255 bash
10 no-host configure.cpython 2,243,992 0 0 0 32,992 0 14,605 1,140 dash
18 no-host configure.cpython 6,118,643 2 0 0 27,512 0 13,241 1,149 osh-cpython
26 no-host configure.cpython 2,240,450 0 0 0 27,520 0 13,309 997 osh-native
4 no-host configure.ocaml 410,405 0 0 0 5,120 0 1,955 205 bash
12 no-host configure.ocaml 391,307 0 0 0 5,112 0 1,866 243 dash
20 no-host configure.ocaml 638,892 0 0 0 5,112 0 1,859 188 osh-cpython
28 no-host configure.ocaml 413,586 0 0 0 5,120 0 1,933 170 osh-native
5 no-host configure.tcc 6,543 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,133 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,103,727 0 0 0 42,408 0 18,563 1,115 bash
11 no-host configure.util-linux 2,259,529 0 0 0 42,592 0 17,529 1,066 dash
19 no-host configure.util-linux 5,293,604 9 0 0 39,112 0 17,041 1,127 osh-cpython
27 no-host configure.util-linux 2,011,193 1 0 0 39,128 0 17,047 965 osh-native
6 no-host configure.yash 256,461 0 0 0 4,120 0 873 85 bash
14 no-host configure.yash 243,624 0 0 0 3,720 0 868 82 dash
22 no-host configure.yash 385,093 0 0 0 3,728 0 854 95 osh-cpython
30 no-host configure.yash 258,645 0 0 0 3,736 0 852 71 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,662 0 0 0 8 0 7 3 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-88481d82
dash dash-308ec8e6
osh-cpython osh-47e1b8be
osh-native osh-813231d4
host label host id
no-host no-host-1c33b689