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 456 22 23.95 1.18
bin-true no-host 677 540 2,209 813 3.26 1.20
configure.cpython no-host 14,874 14,904 28,215 15,059 1.90 1.01
configure.ocaml no-host 3,813 3,707 4,576 3,803 1.20 1.00
configure.tcc no-host 47 41 190 48 4.01 1.02
configure.util-linux no-host 13,863 14,749 30,922 14,240 2.23 1.03
configure.yash no-host 1,810 1,760 2,418 1,821 1.34 1.01
hello-world no-host 2 1 49 3 32.44 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,563 1,100 23,381 3,200 9.12 1.25
bin-true no-host 107,436 66,409 754,477 126,197 7.02 1.17
configure.cpython no-host 2,215,059 2,246,799 6,127,625 2,234,813 2.77 1.01
configure.ocaml no-host 410,867 391,608 638,274 413,324 1.55 1.01
configure.tcc no-host 6,546 5,471 23,138 6,979 3.53 1.07
configure.util-linux no-host 2,093,345 2,261,635 5,296,378 2,010,973 2.53 0.96
configure.yash no-host 256,685 244,693 384,634 258,245 1.50 1.01
hello-world no-host 152 82 3,654 346 24.04 2.28

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 8.1 6.00 2.82
configure.cpython no-host 27.1 27.5 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.2 30.4 1.00 1.01
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.3 6.0 6.29 2.19

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.0 3,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 813 1 2 2.7 8.1 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,059 1 58 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,240 3 58 22.2 30.4 2,703,274 42,775 65,816 126,121 1,320,501 1,256,652 49,081 41 131,632 1
configure.ocaml no-host 3,803 1 2 2.7 20.4 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,821 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 3 4.5 bash
15 no-host abuild-print-help 9 7 3 3.5 dash
23 no-host abuild-print-help 456 418 41 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
1 no-host bin-true 677 479 227 2.9 bash
9 no-host bin-true 540 417 133 1.4 dash
17 no-host bin-true 2,209 1,454 1,012 17.3 osh-cpython
25 no-host bin-true 813 575 252 8.1 osh-native
2 no-host configure.cpython 14,874 9,029 6,246 27.1 bash
10 no-host configure.cpython 14,904 8,866 6,453 27.5 dash
18 no-host configure.cpython 28,215 17,331 12,675 27.4 osh-cpython
26 no-host configure.cpython 15,059 8,834 6,495 27.4 osh-native
4 no-host configure.ocaml 3,813 1,650 1,174 20.4 bash
12 no-host configure.ocaml 3,707 1,600 1,125 20.6 dash
20 no-host configure.ocaml 4,576 2,157 1,620 20.6 osh-cpython
28 no-host configure.ocaml 3,803 1,615 1,226 20.4 osh-native
5 no-host configure.tcc 47 32 15 19.3 bash
13 no-host configure.tcc 41 28 14 19.3 dash
21 no-host configure.tcc 190 138 55 19.4 osh-cpython
29 no-host configure.tcc 48 30 19 19.3 osh-native
3 no-host configure.util-linux 13,863 8,701 5,649 30.1 bash
11 no-host configure.util-linux 14,749 9,048 6,203 30.3 dash
19 no-host configure.util-linux 30,922 20,540 11,451 30.2 osh-cpython
27 no-host configure.util-linux 14,240 8,573 5,859 30.4 osh-native
6 no-host configure.yash 1,810 1,037 780 24.4 bash
14 no-host configure.yash 1,760 989 765 24.2 dash
22 no-host configure.yash 2,418 1,465 995 24.4 osh-cpython
30 no-host configure.yash 1,821 1,023 803 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 19 29 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,563 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,381 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,436 0 0 0 8 0 1,993 45 bash
9 no-host bin-true 66,409 0 0 0 8 0 1,987 47 dash
17 no-host bin-true 754,477 0 0 0 8 0 1,998 163 osh-cpython
25 no-host bin-true 126,197 0 0 0 16 0 1,987 118 osh-native
2 no-host configure.cpython 2,215,059 0 0 0 32,928 0 14,515 1,379 bash
10 no-host configure.cpython 2,246,799 0 0 0 32,992 0 14,563 1,095 dash
18 no-host configure.cpython 6,127,625 2 0 0 27,512 0 13,256 1,231 osh-cpython
26 no-host configure.cpython 2,234,813 0 0 0 27,520 0 13,271 1,016 osh-native
4 no-host configure.ocaml 410,867 0 0 0 5,120 0 1,967 164 bash
12 no-host configure.ocaml 391,608 0 0 0 5,112 0 1,893 138 dash
20 no-host configure.ocaml 638,274 0 0 0 5,112 0 1,864 192 osh-cpython
28 no-host configure.ocaml 413,324 0 0 0 5,120 0 1,927 175 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,138 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,093,345 1 0 0 42,400 0 18,773 1,137 bash
11 no-host configure.util-linux 2,261,635 0 0 0 42,584 0 17,436 1,201 dash
19 no-host configure.util-linux 5,296,378 12 0 0 39,112 0 17,059 1,113 osh-cpython
27 no-host configure.util-linux 2,010,973 1 0 0 39,120 0 17,068 1,041 osh-native
6 no-host configure.yash 256,685 0 0 0 4,120 0 870 85 bash
14 no-host configure.yash 244,693 0 0 0 3,720 0 868 76 dash
22 no-host configure.yash 384,634 0 0 0 3,728 0 855 143 osh-cpython
30 no-host configure.yash 258,245 0 0 0 3,736 0 853 85 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,654 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-41d5cb3b
dash dash-308ec8e6
osh-cpython osh-9f34669a
osh-native osh-dd2d0e68
host label host id
no-host no-host-1c33b689