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 477 23 24.65 1.18
bin-true no-host 693 548 2,315 831 3.34 1.20
configure.cpython no-host 15,697 15,743 30,343 15,934 1.93 1.02
configure.ocaml no-host 3,963 3,876 4,812 3,958 1.21 1.00
configure.tcc no-host 49 43 201 50 4.09 1.02
configure.util-linux no-host 14,683 15,558 33,060 15,016 2.25 1.02
configure.yash no-host 1,890 1,848 2,555 1,909 1.35 1.01
hello-world no-host 2 1 52 3 30.21 1.71

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,546 1,106 22,927 3,171 9.01 1.25
bin-true no-host 107,380 66,403 761,819 128,189 7.09 1.19
configure.cpython no-host 2,215,919 2,242,897 6,188,375 2,217,715 2.79 1.00
configure.ocaml no-host 410,508 391,473 640,602 413,268 1.56 1.01
configure.tcc no-host 6,552 5,481 23,289 6,988 3.55 1.07
configure.util-linux no-host 2,108,718 2,259,232 5,343,918 1,995,654 2.53 0.95
configure.yash no-host 255,414 244,602 385,518 258,188 1.51 1.01
hello-world no-host 153 79 3,693 347 24.14 2.27

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.9 8.9 5.06 2.06
bin-true no-host 3.0 1.6 17.6 7.9 5.82 2.61
configure.cpython no-host 27.5 27.1 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.0 30.0 0.99 0.99
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.3 17.6 6.2 6.09 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.3 6.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 831 1 2 2.6 7.9 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,934 1 65 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 15,016 3 65 21.3 30.0 2,703,426 42,745 65,812 109,643 1,320,611 1,273,172 27,391 41 131,624 1
configure.ocaml no-host 3,958 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,909 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 9 1 3.4 dash
23 no-host abuild-print-help 477 428 51 21.9 osh-cpython
31 no-host abuild-print-help 23 16 7 8.9 osh-native
1 no-host bin-true 693 502 220 3.0 bash
9 no-host bin-true 548 435 123 1.6 dash
17 no-host bin-true 2,315 1,450 1,141 17.6 osh-cpython
25 no-host bin-true 831 588 259 7.9 osh-native
2 no-host configure.cpython 15,697 9,432 6,673 27.5 bash
10 no-host configure.cpython 15,743 9,482 6,691 27.1 dash
18 no-host configure.cpython 30,343 18,176 14,152 27.4 osh-cpython
26 no-host configure.cpython 15,934 9,297 6,908 27.4 osh-native
4 no-host configure.ocaml 3,963 1,715 1,272 20.6 bash
12 no-host configure.ocaml 3,876 1,678 1,218 20.6 dash
20 no-host configure.ocaml 4,812 2,253 1,773 20.6 osh-cpython
28 no-host configure.ocaml 3,958 1,627 1,371 20.6 osh-native
5 no-host configure.tcc 49 30 20 19.1 bash
13 no-host configure.tcc 43 25 18 19.3 dash
21 no-host configure.tcc 201 124 81 19.4 osh-cpython
29 no-host configure.tcc 50 29 21 19.3 osh-native
3 no-host configure.util-linux 14,683 9,159 6,011 30.3 bash
11 no-host configure.util-linux 15,558 9,391 6,661 30.3 dash
19 no-host configure.util-linux 33,060 21,638 12,585 30.0 osh-cpython
27 no-host configure.util-linux 15,016 9,014 6,201 30.0 osh-native
6 no-host configure.yash 1,890 1,084 815 24.2 bash
14 no-host configure.yash 1,848 1,069 782 24.4 dash
22 no-host configure.yash 2,555 1,580 1,021 24.4 osh-cpython
30 no-host configure.yash 1,909 1,090 822 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 52 32 20 17.6 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,546 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,927 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 3 osh-native
1 no-host bin-true 107,380 0 0 0 8 0 1,988 57 bash
9 no-host bin-true 66,403 0 0 0 8 0 1,981 56 dash
17 no-host bin-true 761,819 0 0 0 8 0 1,993 129 osh-cpython
25 no-host bin-true 128,189 0 0 0 16 0 1,991 107 osh-native
2 no-host configure.cpython 2,215,919 1 0 0 32,928 0 14,497 1,202 bash
10 no-host configure.cpython 2,242,897 0 0 0 32,992 0 14,619 1,015 dash
18 no-host configure.cpython 6,188,375 0 0 0 27,512 0 13,235 1,173 osh-cpython
26 no-host configure.cpython 2,217,715 0 0 0 27,520 0 13,310 996 osh-native
4 no-host configure.ocaml 410,508 0 0 0 5,120 0 1,951 145 bash
12 no-host configure.ocaml 391,473 0 0 0 5,112 0 1,935 154 dash
20 no-host configure.ocaml 640,602 0 0 0 5,112 0 1,849 189 osh-cpython
28 no-host configure.ocaml 413,268 0 0 0 5,120 0 1,918 158 osh-native
5 no-host configure.tcc 6,552 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 23,289 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,988 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,108,718 0 0 0 42,408 0 18,538 1,074 bash
11 no-host configure.util-linux 2,259,232 5 0 0 42,592 0 17,464 1,126 dash
19 no-host configure.util-linux 5,343,918 12 0 0 39,152 0 16,961 1,362 osh-cpython
27 no-host configure.util-linux 1,995,654 1 0 0 39,128 0 16,988 1,117 osh-native
6 no-host configure.yash 255,414 0 0 0 4,120 0 869 89 bash
14 no-host configure.yash 244,602 0 0 0 3,720 0 863 72 dash
22 no-host configure.yash 385,518 0 0 0 3,728 0 850 101 osh-cpython
30 no-host configure.yash 258,188 0 0 0 3,736 0 848 99 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,693 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-798a3b21
dash dash-308ec8e6
osh-cpython osh-9935e9a7
osh-native osh-ff56b313
host label host id
no-host no-host-556df3ee