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 453 21 24.00 1.11
bin-true no-host 674 544 2,233 807 3.31 1.20
configure.cpython no-host 15,044 14,973 28,143 15,242 1.87 1.01
configure.ocaml no-host 3,823 3,712 4,605 3,792 1.20 0.99
configure.tcc no-host 48 42 191 48 4.01 1.02
configure.util-linux no-host 13,936 14,771 30,846 14,341 2.21 1.03
configure.yash no-host 1,835 1,762 2,434 1,811 1.33 0.99
hello-world no-host 2 1 48 3 31.54 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,538 1,102 23,448 3,160 9.24 1.25
bin-true no-host 105,319 67,353 749,710 127,253 7.12 1.21
configure.cpython no-host 2,213,419 2,241,417 6,139,421 2,222,004 2.77 1.00
configure.ocaml no-host 410,387 391,318 639,824 412,277 1.56 1.00
configure.tcc no-host 6,563 5,456 23,238 6,961 3.54 1.06
configure.util-linux no-host 2,095,910 2,247,950 5,332,787 2,002,107 2.54 0.96
configure.yash no-host 255,686 245,083 384,817 258,747 1.51 1.01
hello-world no-host 154 79 3,682 341 23.91 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.5 21.9 8.5 5.06 1.97
bin-true no-host 3.0 1.4 17.4 7.5 5.78 2.48
configure.cpython no-host 27.5 27.4 27.3 27.4 0.99 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.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.4 1.00 1.01
configure.yash no-host 24.2 24.5 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.3 5.8 6.00 2.00

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 807 1 2 2.7 7.5 154,692 12,780 2,737 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,242 1 60 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,341 3 60 22.2 30.4 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,792 0 2 2.7 20.4 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.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,811 1 2 2.6 24.2 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.5 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 18 2 4.3 bash
15 no-host abuild-print-help 9 7 3 3.5 dash
23 no-host abuild-print-help 453 404 52 21.9 osh-cpython
31 no-host abuild-print-help 21 16 6 8.5 osh-native
1 no-host bin-true 674 513 191 3.0 bash
9 no-host bin-true 544 417 139 1.4 dash
17 no-host bin-true 2,233 1,480 1,005 17.4 osh-cpython
25 no-host bin-true 807 561 259 7.5 osh-native
2 no-host configure.cpython 15,044 8,986 6,448 27.5 bash
10 no-host configure.cpython 14,973 9,037 6,333 27.4 dash
18 no-host configure.cpython 28,143 17,211 12,740 27.3 osh-cpython
26 no-host configure.cpython 15,242 9,064 6,439 27.4 osh-native
4 no-host configure.ocaml 3,823 1,624 1,233 20.6 bash
12 no-host configure.ocaml 3,712 1,557 1,175 20.6 dash
20 no-host configure.ocaml 4,605 2,274 1,535 20.6 osh-cpython
28 no-host configure.ocaml 3,792 1,657 1,170 20.4 osh-native
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 42 37 5 19.4 dash
21 no-host configure.tcc 191 144 50 19.3 osh-cpython
29 no-host configure.tcc 48 37 12 19.3 osh-native
3 no-host configure.util-linux 13,936 8,768 5,635 30.1 bash
11 no-host configure.util-linux 14,771 9,161 6,088 30.1 dash
19 no-host configure.util-linux 30,846 20,807 11,103 30.3 osh-cpython
27 no-host configure.util-linux 14,341 8,557 5,962 30.4 osh-native
6 no-host configure.yash 1,835 1,029 811 24.2 bash
14 no-host configure.yash 1,762 1,000 767 24.5 dash
22 no-host configure.yash 2,434 1,537 939 24.2 osh-cpython
30 no-host configure.yash 1,811 997 817 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 26 22 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,538 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,448 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 105,319 0 0 0 8 0 1,996 145 bash
9 no-host bin-true 67,353 0 0 0 8 0 1,988 68 dash
17 no-host bin-true 749,710 0 0 0 8 0 1,999 470 osh-cpython
25 no-host bin-true 127,253 0 0 0 16 0 1,986 72 osh-native
2 no-host configure.cpython 2,213,419 0 0 0 32,928 0 14,500 1,022 bash
10 no-host configure.cpython 2,241,417 0 0 0 32,992 0 14,660 994 dash
18 no-host configure.cpython 6,139,421 0 0 0 27,512 0 13,302 1,308 osh-cpython
26 no-host configure.cpython 2,222,004 1 0 0 27,520 0 13,256 1,074 osh-native
4 no-host configure.ocaml 410,387 0 0 0 5,120 0 1,971 195 bash
12 no-host configure.ocaml 391,318 0 0 0 5,112 0 1,940 164 dash
20 no-host configure.ocaml 639,824 0 0 0 5,112 0 1,866 177 osh-cpython
28 no-host configure.ocaml 412,277 0 0 0 5,120 0 1,932 162 osh-native
5 no-host configure.tcc 6,563 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,456 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,238 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,961 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,095,910 0 0 0 42,400 0 18,605 1,071 bash
11 no-host configure.util-linux 2,247,950 0 0 0 42,584 0 17,502 1,034 dash
19 no-host configure.util-linux 5,332,787 6 0 0 39,120 0 17,065 1,208 osh-cpython
27 no-host configure.util-linux 2,002,107 0 0 0 39,128 0 17,060 983 osh-native
6 no-host configure.yash 255,686 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 245,083 0 0 0 3,720 0 868 71 dash
22 no-host configure.yash 384,817 0 0 0 3,728 0 859 87 osh-cpython
30 no-host configure.yash 258,747 0 0 0 3,736 0 854 86 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,682 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-d3c793c4
dash dash-308ec8e6
osh-cpython osh-35e0ea3a
osh-native osh-219a70bf
host label host id
no-host no-host-556df3ee