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 446 22 23.27 1.16
bin-true no-host 676 549 2,230 822 3.30 1.21
configure.cpython no-host 15,072 15,184 28,475 15,375 1.89 1.02
configure.ocaml no-host 3,855 3,787 4,640 3,845 1.20 1.00
configure.tcc no-host 47 42 190 49 4.00 1.03
configure.util-linux no-host 14,074 15,052 31,127 14,512 2.21 1.03
configure.yash no-host 1,819 1,807 2,430 1,840 1.34 1.01
hello-world no-host 1 1 48 3 32.53 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,525 1,107 23,019 3,192 9.12 1.26
bin-true no-host 107,257 66,427 739,949 128,635 6.90 1.20
configure.cpython no-host 2,223,491 2,241,276 6,055,620 2,253,163 2.72 1.01
configure.ocaml no-host 410,619 391,720 634,125 413,252 1.54 1.01
configure.tcc no-host 6,542 5,483 22,993 6,971 3.51 1.07
configure.util-linux no-host 2,108,339 2,256,272 5,292,431 2,024,054 2.51 0.96
configure.yash no-host 256,513 245,235 383,194 259,214 1.49 1.01
hello-world no-host 151 85 3,624 339 24.00 2.25

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.4 9.0 4.94 2.09
bin-true no-host 2.9 1.4 17.2 8.0 5.95 2.77
configure.cpython no-host 27.4 27.4 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.1 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.6 1.6 17.0 6.2 6.50 2.35

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 822 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,375 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,512 3 59 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,845 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.3 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,840 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 22 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 19 12 8 4.3 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 446 388 61 21.4 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
1 no-host bin-true 676 506 202 2.9 bash
9 no-host bin-true 549 418 140 1.4 dash
17 no-host bin-true 2,230 1,452 1,025 17.2 osh-cpython
25 no-host bin-true 822 589 247 8.0 osh-native
2 no-host configure.cpython 15,072 9,012 6,459 27.4 bash
10 no-host configure.cpython 15,184 9,074 6,512 27.4 dash
18 no-host configure.cpython 28,475 17,089 13,181 27.3 osh-cpython
26 no-host configure.cpython 15,375 9,227 6,384 27.5 osh-native
4 no-host configure.ocaml 3,855 1,662 1,201 20.6 bash
12 no-host configure.ocaml 3,787 1,610 1,197 20.6 dash
20 no-host configure.ocaml 4,640 2,276 1,562 20.4 osh-cpython
28 no-host configure.ocaml 3,845 1,684 1,199 20.6 osh-native
5 no-host configure.tcc 47 28 20 19.4 bash
13 no-host configure.tcc 42 26 16 19.1 dash
21 no-host configure.tcc 190 144 49 19.4 osh-cpython
29 no-host configure.tcc 49 30 19 19.3 osh-native
3 no-host configure.util-linux 14,074 8,825 5,715 30.1 bash
11 no-host configure.util-linux 15,052 9,222 6,324 30.0 dash
19 no-host configure.util-linux 31,127 20,801 11,369 30.1 osh-cpython
27 no-host configure.util-linux 14,512 8,948 5,752 30.0 osh-native
6 no-host configure.yash 1,819 1,058 770 24.2 bash
14 no-host configure.yash 1,807 1,021 789 24.2 dash
22 no-host configure.yash 2,430 1,514 958 24.4 osh-cpython
30 no-host configure.yash 1,840 1,037 806 24.4 osh-native
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 36 12 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,525 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,019 0 0 0 8 0 47 17 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,257 0 0 0 8 0 1,999 37 bash
9 no-host bin-true 66,427 0 0 0 8 0 1,995 118 dash
17 no-host bin-true 739,949 0 0 0 8 0 1,999 430 osh-cpython
25 no-host bin-true 128,635 0 0 0 16 0 1,992 208 osh-native
2 no-host configure.cpython 2,223,491 0 0 0 32,928 0 14,597 1,092 bash
10 no-host configure.cpython 2,241,276 0 0 0 32,992 0 14,741 1,100 dash
18 no-host configure.cpython 6,055,620 0 0 0 27,512 0 13,228 1,180 osh-cpython
26 no-host configure.cpython 2,253,163 0 0 0 27,520 0 13,400 937 osh-native
4 no-host configure.ocaml 410,619 0 0 0 5,120 0 1,956 162 bash
12 no-host configure.ocaml 391,720 0 0 0 5,112 0 1,924 147 dash
20 no-host configure.ocaml 634,125 0 0 0 5,112 0 1,866 164 osh-cpython
28 no-host configure.ocaml 413,252 0 0 0 5,120 0 1,932 161 osh-native
5 no-host configure.tcc 6,542 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,993 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,108,339 0 0 0 42,400 0 18,498 1,020 bash
11 no-host configure.util-linux 2,256,272 0 0 0 42,584 0 17,380 1,099 dash
19 no-host configure.util-linux 5,292,431 6 0 0 39,128 0 17,032 1,331 osh-cpython
27 no-host configure.util-linux 2,024,054 0 0 0 39,120 0 17,044 1,142 osh-native
6 no-host configure.yash 256,513 0 0 0 4,120 0 869 80 bash
14 no-host configure.yash 245,235 0 0 0 3,720 0 867 80 dash
22 no-host configure.yash 383,194 0 0 0 3,728 0 857 107 osh-cpython
30 no-host configure.yash 259,214 0 0 0 3,736 0 855 69 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,624 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1c6abfa4
dash dash-308ec8e6
osh-cpython osh-12bf24b5
osh-native osh-6e2bbfac
host label host id
no-host no-host-f581f4dd