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 467 22 24.28 1.14
bin-true no-host 679 552 2,261 854 3.33 1.26
configure.cpython no-host 14,846 14,930 28,855 15,094 1.94 1.02
configure.ocaml no-host 3,782 3,703 4,623 3,891 1.22 1.03
configure.tcc no-host 48 42 191 50 3.96 1.04
configure.util-linux no-host 13,883 14,750 31,171 14,222 2.25 1.02
configure.yash no-host 1,809 1,743 2,465 1,840 1.36 1.02
hello-world no-host 2 1 49 3 31.99 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,536 1,098 22,976 3,183 9.06 1.26
bin-true no-host 106,301 66,425 762,829 128,222 7.18 1.21
configure.cpython no-host 2,217,700 2,248,218 6,185,040 2,223,534 2.79 1.00
configure.ocaml no-host 410,749 390,923 640,355 413,630 1.56 1.01
configure.tcc no-host 6,551 5,486 23,282 6,988 3.55 1.07
configure.util-linux no-host 2,102,299 2,257,199 5,333,025 1,995,909 2.54 0.95
configure.yash no-host 256,647 245,111 385,369 258,010 1.50 1.01
hello-world no-host 152 82 3,696 348 24.32 2.29

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.3 27.4 27.5 27.1 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.5 24.0 24.2 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.2 6.33 2.24

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 854 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,094 1 60 15.0 27.1 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,222 3 58 21.3 30.3 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,891 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.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,840 1 2 2.6 24.2 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 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 14 5 4.3 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 467 419 51 21.9 osh-cpython
31 no-host abuild-print-help 22 19 4 8.9 osh-native
1 no-host bin-true 679 493 217 3.0 bash
9 no-host bin-true 552 426 135 1.6 dash
17 no-host bin-true 2,261 1,502 1,021 17.6 osh-cpython
25 no-host bin-true 854 593 274 7.9 osh-native
2 no-host configure.cpython 14,846 8,998 6,242 27.3 bash
10 no-host configure.cpython 14,930 9,223 6,120 27.4 dash
18 no-host configure.cpython 28,855 17,423 13,307 27.5 osh-cpython
26 no-host configure.cpython 15,094 8,909 6,456 27.1 osh-native
4 no-host configure.ocaml 3,782 1,715 1,102 20.6 bash
12 no-host configure.ocaml 3,703 1,617 1,103 20.6 dash
20 no-host configure.ocaml 4,623 2,252 1,577 20.6 osh-cpython
28 no-host configure.ocaml 3,891 1,706 1,225 20.6 osh-native
5 no-host configure.tcc 48 24 24 19.3 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 191 143 51 19.3 osh-cpython
29 no-host configure.tcc 50 31 20 19.4 osh-native
3 no-host configure.util-linux 13,883 8,655 5,703 30.3 bash
11 no-host configure.util-linux 14,750 9,105 6,137 30.1 dash
19 no-host configure.util-linux 31,171 20,859 11,411 30.1 osh-cpython
27 no-host configure.util-linux 14,222 8,665 5,756 30.3 osh-native
6 no-host configure.yash 1,809 1,032 786 24.2 bash
14 no-host configure.yash 1,743 1,009 736 24.5 dash
22 no-host configure.yash 2,465 1,521 987 24.0 osh-cpython
30 no-host configure.yash 1,840 1,097 746 24.2 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 39 9 17.4 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,536 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,976 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 0 osh-native
1 no-host bin-true 106,301 0 0 0 8 0 1,989 102 bash
9 no-host bin-true 66,425 0 0 0 8 0 1,987 123 dash
17 no-host bin-true 762,829 0 0 0 8 0 1,993 211 osh-cpython
25 no-host bin-true 128,222 0 0 0 16 0 1,985 127 osh-native
2 no-host configure.cpython 2,217,700 1 0 0 32,928 0 14,556 1,392 bash
10 no-host configure.cpython 2,248,218 0 0 0 32,992 0 14,646 1,085 dash
18 no-host configure.cpython 6,185,040 0 0 0 27,512 0 13,397 1,172 osh-cpython
26 no-host configure.cpython 2,223,534 0 0 0 27,520 0 13,294 975 osh-native
4 no-host configure.ocaml 410,749 0 0 0 5,120 0 1,967 197 bash
12 no-host configure.ocaml 390,923 0 0 0 5,112 0 1,883 179 dash
20 no-host configure.ocaml 640,355 0 0 0 5,112 0 1,860 187 osh-cpython
28 no-host configure.ocaml 413,630 0 0 0 5,120 0 1,927 160 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,282 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,988 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,102,299 0 0 0 42,400 0 18,701 1,172 bash
11 no-host configure.util-linux 2,257,199 0 0 0 42,584 0 17,469 1,246 dash
19 no-host configure.util-linux 5,333,025 8 0 0 39,112 0 16,921 1,289 osh-cpython
27 no-host configure.util-linux 1,995,909 0 0 0 39,120 0 16,970 1,153 osh-native
6 no-host configure.yash 256,647 0 0 0 4,120 0 870 91 bash
14 no-host configure.yash 245,111 0 0 0 3,720 0 870 88 dash
22 no-host configure.yash 385,369 0 0 0 3,728 0 856 108 osh-cpython
30 no-host configure.yash 258,010 0 0 0 3,736 0 851 92 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,696 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-881947c9
dash dash-308ec8e6
osh-cpython osh-bc92168d
osh-native osh-29c241c3
host label host id
no-host no-host-556df3ee