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 463 23 24.03 1.18
bin-true no-host 675 552 2,235 817 3.31 1.21
configure.cpython no-host 15,208 15,267 28,913 15,414 1.90 1.01
configure.ocaml no-host 3,810 3,787 4,659 3,839 1.22 1.01
configure.tcc no-host 47 41 191 49 4.03 1.03
configure.util-linux no-host 14,084 14,986 31,462 14,539 2.23 1.03
configure.yash no-host 1,834 1,786 2,447 1,838 1.33 1.00
hello-world no-host 2 1 48 3 31.38 1.96

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,509 1,097 23,501 3,205 9.37 1.28
bin-true no-host 106,391 67,477 752,879 127,181 7.08 1.20
configure.cpython no-host 2,218,222 2,241,178 6,156,227 2,232,594 2.78 1.01
configure.ocaml no-host 409,804 391,167 640,459 413,854 1.56 1.01
configure.tcc no-host 6,557 5,473 22,824 6,997 3.48 1.07
configure.util-linux no-host 2,092,271 2,259,103 5,338,376 2,011,846 2.55 0.96
configure.yash no-host 256,595 243,553 384,287 259,105 1.50 1.01
hello-world no-host 153 79 3,685 347 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.3 3.5 21.9 8.8 5.06 2.03
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.3 27.4 27.1 1.00 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.7 19.3 1.02 1.00
configure.util-linux no-host 30.3 30.3 30.0 30.1 0.99 1.00
configure.yash no-host 24.4 24.1 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.4 6.2 6.05 2.14

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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 817 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,414 1 63 15.8 27.1 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,539 3 63 22.2 30.1 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,839 1 2 2.7 20.6 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,838 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.8 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 15 5 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 463 422 44 21.9 osh-cpython
31 no-host abuild-print-help 23 13 10 8.8 osh-native
1 no-host bin-true 675 500 206 2.9 bash
9 no-host bin-true 552 416 144 1.4 dash
17 no-host bin-true 2,235 1,478 1,009 17.4 osh-cpython
25 no-host bin-true 817 567 267 8.0 osh-native
2 no-host configure.cpython 15,208 9,062 6,544 27.4 bash
10 no-host configure.cpython 15,267 9,180 6,505 27.3 dash
18 no-host configure.cpython 28,913 17,386 13,391 27.4 osh-cpython
26 no-host configure.cpython 15,414 9,071 6,606 27.1 osh-native
4 no-host configure.ocaml 3,810 1,639 1,210 20.4 bash
12 no-host configure.ocaml 3,787 1,616 1,190 20.6 dash
20 no-host configure.ocaml 4,659 2,174 1,690 20.6 osh-cpython
28 no-host configure.ocaml 3,839 1,565 1,312 20.6 osh-native
5 no-host configure.tcc 47 24 24 19.3 bash
13 no-host configure.tcc 41 26 16 19.4 dash
21 no-host configure.tcc 191 139 56 19.7 osh-cpython
29 no-host configure.tcc 49 38 11 19.3 osh-native
3 no-host configure.util-linux 14,084 8,713 5,841 30.3 bash
11 no-host configure.util-linux 14,986 9,052 6,427 30.3 dash
19 no-host configure.util-linux 31,462 20,876 11,694 30.0 osh-cpython
27 no-host configure.util-linux 14,539 8,619 6,116 30.1 osh-native
6 no-host configure.yash 1,834 1,068 773 24.4 bash
14 no-host configure.yash 1,786 1,063 726 24.1 dash
22 no-host configure.yash 2,447 1,508 981 24.4 osh-cpython
30 no-host configure.yash 1,838 1,053 789 24.4 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 29 20 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,509 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,501 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,391 0 0 0 8 0 1,994 91 bash
9 no-host bin-true 67,477 0 0 0 8 0 1,990 136 dash
17 no-host bin-true 752,879 0 0 0 8 0 1,995 321 osh-cpython
25 no-host bin-true 127,181 0 0 0 16 0 1,994 100 osh-native
2 no-host configure.cpython 2,218,222 0 0 0 32,928 0 14,453 1,249 bash
10 no-host configure.cpython 2,241,178 1 0 0 32,992 0 14,650 1,240 dash
18 no-host configure.cpython 6,156,227 0 0 0 27,512 0 13,225 1,161 osh-cpython
26 no-host configure.cpython 2,232,594 0 0 0 27,520 0 13,254 975 osh-native
4 no-host configure.ocaml 409,804 0 0 0 5,120 0 1,951 191 bash
12 no-host configure.ocaml 391,167 0 0 0 5,112 0 1,890 143 dash
20 no-host configure.ocaml 640,459 1 0 0 5,112 0 1,858 227 osh-cpython
28 no-host configure.ocaml 413,854 0 0 0 5,120 0 1,930 162 osh-native
5 no-host configure.tcc 6,557 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,824 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,092,271 3 0 0 42,400 0 18,566 1,043 bash
11 no-host configure.util-linux 2,259,103 0 0 0 42,584 0 17,458 1,072 dash
19 no-host configure.util-linux 5,338,376 12 0 0 39,120 0 17,009 1,310 osh-cpython
27 no-host configure.util-linux 2,011,846 2 0 0 39,120 0 17,051 1,068 osh-native
6 no-host configure.yash 256,595 0 0 0 4,120 0 869 75 bash
14 no-host configure.yash 243,553 0 0 0 3,720 0 871 99 dash
22 no-host configure.yash 384,287 0 0 0 3,728 0 859 83 osh-cpython
30 no-host configure.yash 259,105 0 0 0 3,736 0 852 97 osh-native
0 no-host hello-world 153 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,685 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 0 1 osh-native

Shell and Host

shell label shell id
bash bash-77c5e4fb
dash dash-308ec8e6
osh-cpython osh-1983e54b
osh-native osh-6acdaaa6
host label host id
no-host no-host-1c33b689