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 458 22 24.31 1.19
bin-true no-host 680 545 2,224 816 3.27 1.20
configure.cpython no-host 15,042 15,120 28,604 15,231 1.90 1.01
configure.ocaml no-host 3,838 3,746 4,635 3,830 1.21 1.00
configure.tcc no-host 47 42 194 49 4.09 1.03
configure.util-linux no-host 14,053 14,891 31,243 14,422 2.22 1.03
configure.yash no-host 1,825 1,779 2,435 1,838 1.33 1.01
hello-world no-host 2 1 49 3 32.33 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,517 1,089 23,441 3,173 9.31 1.26
bin-true no-host 108,346 67,468 753,617 125,248 6.96 1.16
configure.cpython no-host 2,216,265 2,249,396 6,158,659 2,228,119 2.78 1.01
configure.ocaml no-host 410,527 391,199 641,225 413,777 1.56 1.01
configure.tcc no-host 6,558 5,481 23,379 6,999 3.56 1.07
configure.util-linux no-host 2,097,367 2,263,069 5,348,261 2,020,069 2.55 0.96
configure.yash no-host 255,608 244,652 386,315 258,251 1.51 1.01
hello-world no-host 151 82 3,681 348 24.38 2.30

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.4 21.8 9.0 4.88 2.03
bin-true no-host 2.9 1.6 17.4 8.0 6.05 2.77
configure.cpython no-host 27.5 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.4 1.01 1.00
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.4 1.00 1.01
configure.yash no-host 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.3 6.2 6.29 2.24

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 816 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,231 1 60 15.8 27.5 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,422 2 60 22.2 30.4 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,830 1 2 2.7 20.4 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.4 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.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 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 14 5 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 458 426 35 21.8 osh-cpython
31 no-host abuild-print-help 22 19 4 9.0 osh-native
1 no-host bin-true 680 496 214 2.9 bash
9 no-host bin-true 545 421 133 1.6 dash
17 no-host bin-true 2,224 1,465 1,021 17.4 osh-cpython
25 no-host bin-true 816 585 244 8.0 osh-native
2 no-host configure.cpython 15,042 9,108 6,331 27.5 bash
10 no-host configure.cpython 15,120 9,194 6,338 27.4 dash
18 no-host configure.cpython 28,604 17,366 13,114 27.4 osh-cpython
26 no-host configure.cpython 15,231 8,887 6,615 27.5 osh-native
4 no-host configure.ocaml 3,838 1,696 1,172 20.4 bash
12 no-host configure.ocaml 3,746 1,567 1,198 20.4 dash
20 no-host configure.ocaml 4,635 2,156 1,685 20.6 osh-cpython
28 no-host configure.ocaml 3,830 1,691 1,179 20.4 osh-native
5 no-host configure.tcc 47 23 25 19.4 bash
13 no-host configure.tcc 42 32 10 19.4 dash
21 no-host configure.tcc 194 160 38 19.3 osh-cpython
29 no-host configure.tcc 49 30 19 19.4 osh-native
3 no-host configure.util-linux 14,053 8,967 5,557 30.1 bash
11 no-host configure.util-linux 14,891 9,242 6,143 30.3 dash
19 no-host configure.util-linux 31,243 20,798 11,534 30.1 osh-cpython
27 no-host configure.util-linux 14,422 8,679 5,941 30.4 osh-native
6 no-host configure.yash 1,825 1,063 771 24.4 bash
14 no-host configure.yash 1,779 1,036 747 24.2 dash
22 no-host configure.yash 2,435 1,464 1,014 24.2 osh-cpython
30 no-host configure.yash 1,838 979 859 24.2 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 25 24 17.3 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,517 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 5 dash
23 no-host abuild-print-help 23,441 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 108,346 0 0 0 8 0 1,988 144 bash
9 no-host bin-true 67,468 0 0 0 8 0 1,989 57 dash
17 no-host bin-true 753,617 0 0 0 8 0 1,997 123 osh-cpython
25 no-host bin-true 125,248 0 0 0 16 0 1,994 210 osh-native
2 no-host configure.cpython 2,216,265 0 0 0 32,928 0 14,494 1,349 bash
10 no-host configure.cpython 2,249,396 1 0 0 32,992 0 14,617 1,124 dash
18 no-host configure.cpython 6,158,659 2 0 0 27,512 0 13,341 1,238 osh-cpython
26 no-host configure.cpython 2,228,119 0 0 0 27,520 0 13,191 1,132 osh-native
4 no-host configure.ocaml 410,527 0 0 0 5,120 0 1,953 176 bash
12 no-host configure.ocaml 391,199 0 0 0 5,112 0 1,904 161 dash
20 no-host configure.ocaml 641,225 0 0 0 5,112 0 1,858 195 osh-cpython
28 no-host configure.ocaml 413,777 0 0 0 5,120 0 1,932 170 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,379 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,097,367 0 0 0 42,400 0 18,729 1,078 bash
11 no-host configure.util-linux 2,263,069 1 0 0 42,584 0 17,470 1,225 dash
19 no-host configure.util-linux 5,348,261 7 0 0 39,112 0 17,057 1,393 osh-cpython
27 no-host configure.util-linux 2,020,069 2 0 0 39,120 0 17,088 1,007 osh-native
6 no-host configure.yash 255,608 0 0 0 4,120 0 868 79 bash
14 no-host configure.yash 244,652 0 0 0 3,720 0 870 96 dash
22 no-host configure.yash 386,315 0 0 0 3,728 0 857 87 osh-cpython
30 no-host configure.yash 258,251 0 0 0 3,736 0 848 83 osh-native
0 no-host hello-world 151 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,681 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-f5862d73
dash dash-308ec8e6
osh-cpython osh-78ab5b0d
osh-native osh-d7079253
host label host id
no-host no-host-1c33b689