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 460 22 24.06 1.14
bin-true no-host 676 546 2,227 808 3.30 1.20
configure.cpython no-host 14,881 14,978 28,317 15,089 1.90 1.01
configure.ocaml no-host 3,787 3,728 4,587 3,824 1.21 1.01
configure.tcc no-host 47 41 194 48 4.08 1.02
configure.util-linux no-host 13,909 14,795 31,065 14,198 2.23 1.02
configure.yash no-host 1,814 1,757 2,415 1,815 1.33 1.00
hello-world no-host 2 1 49 3 31.04 1.78

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,557 1,116 22,909 3,175 8.96 1.24
bin-true no-host 107,405 66,482 756,310 127,417 7.04 1.19
configure.cpython no-host 2,216,995 2,245,726 6,118,988 2,217,989 2.76 1.00
configure.ocaml no-host 410,898 391,130 637,651 413,784 1.55 1.01
configure.tcc no-host 6,553 5,488 23,227 6,980 3.54 1.07
configure.util-linux no-host 2,104,365 2,262,032 5,291,775 1,992,974 2.51 0.95
configure.yash no-host 255,582 245,029 383,555 257,837 1.50 1.01
hello-world no-host 152 83 3,694 348 24.30 2.29

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.5 21.9 8.9 4.91 2.00
bin-true no-host 2.9 1.6 17.2 8.1 5.95 2.82
configure.cpython no-host 27.4 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.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.8 1.6 17.3 6.3 6.29 2.29

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,752 3,752 0 681 1,894 1,177 2 0 50,000 0
bin-true no-host 808 1 2 2.6 8.1 154,717 13,069 2,822 9,731 78,363 66,623 5,012 3 50,000 0
configure.cpython no-host 15,089 1 58 15.0 27.4 1,772,693 49,814 28,531 86,378 908,115 778,200 42,399 60 50,000 0
configure.util-linux no-host 14,198 3 58 21.3 30.1 2,703,429 42,795 65,836 109,640 1,320,613 1,273,176 49,081 41 131,672 1
configure.ocaml no-host 3,824 1 2 2.6 20.6 150,063 11,069 5,162 7,510 71,651 70,902 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,552 30,552 0 1,501 14,818 14,233 350 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 24.4 139,720 7,987 6,623 6,317 70,323 63,080 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,295 64,478 42,686 4,552 54,563 57,180 478 3 85,372 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 15 5 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 460 429 36 21.9 osh-cpython
31 no-host abuild-print-help 22 13 10 8.9 osh-native
1 no-host bin-true 676 501 207 2.9 bash
9 no-host bin-true 546 417 139 1.6 dash
17 no-host bin-true 2,227 1,446 1,043 17.2 osh-cpython
25 no-host bin-true 808 570 252 8.1 osh-native
2 no-host configure.cpython 14,881 9,034 6,243 27.4 bash
10 no-host configure.cpython 14,978 9,003 6,395 27.4 dash
18 no-host configure.cpython 28,317 17,286 12,871 27.4 osh-cpython
26 no-host configure.cpython 15,089 8,768 6,584 27.4 osh-native
4 no-host configure.ocaml 3,787 1,599 1,226 20.6 bash
12 no-host configure.ocaml 3,728 1,636 1,102 20.6 dash
20 no-host configure.ocaml 4,587 2,170 1,623 20.6 osh-cpython
28 no-host configure.ocaml 3,824 1,569 1,292 20.6 osh-native
5 no-host configure.tcc 47 21 27 19.4 bash
13 no-host configure.tcc 41 29 13 19.4 dash
21 no-host configure.tcc 194 145 52 19.3 osh-cpython
29 no-host configure.tcc 48 30 18 19.4 osh-native
3 no-host configure.util-linux 13,909 8,779 5,600 30.1 bash
11 no-host configure.util-linux 14,795 9,187 6,103 30.1 dash
19 no-host configure.util-linux 31,065 20,901 11,239 30.1 osh-cpython
27 no-host configure.util-linux 14,198 8,625 5,771 30.1 osh-native
6 no-host configure.yash 1,814 1,061 760 24.2 bash
14 no-host configure.yash 1,757 1,003 757 24.4 dash
22 no-host configure.yash 2,415 1,451 1,006 24.2 osh-cpython
30 no-host configure.yash 1,815 1,058 762 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 37 12 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,557 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,909 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,175 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 107,405 0 0 0 8 0 1,993 66 bash
9 no-host bin-true 66,482 0 0 0 8 0 1,987 114 dash
17 no-host bin-true 756,310 0 0 0 8 0 1,997 148 osh-cpython
25 no-host bin-true 127,417 0 0 0 16 0 1,990 60 osh-native
2 no-host configure.cpython 2,216,995 0 0 0 32,928 0 14,492 967 bash
10 no-host configure.cpython 2,245,726 0 0 0 32,992 0 14,652 1,113 dash
18 no-host configure.cpython 6,118,988 0 0 0 27,512 0 13,280 1,194 osh-cpython
26 no-host configure.cpython 2,217,989 0 0 0 27,520 0 13,203 1,046 osh-native
4 no-host configure.ocaml 410,898 0 0 0 5,120 0 1,945 273 bash
12 no-host configure.ocaml 391,130 0 0 0 5,112 0 1,910 171 dash
20 no-host configure.ocaml 637,651 0 0 0 5,112 0 1,860 174 osh-cpython
28 no-host configure.ocaml 413,784 0 0 0 5,120 0 1,926 190 osh-native
5 no-host configure.tcc 6,553 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,227 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,980 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,104,365 1 0 0 42,400 0 18,555 1,072 bash
11 no-host configure.util-linux 2,262,032 1 0 0 42,584 0 17,479 1,152 dash
19 no-host configure.util-linux 5,291,775 15 0 0 39,112 0 17,001 1,238 osh-cpython
27 no-host configure.util-linux 1,992,974 0 0 0 39,120 0 16,951 993 osh-native
6 no-host configure.yash 255,582 0 0 0 4,120 0 868 84 bash
14 no-host configure.yash 245,029 0 0 0 3,720 0 868 85 dash
22 no-host configure.yash 383,555 0 0 0 3,728 0 851 93 osh-cpython
30 no-host configure.yash 257,837 0 0 0 3,736 0 847 99 osh-native
0 no-host hello-world 152 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,694 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-08076f86
dash dash-308ec8e6
osh-cpython osh-125db26c
osh-native osh-1ad48d53
host label host id
no-host no-host-556df3ee