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 456 22 23.47 1.15
bin-true no-host 699 544 2,231 818 3.19 1.17
configure.cpython no-host 15,818 15,368 28,581 15,506 1.81 0.98
configure.ocaml no-host 4,027 3,840 4,638 3,836 1.15 0.95
configure.tcc no-host 51 43 193 50 3.78 0.97
configure.util-linux no-host 14,556 15,294 30,978 14,726 2.13 1.01
configure.yash no-host 1,889 1,795 2,454 1,845 1.30 0.98
hello-world no-host 2 1 48 3 27.71 1.61

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,516 1,101 23,441 3,197 9.32 1.27
bin-true no-host 104,352 67,470 760,083 128,150 7.28 1.23
configure.cpython no-host 2,223,533 2,243,824 6,123,437 2,230,504 2.75 1.00
configure.ocaml no-host 410,668 391,110 639,705 413,343 1.56 1.01
configure.tcc no-host 6,547 5,491 23,202 6,973 3.54 1.07
configure.util-linux no-host 2,098,501 2,260,138 5,326,702 2,011,225 2.54 0.96
configure.yash no-host 256,093 244,609 385,697 257,283 1.51 1.00
hello-world no-host 153 82 3,656 341 23.90 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.3 3.4 21.6 8.8 5.00 2.03
bin-true no-host 2.9 1.4 17.2 8.1 5.95 2.82
configure.cpython no-host 27.3 27.4 27.5 27.4 1.01 1.00
configure.ocaml no-host 20.6 22.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.5 1.00 1.01
hello-world no-host 2.8 1.4 17.4 6.2 6.33 2.24

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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 818 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,506 1 62 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,726 3 61 22.2 30.3 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,836 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,845 1 2 2.6 24.5 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 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 19 16 4 4.3 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 456 430 30 21.6 osh-cpython
31 no-host abuild-print-help 22 17 6 8.8 osh-native
1 no-host bin-true 699 503 226 2.9 bash
9 no-host bin-true 544 421 132 1.4 dash
17 no-host bin-true 2,231 1,416 1,075 17.2 osh-cpython
25 no-host bin-true 818 580 255 8.1 osh-native
2 no-host configure.cpython 15,818 9,556 6,681 27.3 bash
10 no-host configure.cpython 15,368 9,164 6,627 27.4 dash
18 no-host configure.cpython 28,581 17,147 13,251 27.5 osh-cpython
26 no-host configure.cpython 15,506 9,137 6,633 27.4 osh-native
4 no-host configure.ocaml 4,027 1,800 1,268 20.6 bash
12 no-host configure.ocaml 3,840 1,641 1,218 22.6 dash
20 no-host configure.ocaml 4,638 2,277 1,565 20.4 osh-cpython
28 no-host configure.ocaml 3,836 1,606 1,268 20.6 osh-native
5 no-host configure.tcc 51 27 25 19.3 bash
13 no-host configure.tcc 43 28 15 19.4 dash
21 no-host configure.tcc 193 161 35 19.3 osh-cpython
29 no-host configure.tcc 50 27 24 19.3 osh-native
3 no-host configure.util-linux 14,556 9,175 5,869 30.1 bash
11 no-host configure.util-linux 15,294 9,288 6,502 30.1 dash
19 no-host configure.util-linux 30,978 20,574 11,452 30.1 osh-cpython
27 no-host configure.util-linux 14,726 8,986 5,938 30.3 osh-native
6 no-host configure.yash 1,889 1,108 791 24.4 bash
14 no-host configure.yash 1,795 1,020 779 24.4 dash
22 no-host configure.yash 2,454 1,541 956 24.4 osh-cpython
30 no-host configure.yash 1,845 1,096 753 24.5 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 40 8 17.4 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,516 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,441 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 104,352 0 0 0 8 0 1,987 40 bash
9 no-host bin-true 67,470 0 0 0 8 0 1,992 41 dash
17 no-host bin-true 760,083 0 0 0 8 0 1,999 156 osh-cpython
25 no-host bin-true 128,150 0 0 0 16 0 1,986 148 osh-native
2 no-host configure.cpython 2,223,533 0 0 0 32,928 0 14,551 1,164 bash
10 no-host configure.cpython 2,243,824 0 0 0 32,992 0 14,591 1,199 dash
18 no-host configure.cpython 6,123,437 1 0 0 27,512 0 13,277 1,161 osh-cpython
26 no-host configure.cpython 2,230,504 0 0 0 27,520 0 13,301 928 osh-native
4 no-host configure.ocaml 410,668 0 0 0 5,120 0 1,950 174 bash
12 no-host configure.ocaml 391,110 0 0 0 5,112 0 1,935 146 dash
20 no-host configure.ocaml 639,705 0 0 0 5,112 0 1,858 165 osh-cpython
28 no-host configure.ocaml 413,343 0 0 0 5,120 0 1,933 162 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,202 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,973 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,098,501 0 0 0 42,400 0 18,702 1,146 bash
11 no-host configure.util-linux 2,260,138 0 0 0 42,584 0 17,484 1,077 dash
19 no-host configure.util-linux 5,326,702 9 0 0 39,112 0 17,040 1,271 osh-cpython
27 no-host configure.util-linux 2,011,225 0 0 0 39,120 0 17,058 975 osh-native
6 no-host configure.yash 256,093 0 0 0 4,120 0 871 73 bash
14 no-host configure.yash 244,609 0 0 0 3,720 0 868 91 dash
22 no-host configure.yash 385,697 0 0 0 3,728 0 856 85 osh-cpython
30 no-host configure.yash 257,283 0 0 0 3,736 0 855 75 osh-native
0 no-host hello-world 153 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,656 0 0 0 8 0 7 3 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-9ede962a
dash dash-308ec8e6
osh-cpython osh-2d3409e9
osh-native osh-7a917cef
host label host id
no-host no-host-1c33b689