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 449 22 22.97 1.13
bin-true no-host 676 546 2,225 818 3.29 1.21
configure.cpython no-host 15,144 15,210 28,771 15,448 1.90 1.02
configure.ocaml no-host 3,834 3,760 4,661 3,863 1.22 1.01
configure.tcc no-host 49 41 196 50 4.04 1.02
configure.util-linux no-host 14,084 15,022 31,266 14,517 2.22 1.03
configure.yash no-host 1,831 1,793 2,446 1,856 1.34 1.01
hello-world no-host 1 1 49 3 33.76 1.99

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,551 1,092 22,814 3,165 8.94 1.24
bin-true no-host 105,362 66,448 746,268 127,197 7.08 1.21
configure.cpython no-host 2,225,305 2,249,784 6,137,794 2,229,813 2.76 1.00
configure.ocaml no-host 410,677 390,753 638,089 414,197 1.55 1.01
configure.tcc no-host 6,544 5,470 23,216 7,004 3.55 1.07
configure.util-linux no-host 2,106,565 2,259,947 5,289,862 1,992,547 2.51 0.95
configure.yash no-host 256,490 244,962 384,212 258,071 1.50 1.01
hello-world no-host 151 83 3,717 351 24.62 2.32

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.6 8.9 4.85 2.00
bin-true no-host 2.9 1.6 17.6 8.1 6.09 2.82
configure.cpython no-host 27.5 27.1 27.3 27.3 0.99 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.4 30.3 30.0 30.1 0.99 0.99
configure.yash no-host 24.4 24.2 24.5 24.2 1.01 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,728 3,728 0 681 1,878 1,169 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.1 154,693 12,993 2,800 9,731 78,347 66,615 5,012 3 50,000 0
configure.cpython no-host 15,448 1 66 15.0 27.3 1,772,669 49,198 28,509 86,378 908,099 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,517 3 64 21.3 30.1 2,703,405 44,767 65,793 109,640 1,320,597 1,273,168 49,081 41 131,586 1
configure.ocaml no-host 3,863 1 2 2.6 20.6 150,039 11,046 5,139 7,510 71,635 70,894 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,528 30,528 0 1,501 14,802 14,225 350 0 50,000 0
configure.yash no-host 1,856 1 2 2.6 24.2 139,696 7,965 6,601 6,317 70,307 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 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 11 9 4.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 449 409 43 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 676 479 226 2.9 bash
9 no-host bin-true 546 434 122 1.6 dash
17 no-host bin-true 2,225 1,465 1,021 17.6 osh-cpython
25 no-host bin-true 818 560 274 8.1 osh-native
2 no-host configure.cpython 15,144 9,111 6,448 27.5 bash
10 no-host configure.cpython 15,210 9,203 6,439 27.1 dash
18 no-host configure.cpython 28,771 17,773 12,855 27.3 osh-cpython
26 no-host configure.cpython 15,448 9,175 6,547 27.3 osh-native
4 no-host configure.ocaml 3,834 1,704 1,163 20.6 bash
12 no-host configure.ocaml 3,760 1,578 1,199 20.6 dash
20 no-host configure.ocaml 4,661 2,233 1,632 20.6 osh-cpython
28 no-host configure.ocaml 3,863 1,704 1,199 20.6 osh-native
5 no-host configure.tcc 49 19 30 19.4 bash
13 no-host configure.tcc 41 32 10 19.4 dash
21 no-host configure.tcc 196 160 40 19.4 osh-cpython
29 no-host configure.tcc 50 26 24 19.4 osh-native
3 no-host configure.util-linux 14,084 8,816 5,751 30.4 bash
11 no-host configure.util-linux 15,022 9,238 6,284 30.3 dash
19 no-host configure.util-linux 31,266 20,734 11,616 30.0 osh-cpython
27 no-host configure.util-linux 14,517 8,802 5,914 30.1 osh-native
6 no-host configure.yash 1,831 1,068 771 24.4 bash
14 no-host configure.yash 1,793 1,014 782 24.2 dash
22 no-host configure.yash 2,446 1,491 997 24.5 osh-cpython
30 no-host configure.yash 1,856 1,030 830 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 37 12 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,551 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,814 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,362 0 0 0 8 0 1,992 62 bash
9 no-host bin-true 66,448 0 0 0 8 0 1,985 61 dash
17 no-host bin-true 746,268 0 0 0 8 0 1,995 144 osh-cpython
25 no-host bin-true 127,197 0 0 0 16 0 1,994 112 osh-native
2 no-host configure.cpython 2,225,305 0 0 0 32,928 0 14,532 973 bash
10 no-host configure.cpython 2,249,784 0 0 0 32,992 0 14,663 1,060 dash
18 no-host configure.cpython 6,137,794 2 0 0 27,512 0 13,222 1,267 osh-cpython
26 no-host configure.cpython 2,229,813 0 0 0 27,520 0 13,247 1,098 osh-native
4 no-host configure.ocaml 410,677 0 0 0 5,120 0 1,952 167 bash
12 no-host configure.ocaml 390,753 0 0 0 5,112 0 1,909 169 dash
20 no-host configure.ocaml 638,089 0 0 0 5,112 0 1,857 228 osh-cpython
28 no-host configure.ocaml 414,197 0 0 0 5,120 0 1,924 183 osh-native
5 no-host configure.tcc 6,544 0 0 0 104 0 49 11 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 46 1 dash
21 no-host configure.tcc 23,216 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 11 osh-native
3 no-host configure.util-linux 2,106,565 1 0 0 42,400 0 18,550 966 bash
11 no-host configure.util-linux 2,259,947 2 0 0 42,584 0 17,368 1,125 dash
19 no-host configure.util-linux 5,289,862 8 0 0 39,112 0 16,981 1,136 osh-cpython
27 no-host configure.util-linux 1,992,547 0 0 0 39,120 0 16,925 1,144 osh-native
6 no-host configure.yash 256,490 0 0 0 4,120 0 868 73 bash
14 no-host configure.yash 244,962 0 0 0 3,720 0 867 81 dash
22 no-host configure.yash 384,212 0 0 0 3,728 0 852 103 osh-cpython
30 no-host configure.yash 258,071 0 0 0 3,736 0 848 90 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,717 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-3f53cf3d
dash dash-308ec8e6
osh-cpython osh-eef7c7c3
osh-native osh-4cb8a635
host label host id
no-host no-host-556df3ee