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 23 23.34 1.20
bin-true no-host 669 548 2,231 820 3.33 1.23
configure.cpython no-host 15,376 15,233 28,901 15,431 1.88 1.00
configure.ocaml no-host 3,875 3,765 4,659 3,938 1.20 1.02
configure.tcc no-host 49 42 202 49 4.16 1.01
configure.util-linux no-host 14,748 15,022 31,595 14,647 2.14 0.99
configure.yash no-host 1,834 1,790 2,513 1,854 1.37 1.01
hello-world no-host 2 1 48 3 30.16 1.79

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,549 1,115 23,228 3,190 9.11 1.25
bin-true no-host 105,357 66,488 749,068 126,193 7.11 1.20
configure.cpython no-host 2,220,572 2,240,662 6,138,682 2,231,644 2.76 1.00
configure.ocaml no-host 410,739 391,157 637,580 414,108 1.55 1.01
configure.tcc no-host 6,581 5,464 23,247 7,007 3.53 1.06
configure.util-linux no-host 2,103,343 2,261,095 5,332,271 2,010,223 2.54 0.96
configure.yash no-host 256,705 244,070 385,191 258,194 1.50 1.01
hello-world no-host 152 81 3,654 347 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.3 3.5 21.5 8.7 4.97 2.00
bin-true no-host 2.9 1.6 17.3 7.7 6.00 2.68
configure.cpython no-host 27.3 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.4 19.1 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.5 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 820 1 2 2.7 7.7 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,431 1 65 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,647 3 64 22.2 30.1 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,938 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,854 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 8 1 3.5 dash
23 no-host abuild-print-help 453 414 42 21.5 osh-cpython
31 no-host abuild-print-help 23 17 7 8.7 osh-native
1 no-host bin-true 669 499 200 2.9 bash
9 no-host bin-true 548 427 131 1.6 dash
17 no-host bin-true 2,231 1,460 1,025 17.3 osh-cpython
25 no-host bin-true 820 575 259 7.7 osh-native
2 no-host configure.cpython 15,376 9,086 6,689 27.3 bash
10 no-host configure.cpython 15,233 9,345 6,309 27.4 dash
18 no-host configure.cpython 28,901 17,634 13,124 27.4 osh-cpython
26 no-host configure.cpython 15,431 9,142 6,560 27.4 osh-native
4 no-host configure.ocaml 3,875 1,645 1,272 20.6 bash
12 no-host configure.ocaml 3,765 1,554 1,232 20.6 dash
20 no-host configure.ocaml 4,659 2,319 1,547 20.6 osh-cpython
28 no-host configure.ocaml 3,938 1,756 1,221 20.6 osh-native
5 no-host configure.tcc 49 29 21 19.4 bash
13 no-host configure.tcc 42 27 16 19.1 dash
21 no-host configure.tcc 202 154 52 19.4 osh-cpython
29 no-host configure.tcc 49 40 10 19.3 osh-native
3 no-host configure.util-linux 14,748 9,458 5,768 30.3 bash
11 no-host configure.util-linux 15,022 9,112 6,402 30.1 dash
19 no-host configure.util-linux 31,595 20,918 11,774 30.3 osh-cpython
27 no-host configure.util-linux 14,647 8,664 6,181 30.1 osh-native
6 no-host configure.yash 1,834 1,092 749 24.4 bash
14 no-host configure.yash 1,790 992 802 24.5 dash
22 no-host configure.yash 2,513 1,616 940 24.4 osh-cpython
30 no-host configure.yash 1,854 1,082 775 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 32 16 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,549 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,228 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 105,357 0 0 0 8 0 1,990 44 bash
9 no-host bin-true 66,488 0 0 0 8 0 1,988 41 dash
17 no-host bin-true 749,068 0 0 0 8 0 1,999 317 osh-cpython
25 no-host bin-true 126,193 0 0 0 16 0 1,984 99 osh-native
2 no-host configure.cpython 2,220,572 0 0 0 32,928 0 14,478 1,004 bash
10 no-host configure.cpython 2,240,662 0 0 0 32,992 0 14,509 1,167 dash
18 no-host configure.cpython 6,138,682 0 0 0 27,512 0 13,220 1,113 osh-cpython
26 no-host configure.cpython 2,231,644 0 0 0 27,520 0 13,244 1,238 osh-native
4 no-host configure.ocaml 410,739 0 0 0 5,120 0 1,949 166 bash
12 no-host configure.ocaml 391,157 0 0 0 5,112 0 1,940 155 dash
20 no-host configure.ocaml 637,580 0 0 0 5,112 0 1,855 173 osh-cpython
28 no-host configure.ocaml 414,108 0 0 0 5,120 0 1,929 172 osh-native
5 no-host configure.tcc 6,581 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,247 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 7,007 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,103,343 2 0 0 42,400 0 18,555 1,107 bash
11 no-host configure.util-linux 2,261,095 0 0 0 42,592 0 17,480 1,163 dash
19 no-host configure.util-linux 5,332,271 10 0 0 39,112 0 17,210 1,406 osh-cpython
27 no-host configure.util-linux 2,010,223 2 0 0 39,120 0 17,096 1,069 osh-native
6 no-host configure.yash 256,705 0 0 0 4,120 0 871 66 bash
14 no-host configure.yash 244,070 0 0 0 3,720 0 867 82 dash
22 no-host configure.yash 385,191 0 0 0 3,728 0 858 101 osh-cpython
30 no-host configure.yash 258,194 0 0 0 3,736 0 850 80 osh-native
0 no-host hello-world 152 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,654 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-b42a89de
dash dash-308ec8e6
osh-cpython osh-d7da1652
osh-native osh-9e8a4f77
host label host id
no-host no-host-13226fd6