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 451 23 23.69 1.19
bin-true no-host 666 540 2,260 813 3.39 1.22
configure.cpython no-host 14,748 14,841 28,063 15,005 1.90 1.02
configure.ocaml no-host 3,772 3,684 4,568 3,778 1.21 1.00
configure.tcc no-host 47 41 190 48 4.04 1.02
configure.util-linux no-host 13,821 14,664 30,764 14,211 2.23 1.03
configure.yash no-host 1,791 1,736 2,406 1,797 1.34 1.00
hello-world no-host 1 1 48 3 32.46 2.06

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,529 1,103 23,538 3,243 9.31 1.28
bin-true no-host 107,383 67,435 752,156 128,197 7.00 1.19
configure.cpython no-host 2,218,318 2,251,400 6,148,263 2,236,205 2.77 1.01
configure.ocaml no-host 410,478 391,035 639,895 413,805 1.56 1.01
configure.tcc no-host 6,538 5,467 23,263 7,001 3.56 1.07
configure.util-linux no-host 2,097,084 2,270,416 5,339,475 2,018,515 2.55 0.96
configure.yash no-host 256,639 245,153 384,711 257,988 1.50 1.01
hello-world no-host 153 81 3,685 348 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.5 3.4 21.9 8.8 4.91 1.97
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.3 30.3 30.0 1.01 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.3 6.0 6.00 2.09

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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 813 1 2 2.7 8.1 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,005 1 57 15.8 27.4 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,211 2 56 22.2 30.0 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,778 0 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 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,797 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 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 14 5 4.5 bash
15 no-host abuild-print-help 9 8 2 3.4 dash
23 no-host abuild-print-help 451 416 38 21.9 osh-cpython
31 no-host abuild-print-help 23 14 9 8.8 osh-native
1 no-host bin-true 666 503 196 3.0 bash
9 no-host bin-true 540 418 136 1.4 dash
17 no-host bin-true 2,260 1,518 999 17.4 osh-cpython
25 no-host bin-true 813 568 259 8.1 osh-native
2 no-host configure.cpython 14,748 8,895 6,248 27.5 bash
10 no-host configure.cpython 14,841 8,950 6,309 27.4 dash
18 no-host configure.cpython 28,063 17,054 12,829 27.4 osh-cpython
26 no-host configure.cpython 15,005 9,095 6,180 27.4 osh-native
4 no-host configure.ocaml 3,772 1,549 1,256 20.6 bash
12 no-host configure.ocaml 3,684 1,489 1,213 20.6 dash
20 no-host configure.ocaml 4,568 2,279 1,491 20.6 osh-cpython
28 no-host configure.ocaml 3,778 1,581 1,236 20.6 osh-native
5 no-host configure.tcc 47 18 30 19.1 bash
13 no-host configure.tcc 41 21 20 19.3 dash
21 no-host configure.tcc 190 171 23 19.3 osh-cpython
29 no-host configure.tcc 48 34 15 19.4 osh-native
3 no-host configure.util-linux 13,821 8,872 5,428 30.0 bash
11 no-host configure.util-linux 14,664 8,978 6,176 30.3 dash
19 no-host configure.util-linux 30,764 20,721 11,088 30.3 osh-cpython
27 no-host configure.util-linux 14,211 8,503 5,904 30.0 osh-native
6 no-host configure.yash 1,791 1,068 731 24.4 bash
14 no-host configure.yash 1,736 1,043 696 24.2 dash
22 no-host configure.yash 2,406 1,458 989 24.4 osh-cpython
30 no-host configure.yash 1,797 973 828 24.2 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 20 27 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,529 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,538 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,243 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,383 0 0 0 8 0 1,991 44 bash
9 no-host bin-true 67,435 0 0 0 8 0 1,985 94 dash
17 no-host bin-true 752,156 0 0 0 8 0 1,998 191 osh-cpython
25 no-host bin-true 128,197 0 0 0 16 0 1,989 108 osh-native
2 no-host configure.cpython 2,218,318 0 0 0 32,928 0 14,477 1,176 bash
10 no-host configure.cpython 2,251,400 0 0 0 32,992 0 14,646 1,113 dash
18 no-host configure.cpython 6,148,263 0 0 0 27,512 0 13,250 1,326 osh-cpython
26 no-host configure.cpython 2,236,205 3 0 0 27,520 0 13,316 959 osh-native
4 no-host configure.ocaml 410,478 0 0 0 5,120 0 1,960 181 bash
12 no-host configure.ocaml 391,035 0 0 0 5,112 0 1,870 161 dash
20 no-host configure.ocaml 639,895 0 0 0 5,112 0 1,862 184 osh-cpython
28 no-host configure.ocaml 413,805 0 0 0 5,120 0 1,934 169 osh-native
5 no-host configure.tcc 6,538 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,467 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,263 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 7,001 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,097,084 1 0 0 42,400 0 18,566 1,103 bash
11 no-host configure.util-linux 2,270,416 1 0 0 42,584 0 17,436 1,092 dash
19 no-host configure.util-linux 5,339,475 13 0 0 39,120 0 17,013 1,246 osh-cpython
27 no-host configure.util-linux 2,018,515 0 0 0 39,120 0 17,185 1,108 osh-native
6 no-host configure.yash 256,639 0 0 0 4,120 0 868 94 bash
14 no-host configure.yash 245,153 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 384,711 0 0 0 3,728 0 857 85 osh-cpython
30 no-host configure.yash 257,988 0 0 0 3,736 0 851 83 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,685 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 0 1 osh-native

Shell and Host

shell label shell id
bash bash-4768f46d
dash dash-308ec8e6
osh-cpython osh-c6f79a55
osh-native osh-551676fa
host label host id
no-host no-host-1c33b689