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 464 23 23.54 1.17
bin-true no-host 687 562 2,247 826 3.27 1.20
configure.cpython no-host 15,458 15,511 29,351 15,737 1.90 1.02
configure.ocaml no-host 3,892 3,836 4,721 3,932 1.21 1.01
configure.tcc no-host 48 43 197 54 4.08 1.12
configure.util-linux no-host 14,445 15,213 32,156 14,940 2.23 1.03
configure.yash no-host 1,867 1,817 2,525 1,900 1.35 1.02
hello-world no-host 2 1 50 3 30.87 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,542 1,094 23,278 3,177 9.16 1.25
bin-true no-host 106,319 66,483 752,843 126,223 7.08 1.19
configure.cpython no-host 2,223,181 2,250,068 6,135,672 2,231,864 2.76 1.00
configure.ocaml no-host 410,739 390,685 638,071 413,558 1.55 1.01
configure.tcc no-host 6,549 5,459 23,166 6,979 3.54 1.07
configure.util-linux no-host 2,102,304 2,259,006 5,345,736 2,011,219 2.54 0.96
configure.yash no-host 255,480 245,151 386,024 257,874 1.51 1.01
hello-world no-host 152 80 3,658 346 24.07 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.8 4.97 2.03
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.5 27.4 27.4 27.3 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.0 30.0 1.00 1.00
configure.yash no-host 24.5 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.6 17.2 6.2 6.24 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,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 826 1 2 2.7 7.9 154,688 12,992 2,799 11,737 78,344 64,607 5,012 3 50,000 0
configure.cpython no-host 15,737 1 67 15.8 27.3 1,772,604 49,197 28,508 101,770 908,051 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,940 3 66 22.2 30.0 2,703,268 44,766 65,792 126,121 1,320,495 1,256,652 49,081 41 131,584 1
configure.ocaml no-host 3,932 1 2 2.7 20.6 150,030 11,045 5,138 8,602 71,629 69,799 2,680 3 50,000 0
configure.tcc no-host 54 0 0 1.3 19.4 30,523 30,523 0 1,599 14,799 14,125 350 0 50,000 0
configure.yash no-host 1,900 1 2 2.6 24.4 139,687 7,964 6,600 7,554 70,301 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,266 64,455 42,663 4,610 54,544 57,112 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 20 18 2 4.3 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 464 423 44 21.5 osh-cpython
31 no-host abuild-print-help 23 21 3 8.8 osh-native
1 no-host bin-true 687 498 221 2.9 bash
9 no-host bin-true 562 425 145 1.4 dash
17 no-host bin-true 2,247 1,464 1,041 17.3 osh-cpython
25 no-host bin-true 826 582 260 7.9 osh-native
2 no-host configure.cpython 15,458 9,276 6,598 27.5 bash
10 no-host configure.cpython 15,511 9,335 6,604 27.4 dash
18 no-host configure.cpython 29,351 17,737 13,511 27.4 osh-cpython
26 no-host configure.cpython 15,737 8,989 7,022 27.3 osh-native
4 no-host configure.ocaml 3,892 1,697 1,225 20.6 bash
12 no-host configure.ocaml 3,836 1,680 1,175 20.6 dash
20 no-host configure.ocaml 4,721 2,401 1,524 20.6 osh-cpython
28 no-host configure.ocaml 3,932 1,760 1,211 20.6 osh-native
5 no-host configure.tcc 48 20 29 19.3 bash
13 no-host configure.tcc 43 36 8 19.3 dash
21 no-host configure.tcc 197 143 58 19.3 osh-cpython
29 no-host configure.tcc 54 30 25 19.4 osh-native
3 no-host configure.util-linux 14,445 9,024 5,908 30.1 bash
11 no-host configure.util-linux 15,213 9,357 6,354 30.3 dash
19 no-host configure.util-linux 32,156 21,567 11,681 30.0 osh-cpython
27 no-host configure.util-linux 14,940 9,020 6,117 30.0 osh-native
6 no-host configure.yash 1,867 1,043 833 24.5 bash
14 no-host configure.yash 1,817 1,023 797 24.2 dash
22 no-host configure.yash 2,525 1,581 988 24.2 osh-cpython
30 no-host configure.yash 1,900 1,064 839 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 50 33 16 17.2 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,542 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,278 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,319 0 0 0 8 0 1,981 48 bash
9 no-host bin-true 66,483 0 0 0 8 0 1,993 173 dash
17 no-host bin-true 752,843 0 0 0 8 0 1,997 108 osh-cpython
25 no-host bin-true 126,223 0 0 0 16 0 1,992 51 osh-native
2 no-host configure.cpython 2,223,181 1 0 0 32,928 0 14,425 1,017 bash
10 no-host configure.cpython 2,250,068 0 0 0 32,992 0 14,511 1,077 dash
18 no-host configure.cpython 6,135,672 1 0 0 27,512 0 13,257 1,375 osh-cpython
26 no-host configure.cpython 2,231,864 0 0 0 27,520 0 13,258 913 osh-native
4 no-host configure.ocaml 410,739 0 0 0 5,120 0 1,954 148 bash
12 no-host configure.ocaml 390,685 0 0 0 5,112 0 1,862 129 dash
20 no-host configure.ocaml 638,071 0 0 0 5,112 0 1,855 187 osh-cpython
28 no-host configure.ocaml 413,558 0 0 0 5,120 0 1,939 170 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,459 0 0 0 96 0 47 6 dash
21 no-host configure.tcc 23,166 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,102,304 0 0 0 42,400 0 18,656 1,144 bash
11 no-host configure.util-linux 2,259,006 1 0 0 42,584 0 17,423 1,150 dash
19 no-host configure.util-linux 5,345,736 15 0 0 39,144 0 17,090 1,307 osh-cpython
27 no-host configure.util-linux 2,011,219 4 0 0 39,128 0 17,081 1,096 osh-native
6 no-host configure.yash 255,480 0 0 0 4,120 0 870 78 bash
14 no-host configure.yash 245,151 0 0 0 3,720 0 866 87 dash
22 no-host configure.yash 386,024 0 0 0 3,728 0 854 95 osh-cpython
30 no-host configure.yash 257,874 0 0 0 3,736 0 855 94 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,658 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-5a3193be
dash dash-308ec8e6
osh-cpython osh-824fe373
osh-native osh-4577e90e
host label host id
no-host no-host-13226fd6