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 452 22 23.67 1.17
bin-true no-host 678 538 2,263 812 3.34 1.20
configure.cpython no-host 15,079 15,161 28,731 15,339 1.91 1.02
configure.ocaml no-host 3,851 3,752 4,663 3,836 1.21 1.00
configure.tcc no-host 48 42 192 49 4.04 1.03
configure.util-linux no-host 14,150 14,985 31,180 14,482 2.20 1.02
configure.yash no-host 1,839 1,780 2,475 1,839 1.35 1.00
hello-world no-host 2 1 50 3 31.69 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,538 1,094 22,922 3,170 9.03 1.25
bin-true no-host 106,343 65,475 755,373 127,177 7.10 1.20
configure.cpython no-host 2,221,957 2,245,959 6,183,448 2,229,748 2.78 1.00
configure.ocaml no-host 410,482 390,924 640,465 413,456 1.56 1.01
configure.tcc no-host 6,551 5,494 23,261 6,989 3.55 1.07
configure.util-linux no-host 2,106,764 2,261,844 5,325,244 1,997,423 2.53 0.95
configure.yash no-host 256,470 245,211 385,608 258,119 1.50 1.01
hello-world no-host 151 82 3,708 348 24.56 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.3 3.5 21.6 8.8 5.00 2.03
bin-true no-host 2.9 1.6 17.6 8.1 6.09 2.82
configure.cpython no-host 27.3 27.4 27.4 27.5 1.00 1.01
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.1 29.9 1.00 0.99
configure.yash no-host 24.5 24.5 24.2 24.5 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.3 6.33 2.29

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 812 1 2 2.6 8.1 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,339 1 60 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,482 3 59 21.3 29.9 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,836 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.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,839 1 2 2.6 24.5 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.8 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 6 4.3 bash
15 no-host abuild-print-help 10 6 3 3.5 dash
23 no-host abuild-print-help 452 401 55 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 8.8 osh-native
1 no-host bin-true 678 478 231 2.9 bash
9 no-host bin-true 538 411 138 1.6 dash
17 no-host bin-true 2,263 1,470 1,056 17.6 osh-cpython
25 no-host bin-true 812 572 254 8.1 osh-native
2 no-host configure.cpython 15,079 9,299 6,169 27.3 bash
10 no-host configure.cpython 15,161 9,292 6,252 27.4 dash
18 no-host configure.cpython 28,731 17,654 12,921 27.4 osh-cpython
26 no-host configure.cpython 15,339 9,022 6,562 27.5 osh-native
4 no-host configure.ocaml 3,851 1,630 1,250 20.6 bash
12 no-host configure.ocaml 3,752 1,592 1,172 20.6 dash
20 no-host configure.ocaml 4,663 2,237 1,625 20.4 osh-cpython
28 no-host configure.ocaml 3,836 1,643 1,233 20.6 osh-native
5 no-host configure.tcc 48 23 25 19.3 bash
13 no-host configure.tcc 42 21 21 19.3 dash
21 no-host configure.tcc 192 132 63 19.4 osh-cpython
29 no-host configure.tcc 49 34 15 19.3 osh-native
3 no-host configure.util-linux 14,150 9,043 5,512 30.1 bash
11 no-host configure.util-linux 14,985 9,201 6,254 30.3 dash
19 no-host configure.util-linux 31,180 20,484 11,733 30.1 osh-cpython
27 no-host configure.util-linux 14,482 8,702 5,947 29.9 osh-native
6 no-host configure.yash 1,839 1,062 770 24.5 bash
14 no-host configure.yash 1,780 1,039 745 24.5 dash
22 no-host configure.yash 2,475 1,501 1,005 24.2 osh-cpython
30 no-host configure.yash 1,839 1,115 729 24.5 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 29 20 17.4 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,538 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,922 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,343 0 0 0 8 0 1,991 97 bash
9 no-host bin-true 65,475 0 0 0 8 0 1,987 118 dash
17 no-host bin-true 755,373 0 0 0 8 0 1,997 323 osh-cpython
25 no-host bin-true 127,177 0 0 0 16 0 1,995 52 osh-native
2 no-host configure.cpython 2,221,957 0 0 0 32,928 0 14,530 1,255 bash
10 no-host configure.cpython 2,245,959 1 0 0 32,992 0 14,674 1,066 dash
18 no-host configure.cpython 6,183,448 1 0 0 27,512 0 13,191 1,306 osh-cpython
26 no-host configure.cpython 2,229,748 0 0 0 27,520 0 13,263 1,057 osh-native
4 no-host configure.ocaml 410,482 0 0 0 5,120 0 1,963 187 bash
12 no-host configure.ocaml 390,924 0 0 0 5,112 0 1,903 153 dash
20 no-host configure.ocaml 640,465 0 0 0 5,112 0 1,855 183 osh-cpython
28 no-host configure.ocaml 413,456 0 0 0 5,120 0 1,931 187 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,261 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,989 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,106,764 2 0 0 42,400 0 18,492 1,065 bash
11 no-host configure.util-linux 2,261,844 0 0 0 42,584 0 17,433 1,116 dash
19 no-host configure.util-linux 5,325,244 6 0 0 39,120 0 16,990 1,206 osh-cpython
27 no-host configure.util-linux 1,997,423 0 0 0 39,120 0 16,985 1,091 osh-native
6 no-host configure.yash 256,470 0 0 0 4,120 0 869 87 bash
14 no-host configure.yash 245,211 0 0 0 3,720 0 871 72 dash
22 no-host configure.yash 385,608 0 0 0 3,728 0 855 100 osh-cpython
30 no-host configure.yash 258,119 0 0 0 3,736 0 844 98 osh-native
0 no-host hello-world 151 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,708 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-84a2c760
dash dash-308ec8e6
osh-cpython osh-a72d05dc
osh-native osh-24ec19c2
host label host id
no-host no-host-556df3ee