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 18 9 460 21 24.91 1.16
bin-true no-host 660 528 2,285 799 3.46 1.21
configure.cpython no-host 14,596 14,546 27,983 14,745 1.92 1.01
configure.ocaml no-host 3,725 3,646 4,541 3,739 1.22 1.00
configure.tcc no-host 46 40 191 48 4.13 1.03
configure.util-linux no-host 13,489 14,397 30,639 13,837 2.27 1.03
configure.yash no-host 1,763 1,723 2,412 1,774 1.37 1.01
hello-world no-host 1 1 48 3 36.21 2.13

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,531 1,122 22,991 3,200 9.08 1.26
bin-true no-host 106,348 65,442 761,844 126,203 7.16 1.19
configure.cpython no-host 1,997,140 2,024,743 5,953,337 2,010,995 2.98 1.01
configure.ocaml no-host 373,337 353,842 603,153 376,347 1.62 1.01
configure.tcc no-host 6,079 5,019 22,853 6,500 3.76 1.07
configure.util-linux no-host 1,907,937 2,072,779 5,120,247 1,808,591 2.68 0.95
configure.yash no-host 232,748 222,074 362,598 235,207 1.56 1.01
hello-world no-host 148 77 3,686 349 24.91 2.36

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.9 9.0 5.06 2.09
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 29.2 29.2 29.3 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.5 19.6 19.7 19.5 1.01 1.00
configure.util-linux no-host 30.2 30.3 30.3 30.5 1.00 1.01
configure.yash no-host 26.4 26.3 26.4 26.4 1.00 1.00
hello-world no-host 2.9 1.4 17.3 6.3 6.00 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 799 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 14,745 1 65 15.0 29.2 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 13,837 3 63 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,739 1 2 2.6 22.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,774 1 2 2.6 26.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 21 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 18 9 10 4.3 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 460 404 59 21.9 osh-cpython
31 no-host abuild-print-help 21 11 11 9.0 osh-native
1 no-host bin-true 660 295 399 2.9 bash
9 no-host bin-true 528 284 255 1.4 dash
17 no-host bin-true 2,285 795 1,763 17.4 osh-cpython
25 no-host bin-true 799 296 521 8.0 osh-native
2 no-host configure.cpython 14,596 6,642 8,375 29.2 bash
10 no-host configure.cpython 14,546 6,544 8,437 29.2 dash
18 no-host configure.cpython 27,983 13,920 15,925 29.3 osh-cpython
26 no-host configure.cpython 14,745 6,491 8,544 29.2 osh-native
4 no-host configure.ocaml 3,725 1,270 1,491 22.6 bash
12 no-host configure.ocaml 3,646 1,243 1,424 22.6 dash
20 no-host configure.ocaml 4,541 1,811 1,938 22.6 osh-cpython
28 no-host configure.ocaml 3,739 1,295 1,486 22.6 osh-native
5 no-host configure.tcc 46 23 24 19.5 bash
13 no-host configure.tcc 40 18 23 19.6 dash
21 no-host configure.tcc 191 123 72 19.7 osh-cpython
29 no-host configure.tcc 48 31 18 19.5 osh-native
3 no-host configure.util-linux 13,489 5,784 8,201 30.2 bash
11 no-host configure.util-linux 14,397 5,794 9,128 30.3 dash
19 no-host configure.util-linux 30,639 17,439 14,309 30.3 osh-cpython
27 no-host configure.util-linux 13,837 5,566 8,496 30.5 osh-native
6 no-host configure.yash 1,763 864 907 26.4 bash
14 no-host configure.yash 1,723 875 852 26.3 dash
22 no-host configure.yash 2,412 1,329 1,127 26.4 osh-cpython
30 no-host configure.yash 1,774 849 930 26.4 osh-native
0 no-host hello-world 1 1 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 26 22 17.3 osh-cpython
24 no-host hello-world 3 2 1 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,531 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,991 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,348 0 0 0 8 0 1,983 305 bash
9 no-host bin-true 65,442 0 0 0 8 0 1,979 59 dash
17 no-host bin-true 761,844 0 0 0 8 0 1,989 435 osh-cpython
25 no-host bin-true 126,203 0 0 0 16 0 1,979 177 osh-native
2 no-host configure.cpython 1,997,140 0 0 0 32,928 0 14,241 1,105 bash
10 no-host configure.cpython 2,024,743 0 0 0 32,992 0 14,356 1,253 dash
18 no-host configure.cpython 5,953,337 0 0 0 27,512 0 13,044 1,286 osh-cpython
26 no-host configure.cpython 2,010,995 0 0 0 27,520 0 13,099 1,256 osh-native
4 no-host configure.ocaml 373,337 0 0 0 5,120 0 1,953 188 bash
12 no-host configure.ocaml 353,842 0 0 0 5,112 0 1,947 179 dash
20 no-host configure.ocaml 603,153 0 0 0 5,112 0 1,849 203 osh-cpython
28 no-host configure.ocaml 376,347 0 0 0 5,120 0 1,924 216 osh-native
5 no-host configure.tcc 6,079 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,019 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,853 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,500 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 1,907,937 0 0 0 42,400 0 18,509 1,386 bash
11 no-host configure.util-linux 2,072,779 0 0 0 42,584 0 17,325 1,597 dash
19 no-host configure.util-linux 5,120,247 11 0 0 39,112 0 17,009 1,366 osh-cpython
27 no-host configure.util-linux 1,808,591 1 0 0 39,120 0 17,012 1,205 osh-native
6 no-host configure.yash 232,748 0 0 0 4,120 0 866 85 bash
14 no-host configure.yash 222,074 0 0 0 3,720 0 869 81 dash
22 no-host configure.yash 362,598 0 0 0 3,728 0 855 124 osh-cpython
30 no-host configure.yash 235,207 0 0 0 3,736 0 851 91 osh-native
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,686 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-a3d3702d
dash dash-308ec8e6
osh-cpython osh-4cb44363
osh-native osh-2ddb010a
host label host id
no-host no-host-e5b8d3ee