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 469 22 25.19 1.17
bin-true no-host 674 544 2,241 815 3.32 1.21
configure.cpython no-host 14,751 14,828 28,097 15,042 1.90 1.02
configure.ocaml no-host 3,800 3,673 4,578 3,784 1.20 1.00
configure.tcc no-host 47 41 191 48 4.08 1.03
configure.util-linux no-host 13,787 14,646 30,885 14,121 2.24 1.02
configure.yash no-host 1,795 1,732 2,449 1,819 1.36 1.01
hello-world no-host 1 1 47 3 31.64 1.91

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,108 22,804 3,159 8.94 1.24
bin-true no-host 106,315 66,432 760,610 127,150 7.15 1.20
configure.cpython no-host 2,216,861 2,251,902 6,160,712 2,230,498 2.78 1.01
configure.ocaml no-host 410,884 391,071 639,705 413,510 1.56 1.01
configure.tcc no-host 6,574 5,481 23,291 7,010 3.54 1.07
configure.util-linux no-host 2,104,187 2,261,258 5,319,493 1,990,700 2.53 0.95
configure.yash no-host 256,656 244,721 383,882 258,776 1.50 1.01
hello-world no-host 155 80 3,684 348 23.77 2.25

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.5 9.0 4.82 2.03
bin-true no-host 3.0 1.4 17.4 8.3 5.78 2.74
configure.cpython no-host 27.1 27.5 27.3 27.4 1.00 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.1 19.3 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.0 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.5 1.01 1.01
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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.3 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,042 1 60 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,121 3 59 21.3 30.3 2,703,426 42,790 65,831 109,643 1,320,611 1,273,172 49,081 41 131,662 1
configure.ocaml no-host 3,784 1 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,819 1 2 2.6 24.5 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 3 85,362 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 17 2 4.5 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 469 429 43 21.5 osh-cpython
31 no-host abuild-print-help 22 19 3 9.0 osh-native
1 no-host bin-true 674 503 200 3.0 bash
9 no-host bin-true 544 414 139 1.4 dash
17 no-host bin-true 2,241 1,418 1,080 17.4 osh-cpython
25 no-host bin-true 815 575 252 8.3 osh-native
2 no-host configure.cpython 14,751 8,930 6,214 27.1 bash
10 no-host configure.cpython 14,828 9,011 6,230 27.5 dash
18 no-host configure.cpython 28,097 17,231 12,659 27.3 osh-cpython
26 no-host configure.cpython 15,042 8,935 6,364 27.4 osh-native
4 no-host configure.ocaml 3,800 1,691 1,130 20.4 bash
12 no-host configure.ocaml 3,673 1,562 1,131 20.6 dash
20 no-host configure.ocaml 4,578 2,214 1,569 20.6 osh-cpython
28 no-host configure.ocaml 3,784 1,583 1,240 20.6 osh-native
5 no-host configure.tcc 47 42 6 19.1 bash
13 no-host configure.tcc 41 30 11 19.3 dash
21 no-host configure.tcc 191 141 53 19.3 osh-cpython
29 no-host configure.tcc 48 30 19 19.3 osh-native
3 no-host configure.util-linux 13,787 8,747 5,513 30.3 bash
11 no-host configure.util-linux 14,646 9,121 6,013 30.0 dash
19 no-host configure.util-linux 30,885 20,635 11,320 30.3 osh-cpython
27 no-host configure.util-linux 14,121 8,553 5,758 30.3 osh-native
6 no-host configure.yash 1,795 1,027 773 24.2 bash
14 no-host configure.yash 1,732 1,030 704 24.4 dash
22 no-host configure.yash 2,449 1,517 976 24.4 osh-cpython
30 no-host configure.yash 1,819 1,079 745 24.5 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 43 4 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 0 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,804 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,159 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,315 0 0 0 8 0 1,990 239 bash
9 no-host bin-true 66,432 0 0 0 8 0 1,992 73 dash
17 no-host bin-true 760,610 0 0 0 8 0 1,997 196 osh-cpython
25 no-host bin-true 127,150 0 0 0 16 0 1,986 90 osh-native
2 no-host configure.cpython 2,216,861 0 0 0 32,928 0 14,438 1,214 bash
10 no-host configure.cpython 2,251,902 0 0 0 32,992 0 14,591 1,060 dash
18 no-host configure.cpython 6,160,712 0 0 0 27,512 0 13,254 1,261 osh-cpython
26 no-host configure.cpython 2,230,498 0 0 0 27,520 0 13,309 1,029 osh-native
4 no-host configure.ocaml 410,884 0 0 0 5,120 0 1,957 187 bash
12 no-host configure.ocaml 391,071 0 0 0 5,112 0 1,929 152 dash
20 no-host configure.ocaml 639,705 0 0 0 5,112 0 1,858 204 osh-cpython
28 no-host configure.ocaml 413,510 0 0 0 5,120 0 1,933 178 osh-native
5 no-host configure.tcc 6,574 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,291 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,010 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,104,187 3 0 0 42,400 0 18,562 1,151 bash
11 no-host configure.util-linux 2,261,258 0 0 0 42,584 0 17,412 1,040 dash
19 no-host configure.util-linux 5,319,493 11 0 0 39,112 0 16,968 1,242 osh-cpython
27 no-host configure.util-linux 1,990,700 0 0 0 39,120 0 17,096 997 osh-native
6 no-host configure.yash 256,656 0 0 0 4,120 0 874 98 bash
14 no-host configure.yash 244,721 0 0 0 3,720 0 867 127 dash
22 no-host configure.yash 383,882 0 0 0 3,728 0 855 98 osh-cpython
30 no-host configure.yash 258,776 0 0 0 3,736 0 850 91 osh-native
0 no-host hello-world 155 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,684 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-eb230c58
dash dash-308ec8e6
osh-cpython osh-27c2ebd4
osh-native osh-2bb35238
host label host id
no-host no-host-556df3ee