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 452 23 23.05 1.16
bin-true no-host 683 554 2,218 830 3.25 1.21
configure.cpython no-host 15,455 15,608 28,720 15,482 1.86 1.00
configure.ocaml no-host 3,899 3,802 4,635 3,884 1.19 1.00
configure.tcc no-host 48 41 193 49 4.01 1.02
configure.util-linux no-host 14,431 15,115 31,584 14,610 2.19 1.01
configure.yash no-host 1,876 1,815 2,466 1,857 1.31 0.99
hello-world no-host 2 1 48 3 31.71 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,537 1,091 23,060 3,220 9.09 1.27
bin-true no-host 106,296 65,420 745,957 128,550 7.02 1.21
configure.cpython no-host 2,220,706 2,241,614 6,057,036 2,253,624 2.73 1.01
configure.ocaml no-host 411,188 391,400 633,988 412,989 1.54 1.00
configure.tcc no-host 6,561 5,498 22,963 6,972 3.50 1.06
configure.util-linux no-host 2,110,053 2,254,861 5,299,502 2,018,383 2.51 0.96
configure.yash no-host 256,623 244,506 383,338 258,547 1.49 1.01
hello-world no-host 153 84 3,629 340 23.72 2.22

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 9.0 4.97 2.09
bin-true no-host 3.0 1.6 17.2 8.0 5.70 2.65
configure.cpython no-host 27.4 27.3 27.5 27.3 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.1 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.6 17.0 6.0 5.91 2.09

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.2 6.0 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 830 1 2 2.7 8.0 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,482 1 60 15.9 27.3 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,610 4 61 22.2 30.0 2,695,085 29,056 65,754 126,121 1,312,366 1,256,598 49,081 41 131,508 1
configure.ocaml no-host 3,884 1 2 2.7 20.6 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,857 1 2 2.6 24.4 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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 12 8 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 452 404 51 21.5 osh-cpython
31 no-host abuild-print-help 23 17 6 9.0 osh-native
1 no-host bin-true 683 498 219 3.0 bash
9 no-host bin-true 554 424 138 1.6 dash
17 no-host bin-true 2,218 1,481 983 17.2 osh-cpython
25 no-host bin-true 830 564 271 8.0 osh-native
2 no-host configure.cpython 15,455 9,214 6,654 27.4 bash
10 no-host configure.cpython 15,608 9,260 6,772 27.3 dash
18 no-host configure.cpython 28,720 17,491 13,039 27.5 osh-cpython
26 no-host configure.cpython 15,482 9,097 6,655 27.3 osh-native
4 no-host configure.ocaml 3,899 1,676 1,265 20.6 bash
12 no-host configure.ocaml 3,802 1,677 1,143 20.6 dash
20 no-host configure.ocaml 4,635 2,145 1,693 20.6 osh-cpython
28 no-host configure.ocaml 3,884 1,615 1,307 20.6 osh-native
5 no-host configure.tcc 48 36 12 19.1 bash
13 no-host configure.tcc 41 21 21 19.3 dash
21 no-host configure.tcc 193 135 61 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.4 osh-native
3 no-host configure.util-linux 14,431 9,058 5,856 30.0 bash
11 no-host configure.util-linux 15,115 9,262 6,351 30.1 dash
19 no-host configure.util-linux 31,584 21,076 11,582 30.1 osh-cpython
27 no-host configure.util-linux 14,610 8,816 5,987 30.0 osh-native
6 no-host configure.yash 1,876 1,143 742 24.2 bash
14 no-host configure.yash 1,815 1,036 783 24.4 dash
22 no-host configure.yash 2,466 1,548 960 24.4 osh-cpython
30 no-host configure.yash 1,857 1,008 853 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 30 18 17.0 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,537 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,060 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,220 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,296 0 0 0 8 0 1,988 51 bash
9 no-host bin-true 65,420 0 0 0 8 0 1,992 93 dash
17 no-host bin-true 745,957 0 0 0 8 0 1,992 177 osh-cpython
25 no-host bin-true 128,550 0 0 0 16 0 1,991 90 osh-native
2 no-host configure.cpython 2,220,706 0 0 0 32,928 0 14,611 1,071 bash
10 no-host configure.cpython 2,241,614 0 0 0 32,992 0 14,738 1,171 dash
18 no-host configure.cpython 6,057,036 0 0 0 27,512 0 13,373 1,204 osh-cpython
26 no-host configure.cpython 2,253,624 0 0 0 27,520 0 13,316 1,010 osh-native
4 no-host configure.ocaml 411,188 0 0 0 5,120 0 1,945 159 bash
12 no-host configure.ocaml 391,400 0 0 0 5,112 0 1,895 159 dash
20 no-host configure.ocaml 633,988 0 0 0 5,112 0 1,857 173 osh-cpython
28 no-host configure.ocaml 412,989 0 0 0 5,120 0 1,930 157 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,498 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,963 0 0 0 96 0 52 10 osh-cpython
29 no-host configure.tcc 6,972 0 0 0 104 0 46 2 osh-native
3 no-host configure.util-linux 2,110,053 0 0 0 42,400 0 18,611 1,151 bash
11 no-host configure.util-linux 2,254,861 0 0 0 42,592 0 17,410 1,172 dash
19 no-host configure.util-linux 5,299,502 13 0 0 39,144 0 17,050 1,395 osh-cpython
27 no-host configure.util-linux 2,018,383 1 0 0 39,128 0 17,012 1,057 osh-native
6 no-host configure.yash 256,623 0 0 0 4,120 0 872 64 bash
14 no-host configure.yash 244,506 0 0 0 3,720 0 868 71 dash
22 no-host configure.yash 383,338 0 0 0 3,728 0 857 101 osh-cpython
30 no-host configure.yash 258,547 0 0 0 3,736 0 852 104 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 1 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,629 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-9772a87f
dash dash-308ec8e6
osh-cpython osh-37433d93
osh-native osh-d6414160
host label host id
no-host no-host-f581f4dd