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 10 454 23 23.70 1.19
bin-true no-host 680 544 2,225 821 3.27 1.21
configure.cpython no-host 15,361 15,350 28,739 15,566 1.87 1.01
configure.ocaml no-host 3,870 3,794 4,709 3,877 1.22 1.00
configure.tcc no-host 48 41 193 50 4.06 1.05
configure.util-linux no-host 14,279 15,168 31,633 14,796 2.22 1.04
configure.yash no-host 1,833 1,792 2,480 1,860 1.35 1.01
hello-world no-host 1 1 49 3 32.88 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,554 1,137 23,040 3,231 9.02 1.27
bin-true no-host 106,302 66,463 744,933 127,586 7.01 1.20
configure.cpython no-host 2,221,497 2,238,675 6,069,037 2,245,936 2.73 1.01
configure.ocaml no-host 411,096 391,398 634,497 413,150 1.54 1.00
configure.tcc no-host 6,548 5,014 22,992 6,994 3.51 1.07
configure.util-linux no-host 2,108,205 2,256,488 5,301,707 2,014,152 2.51 0.96
configure.yash no-host 256,110 243,070 382,810 258,513 1.49 1.01
hello-world no-host 151 84 3,632 341 24.05 2.26

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.4 8.9 4.79 2.00
bin-true no-host 3.0 1.6 17.2 7.7 5.70 2.57
configure.cpython no-host 27.3 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.4 19.8 19.1 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.3 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.0 6.24 2.19

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 821 1 2 2.7 7.7 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,566 1 62 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,796 3 61 22.2 30.1 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,877 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 50 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,860 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 23 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 19 19 0 4.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 454 420 37 21.4 osh-cpython
31 no-host abuild-print-help 23 17 6 8.9 osh-native
1 no-host bin-true 680 494 220 3.0 bash
9 no-host bin-true 544 419 134 1.6 dash
17 no-host bin-true 2,225 1,463 1,011 17.2 osh-cpython
25 no-host bin-true 821 571 267 7.7 osh-native
2 no-host configure.cpython 15,361 9,218 6,534 27.3 bash
10 no-host configure.cpython 15,350 9,247 6,529 27.4 dash
18 no-host configure.cpython 28,739 17,456 13,100 27.4 osh-cpython
26 no-host configure.cpython 15,566 9,182 6,655 27.3 osh-native
4 no-host configure.ocaml 3,870 1,671 1,225 20.4 bash
12 no-host configure.ocaml 3,794 1,612 1,202 20.6 dash
20 no-host configure.ocaml 4,709 2,254 1,660 20.6 osh-cpython
28 no-host configure.ocaml 3,877 1,659 1,255 20.4 osh-native
5 no-host configure.tcc 48 35 13 19.4 bash
13 no-host configure.tcc 41 23 18 19.8 dash
21 no-host configure.tcc 193 136 60 19.1 osh-cpython
29 no-host configure.tcc 50 30 20 19.4 osh-native
3 no-host configure.util-linux 14,279 9,076 5,683 30.1 bash
11 no-host configure.util-linux 15,168 9,393 6,263 30.1 dash
19 no-host configure.util-linux 31,633 20,870 11,831 30.3 osh-cpython
27 no-host configure.util-linux 14,796 9,087 5,904 30.1 osh-native
6 no-host configure.yash 1,833 1,056 786 24.4 bash
14 no-host configure.yash 1,792 1,032 764 24.4 dash
22 no-host configure.yash 2,480 1,474 1,048 24.2 osh-cpython
30 no-host configure.yash 1,860 1,112 753 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 38 11 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,554 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,137 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,040 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,231 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,302 0 0 0 8 0 1,997 72 bash
9 no-host bin-true 66,463 0 0 0 8 0 1,988 69 dash
17 no-host bin-true 744,933 0 0 0 8 0 1,993 202 osh-cpython
25 no-host bin-true 127,586 0 0 0 16 0 1,984 54 osh-native
2 no-host configure.cpython 2,221,497 0 0 0 32,928 0 14,517 1,194 bash
10 no-host configure.cpython 2,238,675 0 0 0 32,992 0 14,781 1,096 dash
18 no-host configure.cpython 6,069,037 0 0 0 27,512 0 13,394 1,088 osh-cpython
26 no-host configure.cpython 2,245,936 0 0 0 27,520 0 13,425 1,029 osh-native
4 no-host configure.ocaml 411,096 0 0 0 5,120 0 1,956 164 bash
12 no-host configure.ocaml 391,398 0 0 0 5,112 0 1,945 126 dash
20 no-host configure.ocaml 634,497 0 0 0 5,112 0 1,868 192 osh-cpython
28 no-host configure.ocaml 413,150 0 0 0 5,120 0 1,933 158 osh-native
5 no-host configure.tcc 6,548 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,014 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 22,992 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,108,205 2 0 0 42,400 0 18,501 1,114 bash
11 no-host configure.util-linux 2,256,488 1 0 0 42,584 0 17,414 1,164 dash
19 no-host configure.util-linux 5,301,707 8 0 0 39,136 0 17,057 1,435 osh-cpython
27 no-host configure.util-linux 2,014,152 1 0 0 39,128 0 17,078 1,010 osh-native
6 no-host configure.yash 256,110 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 243,070 0 0 0 3,720 0 865 85 dash
22 no-host configure.yash 382,810 0 0 0 3,728 0 855 86 osh-cpython
30 no-host configure.yash 258,513 0 0 0 3,736 0 855 77 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,632 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e2367caf
dash dash-308ec8e6
osh-cpython osh-59a36cbe
osh-native osh-fee5a103
host label host id
no-host no-host-f581f4dd