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 455 23 23.55 1.18
bin-true no-host 675 544 2,278 814 3.38 1.21
configure.cpython no-host 15,000 15,010 28,640 15,256 1.91 1.02
configure.ocaml no-host 3,803 3,727 4,639 3,811 1.22 1.00
configure.tcc no-host 48 42 194 49 4.07 1.02
configure.util-linux no-host 13,986 14,825 31,130 14,422 2.23 1.03
configure.yash no-host 1,820 1,757 2,435 1,811 1.34 0.99
hello-world no-host 1 1 49 3 32.94 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,556 1,099 22,948 3,183 8.98 1.25
bin-true no-host 106,380 65,437 760,801 128,206 7.15 1.21
configure.cpython no-host 2,226,794 2,241,096 6,186,179 2,228,879 2.78 1.00
configure.ocaml no-host 410,937 390,794 640,543 413,389 1.56 1.01
configure.tcc no-host 6,535 5,495 23,333 6,984 3.57 1.07
configure.util-linux no-host 2,101,106 2,262,319 5,337,023 2,001,765 2.54 0.95
configure.yash no-host 256,238 244,605 385,535 258,183 1.50 1.01
hello-world no-host 152 78 3,693 350 24.30 2.30

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.9 9.0 4.91 2.03
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.3 27.1 27.3 27.5 1.00 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.3 30.5 1.00 1.01
configure.yash no-host 24.4 24.5 24.2 24.4 0.99 1.00
hello-world no-host 2.9 1.4 17.6 6.3 6.09 2.18

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.3 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,256 1 61 15.0 27.5 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,422 3 60 21.3 30.5 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,811 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 49 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,811 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 9.0 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 18 1 4.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 455 396 62 21.9 osh-cpython
31 no-host abuild-print-help 23 16 8 9.0 osh-native
1 no-host bin-true 675 511 197 3.0 bash
9 no-host bin-true 544 418 136 1.4 dash
17 no-host bin-true 2,278 1,556 986 17.4 osh-cpython
25 no-host bin-true 814 576 253 8.0 osh-native
2 no-host configure.cpython 15,000 9,070 6,331 27.3 bash
10 no-host configure.cpython 15,010 8,988 6,442 27.1 dash
18 no-host configure.cpython 28,640 17,735 12,757 27.3 osh-cpython
26 no-host configure.cpython 15,256 8,980 6,546 27.5 osh-native
4 no-host configure.ocaml 3,803 1,620 1,222 20.6 bash
12 no-host configure.ocaml 3,727 1,550 1,198 20.6 dash
20 no-host configure.ocaml 4,639 2,224 1,627 20.6 osh-cpython
28 no-host configure.ocaml 3,811 1,617 1,234 20.6 osh-native
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 42 28 14 19.4 dash
21 no-host configure.tcc 194 126 72 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.4 osh-native
3 no-host configure.util-linux 13,986 8,919 5,532 30.3 bash
11 no-host configure.util-linux 14,825 9,022 6,291 30.1 dash
19 no-host configure.util-linux 31,130 20,938 11,282 30.3 osh-cpython
27 no-host configure.util-linux 14,422 8,661 5,948 30.5 osh-native
6 no-host configure.yash 1,820 1,040 787 24.4 bash
14 no-host configure.yash 1,757 1,008 753 24.5 dash
22 no-host configure.yash 2,435 1,533 946 24.2 osh-cpython
30 no-host configure.yash 1,811 1,018 796 24.4 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 33 16 17.6 osh-cpython
24 no-host hello-world 3 3 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,556 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,948 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,380 0 0 0 8 0 1,997 59 bash
9 no-host bin-true 65,437 0 0 0 8 0 1,982 75 dash
17 no-host bin-true 760,801 0 0 0 8 0 2,000 240 osh-cpython
25 no-host bin-true 128,206 0 0 0 16 0 1,984 48 osh-native
2 no-host configure.cpython 2,226,794 0 0 0 32,928 0 14,511 1,146 bash
10 no-host configure.cpython 2,241,096 0 0 0 32,992 0 14,602 1,159 dash
18 no-host configure.cpython 6,186,179 1 0 0 27,512 0 14,106 2,357 osh-cpython
26 no-host configure.cpython 2,228,879 0 0 0 27,520 0 13,310 985 osh-native
4 no-host configure.ocaml 410,937 0 0 0 5,120 0 1,947 165 bash
12 no-host configure.ocaml 390,794 0 0 0 5,112 0 1,928 144 dash
20 no-host configure.ocaml 640,543 0 0 0 5,112 0 1,850 206 osh-cpython
28 no-host configure.ocaml 413,389 0 0 0 5,120 0 1,933 175 osh-native
5 no-host configure.tcc 6,535 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,333 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 45 2 osh-native
3 no-host configure.util-linux 2,101,106 1 0 0 42,400 0 18,573 1,243 bash
11 no-host configure.util-linux 2,262,319 2 0 0 42,584 0 17,477 1,080 dash
19 no-host configure.util-linux 5,337,023 11 0 0 39,120 0 16,986 1,185 osh-cpython
27 no-host configure.util-linux 2,001,765 0 0 0 39,120 0 17,028 1,144 osh-native
6 no-host configure.yash 256,238 0 0 0 4,120 0 869 70 bash
14 no-host configure.yash 244,605 0 0 0 3,720 0 868 74 dash
22 no-host configure.yash 385,535 0 0 0 3,728 0 852 97 osh-cpython
30 no-host configure.yash 258,183 0 0 0 3,736 0 850 78 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,693 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-950a11dd
dash dash-308ec8e6
osh-cpython osh-93758f08
osh-native osh-c7bad511
host label host id
no-host no-host-556df3ee