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 20 10 474 23 23.81 1.15
bin-true no-host 683 554 2,340 842 3.43 1.23
configure.cpython no-host 15,686 15,855 30,395 16,009 1.94 1.02
configure.ocaml no-host 3,940 3,870 4,876 3,993 1.24 1.01
configure.tcc no-host 49 44 202 50 4.13 1.02
configure.util-linux no-host 14,626 15,565 33,080 15,050 2.26 1.03
configure.yash no-host 1,919 1,850 2,615 1,965 1.36 1.02
hello-world no-host 2 1 52 3 29.70 1.72

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,547 1,103 22,952 3,193 9.01 1.25
bin-true no-host 107,360 65,394 751,920 127,158 7.00 1.18
configure.cpython no-host 2,221,293 2,239,613 6,133,096 2,220,647 2.76 1.00
configure.ocaml no-host 410,370 390,996 638,233 413,913 1.56 1.01
configure.tcc no-host 6,560 5,488 23,228 6,983 3.54 1.06
configure.util-linux no-host 2,105,673 2,264,344 5,295,166 2,000,396 2.51 0.95
configure.yash no-host 256,564 244,081 383,164 257,835 1.49 1.00
hello-world no-host 153 81 3,681 347 24.06 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.8 8.9 4.88 2.00
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.5 27.3 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 29.9 30.1 30.3 30.0 1.01 1.00
configure.yash no-host 24.5 24.4 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 17.3 6.3 6.00 2.18

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.3 3,728 3,728 0 681 1,878 1,169 2 0 50,000 0
bin-true no-host 842 1 2 2.6 8.0 154,693 12,993 2,800 9,731 78,347 66,615 5,012 3 50,000 0
configure.cpython no-host 16,009 1 66 15.0 27.5 1,772,669 49,198 28,509 86,378 908,099 778,192 42,399 60 50,000 0
configure.util-linux no-host 15,050 3 66 21.3 30.0 2,703,405 44,768 65,794 109,640 1,320,597 1,273,168 49,081 41 131,588 1
configure.ocaml no-host 3,993 1 2 2.6 20.6 150,039 11,047 5,140 7,510 71,635 70,894 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,528 30,528 0 1,501 14,802 14,225 350 0 50,000 0
configure.yash no-host 1,965 1 2 2.6 24.4 139,696 7,965 6,601 6,317 70,307 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,271 64,456 42,664 4,552 54,547 57,172 478 3 85,328 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 20 13 7 4.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 474 442 35 21.8 osh-cpython
31 no-host abuild-print-help 23 15 8 8.9 osh-native
1 no-host bin-true 683 515 199 3.0 bash
9 no-host bin-true 554 421 142 1.4 dash
17 no-host bin-true 2,340 1,477 1,127 17.3 osh-cpython
25 no-host bin-true 842 580 265 8.0 osh-native
2 no-host configure.cpython 15,686 9,384 6,708 27.5 bash
10 no-host configure.cpython 15,855 9,455 6,837 27.3 dash
18 no-host configure.cpython 30,395 18,136 14,257 27.5 osh-cpython
26 no-host configure.cpython 16,009 9,390 6,879 27.5 osh-native
4 no-host configure.ocaml 3,940 1,725 1,253 20.4 bash
12 no-host configure.ocaml 3,870 1,580 1,307 20.6 dash
20 no-host configure.ocaml 4,876 2,315 1,784 20.6 osh-cpython
28 no-host configure.ocaml 3,993 1,688 1,345 20.6 osh-native
5 no-host configure.tcc 49 23 27 19.3 bash
13 no-host configure.tcc 44 36 7 19.3 dash
21 no-host configure.tcc 202 144 61 19.3 osh-cpython
29 no-host configure.tcc 50 18 32 19.3 osh-native
3 no-host configure.util-linux 14,626 9,108 6,000 29.9 bash
11 no-host configure.util-linux 15,565 9,323 6,738 30.1 dash
19 no-host configure.util-linux 33,080 21,880 12,356 30.3 osh-cpython
27 no-host configure.util-linux 15,050 9,020 6,223 30.0 osh-native
6 no-host configure.yash 1,919 1,115 810 24.5 bash
14 no-host configure.yash 1,850 1,086 767 24.4 dash
22 no-host configure.yash 2,615 1,659 1,001 24.4 osh-cpython
30 no-host configure.yash 1,965 1,164 804 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 52 44 8 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,547 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,952 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 38 3 osh-native
1 no-host bin-true 107,360 0 0 0 8 0 1,982 46 bash
9 no-host bin-true 65,394 0 0 0 8 0 1,987 75 dash
17 no-host bin-true 751,920 0 0 0 8 0 1,993 421 osh-cpython
25 no-host bin-true 127,158 0 0 0 16 0 1,984 54 osh-native
2 no-host configure.cpython 2,221,293 0 0 0 32,928 0 14,445 970 bash
10 no-host configure.cpython 2,239,613 0 0 0 32,992 0 14,671 967 dash
18 no-host configure.cpython 6,133,096 0 0 0 27,512 0 13,230 1,369 osh-cpython
26 no-host configure.cpython 2,220,647 1 0 0 27,520 0 13,257 1,148 osh-native
4 no-host configure.ocaml 410,370 0 0 0 5,120 0 1,954 157 bash
12 no-host configure.ocaml 390,996 0 0 0 5,112 0 1,877 142 dash
20 no-host configure.ocaml 638,233 1 0 0 5,112 0 1,853 184 osh-cpython
28 no-host configure.ocaml 413,913 0 0 0 5,120 0 1,928 154 osh-native
5 no-host configure.tcc 6,560 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,228 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,983 0 0 0 104 0 47 8 osh-native
3 no-host configure.util-linux 2,105,673 1 0 0 42,400 0 18,531 1,080 bash
11 no-host configure.util-linux 2,264,344 1 0 0 42,592 0 17,469 1,139 dash
19 no-host configure.util-linux 5,295,166 13 0 0 39,112 0 16,966 1,299 osh-cpython
27 no-host configure.util-linux 2,000,396 1 0 0 39,128 0 16,967 1,006 osh-native
6 no-host configure.yash 256,564 0 0 0 4,120 0 869 82 bash
14 no-host configure.yash 244,081 0 0 0 3,720 0 870 83 dash
22 no-host configure.yash 383,164 0 0 0 3,728 0 856 103 osh-cpython
30 no-host configure.yash 257,835 0 0 0 3,736 0 846 94 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,681 0 0 0 8 0 7 4 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-11401551
dash dash-308ec8e6
osh-cpython osh-3e6150ba
osh-native osh-d34fe799
host label host id
no-host no-host-556df3ee