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 453 22 22.61 1.11
bin-true no-host 678 543 2,222 817 3.28 1.20
configure.cpython no-host 15,124 15,126 28,556 15,289 1.89 1.01
configure.ocaml no-host 3,790 3,738 4,644 3,842 1.23 1.01
configure.tcc no-host 48 42 190 49 3.99 1.02
configure.util-linux no-host 14,014 15,009 31,236 14,486 2.23 1.03
configure.yash no-host 1,865 1,778 2,435 1,828 1.31 0.98
hello-world no-host 2 1 47 3 30.16 1.92

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,568 1,097 23,073 3,198 8.98 1.25
bin-true no-host 107,326 65,435 742,004 127,560 6.91 1.19
configure.cpython no-host 2,222,552 2,236,812 6,057,224 2,245,355 2.73 1.01
configure.ocaml no-host 410,364 391,025 634,060 414,513 1.55 1.01
configure.tcc no-host 6,549 5,487 22,984 6,977 3.51 1.07
configure.util-linux no-host 2,109,962 2,260,239 5,294,203 2,015,994 2.51 0.96
configure.yash no-host 256,573 245,221 383,805 259,251 1.50 1.01
hello-world no-host 154 82 3,634 344 23.60 2.23

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 8.9 4.82 2.00
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 0.99 0.99
configure.tcc no-host 19.1 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.1 30.3 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.9 1.4 17.0 6.2 5.91 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.2 6.2 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 817 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,289 1 60 15.9 27.5 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,486 3 58 22.2 30.3 2,695,085 29,056 65,774 126,121 1,312,366 1,256,598 49,081 41 131,548 1
configure.ocaml no-host 3,842 1 2 2.7 20.4 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,828 1 2 2.6 24.2 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 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 14 7 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 453 416 41 21.5 osh-cpython
31 no-host abuild-print-help 22 13 10 8.9 osh-native
1 no-host bin-true 678 506 203 3.0 bash
9 no-host bin-true 543 416 136 1.4 dash
17 no-host bin-true 2,222 1,496 972 17.3 osh-cpython
25 no-host bin-true 817 590 241 8.0 osh-native
2 no-host configure.cpython 15,124 9,066 6,461 27.4 bash
10 no-host configure.cpython 15,126 9,113 6,388 27.4 dash
18 no-host configure.cpython 28,556 17,286 13,060 27.4 osh-cpython
26 no-host configure.cpython 15,289 9,213 6,340 27.5 osh-native
4 no-host configure.ocaml 3,790 1,622 1,206 20.6 bash
12 no-host configure.ocaml 3,738 1,609 1,147 20.6 dash
20 no-host configure.ocaml 4,644 2,286 1,552 20.4 osh-cpython
28 no-host configure.ocaml 3,842 1,689 1,193 20.4 osh-native
5 no-host configure.tcc 48 28 20 19.1 bash
13 no-host configure.tcc 42 33 9 19.3 dash
21 no-host configure.tcc 190 130 63 19.3 osh-cpython
29 no-host configure.tcc 49 27 22 19.4 osh-native
3 no-host configure.util-linux 14,014 8,858 5,634 30.3 bash
11 no-host configure.util-linux 15,009 9,181 6,332 30.3 dash
19 no-host configure.util-linux 31,236 20,829 11,456 30.1 osh-cpython
27 no-host configure.util-linux 14,486 8,781 5,897 30.3 osh-native
6 no-host configure.yash 1,865 1,085 785 24.4 bash
14 no-host configure.yash 1,778 1,019 762 24.4 dash
22 no-host configure.yash 2,435 1,452 1,026 24.2 osh-cpython
30 no-host configure.yash 1,828 1,057 775 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 24 23 17.0 osh-cpython
24 no-host hello-world 3 3 0 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,568 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,073 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,326 0 0 0 8 0 1,997 57 bash
9 no-host bin-true 65,435 0 0 0 8 0 1,987 44 dash
17 no-host bin-true 742,004 0 0 0 8 0 1,996 226 osh-cpython
25 no-host bin-true 127,560 0 0 0 16 0 1,978 61 osh-native
2 no-host configure.cpython 2,222,552 0 0 0 32,928 0 14,589 1,033 bash
10 no-host configure.cpython 2,236,812 0 0 0 32,992 0 14,618 1,001 dash
18 no-host configure.cpython 6,057,224 1 0 0 27,512 0 13,417 1,145 osh-cpython
26 no-host configure.cpython 2,245,355 0 0 0 27,520 0 13,423 1,012 osh-native
4 no-host configure.ocaml 410,364 0 0 0 5,120 0 1,945 191 bash
12 no-host configure.ocaml 391,025 0 0 0 5,112 0 1,937 177 dash
20 no-host configure.ocaml 634,060 0 0 0 5,112 0 1,860 174 osh-cpython
28 no-host configure.ocaml 414,513 0 0 0 5,120 0 1,938 160 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,984 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,109,962 0 0 0 42,400 0 18,505 936 bash
11 no-host configure.util-linux 2,260,239 0 0 0 42,584 0 17,429 1,056 dash
19 no-host configure.util-linux 5,294,203 6 0 0 39,120 0 17,032 1,419 osh-cpython
27 no-host configure.util-linux 2,015,994 1 0 0 39,120 0 16,995 965 osh-native
6 no-host configure.yash 256,573 0 0 0 4,120 0 868 93 bash
14 no-host configure.yash 245,221 0 0 0 3,720 0 870 78 dash
22 no-host configure.yash 383,805 0 0 0 3,728 0 856 82 osh-cpython
30 no-host configure.yash 259,251 0 0 0 3,736 0 851 87 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,634 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-26a9b943
dash dash-308ec8e6
osh-cpython osh-b486f342
osh-native osh-ea2eeb9b
host label host id
no-host no-host-f581f4dd