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 9 467 23 23.96 1.20
bin-true no-host 688 551 2,263 838 3.29 1.22
configure.cpython no-host 15,564 15,554 29,258 15,758 1.88 1.01
configure.ocaml no-host 3,858 3,784 4,866 3,931 1.26 1.02
configure.tcc no-host 49 42 198 50 4.09 1.03
configure.util-linux no-host 14,510 15,491 32,515 14,955 2.24 1.03
configure.yash no-host 1,885 1,821 2,544 1,890 1.35 1.00
hello-world no-host 2 1 49 3 30.12 1.74

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,561 1,096 23,680 3,196 9.25 1.25
bin-true no-host 106,367 65,478 755,623 127,214 7.10 1.20
configure.cpython no-host 2,219,932 2,243,048 6,127,662 2,241,708 2.76 1.01
configure.ocaml no-host 410,707 390,779 638,189 414,055 1.55 1.01
configure.tcc no-host 6,569 5,505 23,194 6,976 3.53 1.06
configure.util-linux no-host 2,092,929 2,265,324 5,309,117 2,015,418 2.54 0.96
configure.yash no-host 256,248 245,147 384,756 257,834 1.50 1.01
hello-world no-host 154 80 3,668 351 23.82 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.5 3.4 21.5 8.9 4.82 2.00
bin-true no-host 2.9 1.4 17.4 8.1 6.05 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.7 20.4 20.6 20.6 0.99 0.99
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.2 6.3 6.24 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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 838 1 2 2.7 8.1 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,758 1 64 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,955 3 64 22.2 30.1 2,703,274 44,770 65,796 126,121 1,320,501 1,256,652 49,081 41 131,592 1
configure.ocaml no-host 3,931 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,890 1 2 2.6 24.2 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 467 414 57 21.5 osh-cpython
31 no-host abuild-print-help 23 22 2 8.9 osh-native
1 no-host bin-true 688 500 216 2.9 bash
9 no-host bin-true 551 417 142 1.4 dash
17 no-host bin-true 2,263 1,428 1,099 17.4 osh-cpython
25 no-host bin-true 838 581 272 8.1 osh-native
2 no-host configure.cpython 15,564 9,346 6,621 27.4 bash
10 no-host configure.cpython 15,554 9,537 6,439 27.4 dash
18 no-host configure.cpython 29,258 17,813 13,319 27.4 osh-cpython
26 no-host configure.cpython 15,758 9,190 6,842 27.4 osh-native
4 no-host configure.ocaml 3,858 1,641 1,255 20.7 bash
12 no-host configure.ocaml 3,784 1,580 1,221 20.4 dash
20 no-host configure.ocaml 4,866 2,299 1,774 20.6 osh-cpython
28 no-host configure.ocaml 3,931 1,719 1,252 20.6 osh-native
5 no-host configure.tcc 49 25 24 19.3 bash
13 no-host configure.tcc 42 27 15 19.4 dash
21 no-host configure.tcc 198 142 60 19.3 osh-cpython
29 no-host configure.tcc 50 29 22 19.3 osh-native
3 no-host configure.util-linux 14,510 9,049 5,946 30.1 bash
11 no-host configure.util-linux 15,491 9,334 6,655 30.3 dash
19 no-host configure.util-linux 32,515 21,646 11,991 30.1 osh-cpython
27 no-host configure.util-linux 14,955 8,759 6,401 30.1 osh-native
6 no-host configure.yash 1,885 1,075 819 24.4 bash
14 no-host configure.yash 1,821 1,075 749 24.4 dash
22 no-host configure.yash 2,544 1,569 1,020 24.2 osh-cpython
30 no-host configure.yash 1,890 1,063 832 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 34 15 17.2 osh-cpython
24 no-host hello-world 3 0 3 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,561 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,680 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,367 0 0 0 8 0 1,997 51 bash
9 no-host bin-true 65,478 0 0 0 8 0 1,984 45 dash
17 no-host bin-true 755,623 0 0 0 8 0 1,996 243 osh-cpython
25 no-host bin-true 127,214 0 0 0 16 0 1,987 94 osh-native
2 no-host configure.cpython 2,219,932 0 0 0 32,928 0 14,451 1,096 bash
10 no-host configure.cpython 2,243,048 0 0 0 32,992 0 14,612 1,203 dash
18 no-host configure.cpython 6,127,662 0 0 0 27,512 0 13,348 1,278 osh-cpython
26 no-host configure.cpython 2,241,708 0 0 0 27,520 0 13,292 1,013 osh-native
4 no-host configure.ocaml 410,707 0 0 0 5,120 0 1,949 147 bash
12 no-host configure.ocaml 390,779 0 0 0 5,112 0 1,877 152 dash
20 no-host configure.ocaml 638,189 1 0 0 5,112 0 1,863 197 osh-cpython
28 no-host configure.ocaml 414,055 0 0 0 5,120 0 1,936 153 osh-native
5 no-host configure.tcc 6,569 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,505 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,194 0 0 0 96 0 52 5 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,092,929 1 0 0 42,400 0 18,606 1,109 bash
11 no-host configure.util-linux 2,265,324 1 0 0 42,592 0 17,587 1,395 dash
19 no-host configure.util-linux 5,309,117 19 0 0 39,112 0 17,045 1,331 osh-cpython
27 no-host configure.util-linux 2,015,418 1 0 0 39,128 0 17,078 1,204 osh-native
6 no-host configure.yash 256,248 0 0 0 4,120 0 869 76 bash
14 no-host configure.yash 245,147 0 0 0 3,720 0 869 81 dash
22 no-host configure.yash 384,756 0 0 0 3,728 0 853 102 osh-cpython
30 no-host configure.yash 257,834 0 0 0 3,736 0 854 87 osh-native
0 no-host hello-world 154 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,668 0 0 0 8 0 7 3 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-c93a7ce4
dash dash-308ec8e6
osh-cpython osh-b4108ec2
osh-native osh-616b2bea
host label host id
no-host no-host-1c33b689