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 446 23 23.47 1.19
bin-true no-host 676 540 2,213 812 3.28 1.20
configure.cpython no-host 14,931 14,979 28,353 15,204 1.90 1.02
configure.ocaml no-host 3,810 3,717 4,595 3,807 1.21 1.00
configure.tcc no-host 47 41 194 49 4.11 1.03
configure.util-linux no-host 13,912 14,804 31,099 14,368 2.24 1.03
configure.yash no-host 1,805 1,761 2,412 1,827 1.34 1.01
hello-world no-host 1 1 47 3 32.01 1.92

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,103 23,462 3,197 9.20 1.25
bin-true no-host 105,299 66,381 757,668 125,167 7.20 1.19
configure.cpython no-host 2,222,026 2,248,441 6,163,858 2,238,798 2.77 1.01
configure.ocaml no-host 411,020 391,693 641,982 413,287 1.56 1.01
configure.tcc no-host 6,549 5,488 23,334 6,979 3.56 1.07
configure.util-linux no-host 2,093,396 2,266,155 5,356,119 2,019,588 2.56 0.96
configure.yash no-host 256,868 245,171 384,988 259,303 1.50 1.01
hello-world no-host 153 84 3,684 348 24.08 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.5 21.8 8.9 4.88 2.00
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.1 27.4 27.5 27.4 1.01 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.9 1.01 1.02
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.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.8 1.4 17.3 6.3 6.29 2.29

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 684 1,877 1,166 2 0 50,000 0
bin-true no-host 812 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,204 1 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,368 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,807 1 2 2.7 20.9 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,827 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 23 1 2 2.8 8.9 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 13 7 4.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 446 406 43 21.8 osh-cpython
31 no-host abuild-print-help 23 17 6 8.9 osh-native
1 no-host bin-true 676 489 218 3.0 bash
9 no-host bin-true 540 411 138 1.4 dash
17 no-host bin-true 2,213 1,415 1,054 17.4 osh-cpython
25 no-host bin-true 812 591 239 8.1 osh-native
2 no-host configure.cpython 14,931 9,081 6,255 27.1 bash
10 no-host configure.cpython 14,979 9,069 6,328 27.4 dash
18 no-host configure.cpython 28,353 17,239 12,952 27.5 osh-cpython
26 no-host configure.cpython 15,204 9,193 6,279 27.4 osh-native
4 no-host configure.ocaml 3,810 1,580 1,262 20.4 bash
12 no-host configure.ocaml 3,717 1,546 1,193 20.6 dash
20 no-host configure.ocaml 4,595 2,227 1,573 20.6 osh-cpython
28 no-host configure.ocaml 3,807 1,678 1,170 20.9 osh-native
5 no-host configure.tcc 47 34 14 19.3 bash
13 no-host configure.tcc 41 30 11 19.3 dash
21 no-host configure.tcc 194 145 53 19.4 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
3 no-host configure.util-linux 13,912 8,792 5,586 30.0 bash
11 no-host configure.util-linux 14,804 9,111 6,185 30.0 dash
19 no-host configure.util-linux 31,099 20,954 11,233 30.1 osh-cpython
27 no-host configure.util-linux 14,368 8,633 5,932 30.1 osh-native
6 no-host configure.yash 1,805 1,074 737 24.4 bash
14 no-host configure.yash 1,761 989 776 24.4 dash
22 no-host configure.yash 2,412 1,438 1,015 24.4 osh-cpython
30 no-host configure.yash 1,827 1,038 792 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 28 19 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,550 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,462 0 0 0 8 0 47 5 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 105,299 0 0 0 8 0 1,987 95 bash
9 no-host bin-true 66,381 0 0 0 8 0 1,984 38 dash
17 no-host bin-true 757,668 0 0 0 8 0 1,989 107 osh-cpython
25 no-host bin-true 125,167 0 0 0 16 0 1,988 52 osh-native
2 no-host configure.cpython 2,222,026 0 0 0 32,928 0 14,482 1,191 bash
10 no-host configure.cpython 2,248,441 0 0 0 32,992 0 14,577 1,083 dash
18 no-host configure.cpython 6,163,858 0 0 0 27,512 0 13,329 1,107 osh-cpython
26 no-host configure.cpython 2,238,798 0 0 0 27,520 0 13,287 1,224 osh-native
4 no-host configure.ocaml 411,020 0 0 0 5,120 0 1,961 173 bash
12 no-host configure.ocaml 391,693 0 0 0 5,112 0 1,933 156 dash
20 no-host configure.ocaml 641,982 0 0 0 5,112 0 1,862 184 osh-cpython
28 no-host configure.ocaml 413,287 0 0 0 5,120 0 1,934 139 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,334 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,093,396 0 0 0 42,400 0 18,615 1,176 bash
11 no-host configure.util-linux 2,266,155 1 0 0 42,584 0 17,432 1,234 dash
19 no-host configure.util-linux 5,356,119 14 0 0 39,120 0 17,056 1,227 osh-cpython
27 no-host configure.util-linux 2,019,588 1 0 0 39,128 0 17,040 1,051 osh-native
6 no-host configure.yash 256,868 0 0 0 4,120 0 869 85 bash
14 no-host configure.yash 245,171 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 384,988 0 0 0 3,728 0 856 103 osh-cpython
30 no-host configure.yash 259,303 0 0 0 3,736 0 850 140 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,684 0 0 0 8 0 7 6 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-701166cd
dash dash-308ec8e6
osh-cpython osh-3e10b175
osh-native osh-b682b049
host label host id
no-host no-host-1c33b689