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 443 22 23.35 1.17
bin-true no-host 676 540 2,191 826 3.24 1.22
configure.cpython no-host 14,958 15,006 28,103 15,180 1.88 1.01
configure.ocaml no-host 3,807 3,719 4,583 3,829 1.20 1.01
configure.tcc no-host 48 41 191 48 4.00 1.02
configure.util-linux no-host 13,941 14,825 30,796 14,340 2.21 1.03
configure.yash no-host 1,802 1,773 2,420 1,819 1.34 1.01
hello-world no-host 2 1 47 3 30.74 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,511 1,138 22,993 3,207 9.16 1.28
bin-true no-host 105,342 66,388 728,084 128,139 6.91 1.22
configure.cpython no-host 2,220,210 2,251,989 6,067,465 2,227,328 2.73 1.00
configure.ocaml no-host 410,045 391,041 634,554 413,040 1.55 1.01
configure.tcc no-host 6,521 5,464 22,955 6,963 3.52 1.07
configure.util-linux no-host 2,102,304 2,262,229 5,286,733 2,013,072 2.51 0.96
configure.yash no-host 256,783 245,028 383,327 258,676 1.49 1.01
hello-world no-host 153 80 3,650 343 23.86 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.5 21.6 9.0 4.85 2.03
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.3 27.3 27.4 27.4 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.4 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.3 17.2 6.3 6.24 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.2 6.3 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 826 1 2 2.7 7.9 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,180 1 61 15.9 27.4 1,772,935 49,191 28,502 101,923 908,314 762,698 42,399 60 50,000 0
configure.util-linux no-host 14,340 2 58 22.2 30.3 2,703,259 44,760 65,806 126,121 1,320,486 1,256,652 49,081 41 131,612 1
configure.ocaml no-host 3,829 1 2 2.7 20.4 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,819 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 443 413 33 21.6 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
1 no-host bin-true 676 502 208 2.9 bash
9 no-host bin-true 540 412 139 1.4 dash
17 no-host bin-true 2,191 1,476 964 17.3 osh-cpython
25 no-host bin-true 826 563 278 7.9 osh-native
2 no-host configure.cpython 14,958 9,132 6,208 27.3 bash
10 no-host configure.cpython 15,006 8,986 6,437 27.3 dash
18 no-host configure.cpython 28,103 16,994 12,860 27.4 osh-cpython
26 no-host configure.cpython 15,180 8,783 6,660 27.4 osh-native
4 no-host configure.ocaml 3,807 1,602 1,244 20.6 bash
12 no-host configure.ocaml 3,719 1,495 1,244 20.6 dash
20 no-host configure.ocaml 4,583 2,190 1,595 20.6 osh-cpython
28 no-host configure.ocaml 3,829 1,615 1,252 20.4 osh-native
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 41 23 19 19.3 dash
21 no-host configure.tcc 191 120 74 19.3 osh-cpython
29 no-host configure.tcc 48 34 15 19.4 osh-native
3 no-host configure.util-linux 13,941 8,730 5,670 30.3 bash
11 no-host configure.util-linux 14,825 9,209 6,108 30.3 dash
19 no-host configure.util-linux 30,796 20,311 11,529 30.1 osh-cpython
27 no-host configure.util-linux 14,340 8,577 5,950 30.3 osh-native
6 no-host configure.yash 1,802 1,083 726 24.5 bash
14 no-host configure.yash 1,773 1,030 746 24.4 dash
22 no-host configure.yash 2,420 1,488 973 24.2 osh-cpython
30 no-host configure.yash 1,819 1,093 731 24.2 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 47 30 17 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,511 0 0 0 16 0 41 6 bash
15 no-host abuild-print-help 1,138 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,993 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,342 0 0 0 8 0 1,995 89 bash
9 no-host bin-true 66,388 0 0 0 8 0 1,985 49 dash
17 no-host bin-true 728,084 0 0 0 8 0 1,995 244 osh-cpython
25 no-host bin-true 128,139 0 0 0 16 0 1,988 144 osh-native
2 no-host configure.cpython 2,220,210 0 0 0 32,928 0 14,406 1,179 bash
10 no-host configure.cpython 2,251,989 0 0 0 32,992 0 14,608 1,025 dash
18 no-host configure.cpython 6,067,465 1 0 0 27,512 0 13,267 1,191 osh-cpython
26 no-host configure.cpython 2,227,328 0 0 0 27,520 0 13,294 1,154 osh-native
4 no-host configure.ocaml 410,045 0 0 0 5,120 0 1,960 161 bash
12 no-host configure.ocaml 391,041 0 0 0 5,112 0 1,919 163 dash
20 no-host configure.ocaml 634,554 0 0 0 5,112 0 1,867 183 osh-cpython
28 no-host configure.ocaml 413,040 0 0 0 5,120 0 1,936 152 osh-native
5 no-host configure.tcc 6,521 0 0 0 104 0 49 11 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 22,955 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,102,304 1 0 0 42,400 0 18,597 1,143 bash
11 no-host configure.util-linux 2,262,229 2 0 0 42,584 0 17,438 1,073 dash
19 no-host configure.util-linux 5,286,733 11 0 0 39,120 0 17,028 1,424 osh-cpython
27 no-host configure.util-linux 2,013,072 0 0 0 39,120 0 17,041 1,053 osh-native
6 no-host configure.yash 256,783 0 0 0 4,120 0 874 79 bash
14 no-host configure.yash 245,028 0 0 0 3,720 0 870 74 dash
22 no-host configure.yash 383,327 0 0 0 3,728 0 860 78 osh-cpython
30 no-host configure.yash 258,676 0 0 0 3,736 0 853 79 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,650 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-2778ac41
dash dash-308ec8e6
osh-cpython osh-d0743638
osh-native osh-c8756a3f
host label host id
no-host no-host-e54d7702