OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

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 11 5 360 13 32.22 1.15
bin-true no-host 288 274 1,198 597 4.15 2.07
configure.cpython no-host 8,029 9,824 17,566 9,427 2.19 1.17
configure.ocaml no-host 2,959 2,651 3,227 2,877 1.09 0.97
configure.tcc no-host 37 24 131 29 3.50 0.77
configure.util-linux no-host 8,694 8,274 20,288 8,206 2.33 0.94
configure.yash no-host 1,441 1,057 1,911 1,113 1.33 0.77
hello-world no-host 1 0 31 2 41.51 2.32

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,579 1,113 22,720 3,150 8.81 1.22
bin-true no-host 106,357 66,454 743,077 134,278 6.99 1.26
configure.cpython no-host 2,218,959 2,240,807 6,056,314 2,271,343 2.73 1.02
configure.ocaml no-host 410,892 391,483 631,359 415,866 1.54 1.01
configure.tcc no-host 6,516 5,489 22,909 7,043 3.52 1.08
configure.util-linux no-host 2,096,863 2,263,491 5,223,424 2,053,461 2.49 0.98
configure.yash no-host 255,938 245,391 382,652 259,480 1.50 1.01
hello-world no-host 156 81 3,627 345 23.25 2.21

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.6 3.6 21.9 9.1 4.75 1.98
bin-true no-host 3.1 1.6 17.4 8.1 5.69 2.65
configure.cpython no-host 27.5 27.6 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.8 20.7 20.7 20.7 1.00 1.00
configure.tcc no-host 19.5 19.5 19.6 19.5 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.4 1.00 1.00
configure.yash no-host 24.6 24.5 24.6 24.6 1.00 1.00
hello-world no-host 3.1 1.7 17.3 6.3 5.68 2.06

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 2 0 0 0.2 6.3 3,666 3,666 0 673 1,821 1,172 2 0 50,000 0
bin-true no-host 597 1 2 2.7 8.1 165,628 23,878 2,801 12,721 88,290 64,617 5,012 3 50,000 0
configure.cpython no-host 9,427 1 57 16.1 27.5 1,817,201 26,784 28,982 103,213 953,852 760,136 37,405 63 50,000 0
configure.util-linux no-host 8,206 2 49 22.6 30.4 2,764,726 27,105 67,639 130,425 1,375,562 1,258,739 44,794 42 135,278 1
configure.ocaml no-host 2,877 0 1 2.7 20.7 152,172 11,269 5,200 8,750 73,943 69,479 2,375 3 50,000 0
configure.tcc no-host 29 0 0 1.3 19.5 30,775 30,775 0 1,623 14,989 14,163 329 0 50,000 0
configure.yash no-host 1,113 0 1 2.6 24.6 142,131 9,792 6,577 7,667 72,905 61,559 2,608 3 50,000 0
abuild-print-help no-host 13 0 1 2.9 9.1 117,505 67,565 42,990 4,848 55,552 57,105 477 3 85,980 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 11 11 0 4.6 bash
15 no-host abuild-print-help 5 5 0 3.6 dash
23 no-host abuild-print-help 360 334 28 21.9 osh-cpython
31 no-host abuild-print-help 13 13 0 9.1 osh-native
1 no-host bin-true 288 238 62 3.1 bash
9 no-host bin-true 274 214 63 1.6 dash
17 no-host bin-true 1,198 885 450 17.4 osh-cpython
25 no-host bin-true 597 413 193 8.1 osh-native
2 no-host configure.cpython 8,029 6,098 2,103 27.5 bash
10 no-host configure.cpython 9,824 7,117 2,841 27.6 dash
18 no-host configure.cpython 17,566 13,518 5,144 27.5 osh-cpython
26 no-host configure.cpython 9,427 6,943 2,645 27.5 osh-native
4 no-host configure.ocaml 2,959 1,384 593 20.8 bash
12 no-host configure.ocaml 2,651 1,239 417 20.7 dash
20 no-host configure.ocaml 3,227 1,656 669 20.7 osh-cpython
28 no-host configure.ocaml 2,877 1,344 549 20.7 osh-native
5 no-host configure.tcc 37 33 5 19.5 bash
13 no-host configure.tcc 24 20 4 19.5 dash
21 no-host configure.tcc 131 102 32 19.6 osh-cpython
29 no-host configure.tcc 29 24 5 19.5 osh-native
3 no-host configure.util-linux 8,694 6,580 2,332 30.3 bash
11 no-host configure.util-linux 8,274 6,325 2,160 30.3 dash
19 no-host configure.util-linux 20,288 15,968 4,959 30.3 osh-cpython
27 no-host configure.util-linux 8,206 6,161 2,127 30.4 osh-native
6 no-host configure.yash 1,441 1,034 411 24.6 bash
14 no-host configure.yash 1,057 754 303 24.5 dash
22 no-host configure.yash 1,911 1,406 535 24.6 osh-cpython
30 no-host configure.yash 1,113 860 253 24.6 osh-native
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 0 0 0 1.7 dash
16 no-host hello-world 31 16 15 17.3 osh-cpython
24 no-host hello-world 2 2 0 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,579 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,720 0 0 0 8 0 44 16 osh-cpython
31 no-host abuild-print-help 3,150 0 0 0 16 0 36 0 osh-native
1 no-host bin-true 106,357 0 0 0 8 0 1,999 32 bash
9 no-host bin-true 66,454 0 0 0 8 0 1,997 26 dash
17 no-host bin-true 743,077 0 0 0 8 0 2,004 140 osh-cpython
25 no-host bin-true 134,278 0 0 0 16 0 2,001 57 osh-native
2 no-host configure.cpython 2,218,959 1 0 0 32,928 0 14,422 1,132 bash
10 no-host configure.cpython 2,240,807 0 0 0 32,992 0 14,675 1,322 dash
18 no-host configure.cpython 6,056,314 0 0 0 27,512 0 16,175 4,771 osh-cpython
26 no-host configure.cpython 2,271,343 0 0 0 27,520 0 14,584 2,567 osh-native
4 no-host configure.ocaml 410,892 0 0 0 5,120 0 1,935 233 bash
12 no-host configure.ocaml 391,483 0 0 0 5,112 0 1,946 211 dash
20 no-host configure.ocaml 631,359 0 0 0 5,112 0 1,858 214 osh-cpython
28 no-host configure.ocaml 415,866 0 0 0 5,120 0 1,901 226 osh-native
5 no-host configure.tcc 6,516 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 22,909 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 7,043 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,863 3 0 0 42,400 0 23,285 5,961 bash
11 no-host configure.util-linux 2,263,491 0 0 0 42,584 0 19,574 3,501 dash
19 no-host configure.util-linux 5,223,424 10 0 0 39,120 0 17,234 1,547 osh-cpython
27 no-host configure.util-linux 2,053,461 0 0 0 39,136 0 17,183 1,020 osh-native
6 no-host configure.yash 255,938 0 0 0 4,120 0 867 83 bash
14 no-host configure.yash 245,391 0 0 0 3,720 0 871 77 dash
22 no-host configure.yash 382,652 0 0 0 3,728 0 853 105 osh-cpython
30 no-host configure.yash 259,480 0 0 0 3,736 0 851 92 osh-native
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,627 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-cb43b4bb
dash dash-308ec8e6
osh-cpython osh-53e619bc
osh-native osh-4c87a30b
host label host id
no-host no-host-bcfc81f0

raw files