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 453 21 24.25 1.12
bin-true no-host 674 542 2,229 810 3.31 1.20
configure.cpython no-host 14,958 14,989 28,238 15,153 1.89 1.01
configure.ocaml no-host 3,773 3,705 4,597 3,803 1.22 1.01
configure.tcc no-host 47 41 192 48 4.06 1.02
configure.util-linux no-host 13,911 14,748 30,913 14,228 2.22 1.02
configure.yash no-host 1,801 1,756 2,424 1,820 1.35 1.01
hello-world no-host 1 1 48 3 32.43 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,515 1,139 23,447 3,120 9.32 1.24
bin-true no-host 104,352 66,471 753,639 127,170 7.22 1.22
configure.cpython no-host 2,228,223 2,249,271 6,143,270 2,227,566 2.76 1.00
configure.ocaml no-host 410,436 391,199 640,091 412,817 1.56 1.01
configure.tcc no-host 6,545 5,478 23,279 6,960 3.56 1.06
configure.util-linux no-host 2,092,008 2,252,979 5,327,519 2,005,441 2.55 0.96
configure.yash no-host 256,167 244,452 384,932 258,692 1.50 1.01
hello-world no-host 153 83 3,680 338 24.05 2.21

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.3 3.4 21.6 8.1 5.00 1.88
bin-true no-host 3.0 1.4 17.4 7.7 5.78 2.57
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.4 30.3 30.0 30.3 0.99 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.8 1.6 17.3 5.8 6.29 2.10

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 5.8 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 810 1 2 2.7 7.7 154,692 12,780 2,737 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,153 1 59 15.8 27.4 1,772,668 44,567 28,446 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,228 2 58 22.2 30.3 2,703,404 45,041 65,750 126,121 1,320,596 1,256,687 49,081 41 131,500 1
configure.ocaml no-host 3,803 0 2 2.7 20.6 150,038 10,983 5,076 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.4 139,695 7,902 6,538 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.1 116,270 64,393 42,601 4,610 54,546 57,114 478 3 85,202 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.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 453 409 47 21.6 osh-cpython
31 no-host abuild-print-help 21 11 11 8.1 osh-native
1 no-host bin-true 674 489 211 3.0 bash
9 no-host bin-true 542 426 126 1.4 dash
17 no-host bin-true 2,229 1,468 1,020 17.4 osh-cpython
25 no-host bin-true 810 588 235 7.7 osh-native
2 no-host configure.cpython 14,958 8,972 6,367 27.4 bash
10 no-host configure.cpython 14,989 9,081 6,325 27.4 dash
18 no-host configure.cpython 28,238 17,319 12,729 27.4 osh-cpython
26 no-host configure.cpython 15,153 8,929 6,405 27.4 osh-native
4 no-host configure.ocaml 3,773 1,566 1,244 20.6 bash
12 no-host configure.ocaml 3,705 1,568 1,155 20.4 dash
20 no-host configure.ocaml 4,597 2,290 1,511 20.4 osh-cpython
28 no-host configure.ocaml 3,803 1,606 1,234 20.6 osh-native
5 no-host configure.tcc 47 33 15 19.4 bash
13 no-host configure.tcc 41 29 12 19.4 dash
21 no-host configure.tcc 192 136 59 19.3 osh-cpython
29 no-host configure.tcc 48 31 18 19.4 osh-native
3 no-host configure.util-linux 13,911 8,809 5,580 30.4 bash
11 no-host configure.util-linux 14,748 9,082 6,151 30.3 dash
19 no-host configure.util-linux 30,913 20,589 11,394 30.0 osh-cpython
27 no-host configure.util-linux 14,228 8,600 5,824 30.3 osh-native
6 no-host configure.yash 1,801 1,024 783 24.2 bash
14 no-host configure.yash 1,756 1,008 752 24.4 dash
22 no-host configure.yash 2,424 1,413 1,053 24.2 osh-cpython
30 no-host configure.yash 1,820 1,030 794 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 28 20 17.3 osh-cpython
24 no-host hello-world 3 0 3 5.8 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,515 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,139 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,447 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,120 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,352 0 0 0 8 0 1,990 43 bash
9 no-host bin-true 66,471 0 0 0 8 0 1,991 43 dash
17 no-host bin-true 753,639 0 0 0 8 0 1,994 303 osh-cpython
25 no-host bin-true 127,170 0 0 0 16 0 1,987 122 osh-native
2 no-host configure.cpython 2,228,223 0 0 0 32,928 0 14,561 1,269 bash
10 no-host configure.cpython 2,249,271 0 0 0 32,992 0 14,645 959 dash
18 no-host configure.cpython 6,143,270 1 0 0 27,512 0 13,268 1,118 osh-cpython
26 no-host configure.cpython 2,227,566 0 0 0 27,528 0 13,320 1,029 osh-native
4 no-host configure.ocaml 410,436 0 0 0 5,120 0 1,950 151 bash
12 no-host configure.ocaml 391,199 0 0 0 5,112 0 1,891 146 dash
20 no-host configure.ocaml 640,091 0 0 0 5,112 0 1,857 184 osh-cpython
28 no-host configure.ocaml 412,817 0 0 0 5,120 0 1,940 159 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,279 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,092,008 1 0 0 42,400 0 18,638 968 bash
11 no-host configure.util-linux 2,252,979 3 0 0 42,584 0 17,470 1,178 dash
19 no-host configure.util-linux 5,327,519 8 0 0 39,120 0 17,048 1,336 osh-cpython
27 no-host configure.util-linux 2,005,441 1 0 0 39,120 0 16,995 922 osh-native
6 no-host configure.yash 256,167 0 0 0 4,120 0 872 86 bash
14 no-host configure.yash 244,452 0 0 0 3,720 0 867 74 dash
22 no-host configure.yash 384,932 0 0 0 3,728 0 856 78 osh-cpython
30 no-host configure.yash 258,692 0 0 0 3,736 0 853 78 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,680 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 338 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-5ca5831f
dash dash-308ec8e6
osh-cpython osh-7f8fa0fa
osh-native osh-d01bfa22
host label host id
no-host no-host-556df3ee