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 9 462 23 24.00 1.18
bin-true no-host 689 541 2,242 812 3.25 1.18
configure.cpython no-host 15,115 15,165 28,590 15,361 1.89 1.02
configure.ocaml no-host 3,806 3,752 4,650 3,837 1.22 1.01
configure.tcc no-host 49 42 195 50 4.01 1.02
configure.util-linux no-host 14,082 14,988 31,209 14,519 2.22 1.03
configure.yash no-host 1,853 1,780 2,468 1,839 1.33 0.99
hello-world no-host 2 1 49 3 29.19 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,538 1,101 23,648 3,198 9.32 1.26
bin-true no-host 107,293 66,436 759,621 127,128 7.08 1.18
configure.cpython no-host 2,219,818 2,244,976 6,128,080 2,238,537 2.76 1.01
configure.ocaml no-host 410,082 391,116 638,866 413,611 1.56 1.01
configure.tcc no-host 6,548 5,483 23,144 6,956 3.53 1.06
configure.util-linux no-host 2,097,857 2,261,982 5,300,815 2,014,138 2.53 0.96
configure.yash no-host 256,650 245,254 385,087 258,818 1.50 1.01
hello-world no-host 147 83 3,670 346 24.97 2.35

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.4 9.0 4.79 2.03
bin-true no-host 2.8 1.6 17.4 7.9 6.33 2.86
configure.cpython no-host 27.5 27.4 27.1 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.4 0.99 0.99
configure.tcc no-host 19.3 19.3 19.4 19.1 1.01 0.99
configure.util-linux no-host 30.3 30.3 30.3 30.0 1.00 0.99
configure.yash no-host 24.5 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.6 1.4 17.3 6.2 6.60 2.35

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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 7.9 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,361 1 62 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,519 3 62 22.2 30.0 2,703,274 44,770 65,796 126,121 1,320,501 1,256,652 49,081 41 131,592 1
configure.ocaml no-host 3,837 1 2 2.7 20.4 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.1 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,839 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 11 9 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 462 416 50 21.4 osh-cpython
31 no-host abuild-print-help 23 21 2 9.0 osh-native
1 no-host bin-true 689 503 216 2.8 bash
9 no-host bin-true 541 414 136 1.6 dash
17 no-host bin-true 2,242 1,437 1,064 17.4 osh-cpython
25 no-host bin-true 812 597 230 7.9 osh-native
2 no-host configure.cpython 15,115 9,158 6,360 27.5 bash
10 no-host configure.cpython 15,165 9,138 6,447 27.4 dash
18 no-host configure.cpython 28,590 17,544 12,858 27.1 osh-cpython
26 no-host configure.cpython 15,361 9,186 6,437 27.4 osh-native
4 no-host configure.ocaml 3,806 1,632 1,212 20.6 bash
12 no-host configure.ocaml 3,752 1,620 1,152 20.4 dash
20 no-host configure.ocaml 4,650 2,256 1,591 20.4 osh-cpython
28 no-host configure.ocaml 3,837 1,681 1,193 20.4 osh-native
5 no-host configure.tcc 49 37 13 19.3 bash
13 no-host configure.tcc 42 17 25 19.3 dash
21 no-host configure.tcc 195 141 57 19.4 osh-cpython
29 no-host configure.tcc 50 32 18 19.1 osh-native
3 no-host configure.util-linux 14,082 8,942 5,614 30.3 bash
11 no-host configure.util-linux 14,988 9,132 6,335 30.3 dash
19 no-host configure.util-linux 31,209 21,006 11,275 30.3 osh-cpython
27 no-host configure.util-linux 14,519 8,669 6,048 30.0 osh-native
6 no-host configure.yash 1,853 1,064 790 24.5 bash
14 no-host configure.yash 1,780 1,034 748 24.4 dash
22 no-host configure.yash 2,468 1,568 940 24.2 osh-cpython
30 no-host configure.yash 1,839 1,109 733 24.4 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 32 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,538 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,648 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,293 0 0 0 8 0 1,983 153 bash
9 no-host bin-true 66,436 0 0 0 8 0 1,991 40 dash
17 no-host bin-true 759,621 0 0 0 8 0 1,996 212 osh-cpython
25 no-host bin-true 127,128 0 0 0 16 0 1,985 118 osh-native
2 no-host configure.cpython 2,219,818 0 0 0 32,928 0 14,492 1,048 bash
10 no-host configure.cpython 2,244,976 2 0 0 32,992 0 14,633 1,082 dash
18 no-host configure.cpython 6,128,080 1 0 0 27,512 0 13,333 1,129 osh-cpython
26 no-host configure.cpython 2,238,537 0 0 0 27,520 0 13,362 1,056 osh-native
4 no-host configure.ocaml 410,082 0 0 0 5,120 0 1,948 181 bash
12 no-host configure.ocaml 391,116 0 0 0 5,112 0 1,908 132 dash
20 no-host configure.ocaml 638,866 0 0 0 5,112 0 1,859 191 osh-cpython
28 no-host configure.ocaml 413,611 0 0 0 5,120 0 1,929 169 osh-native
5 no-host configure.tcc 6,548 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 12 dash
21 no-host configure.tcc 23,144 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,097,857 0 0 0 42,400 0 18,648 1,054 bash
11 no-host configure.util-linux 2,261,982 0 0 0 42,584 0 17,435 1,276 dash
19 no-host configure.util-linux 5,300,815 11 0 0 39,112 0 17,084 1,430 osh-cpython
27 no-host configure.util-linux 2,014,138 1 0 0 39,120 0 17,066 903 osh-native
6 no-host configure.yash 256,650 0 0 0 4,120 0 882 85 bash
14 no-host configure.yash 245,254 0 0 0 3,720 0 870 80 dash
22 no-host configure.yash 385,087 0 0 0 3,728 0 857 86 osh-cpython
30 no-host configure.yash 258,818 0 0 0 3,736 0 849 85 osh-native
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,670 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1c1b84f5
dash dash-308ec8e6
osh-cpython osh-cff2ed3c
osh-native osh-3714fbf0
host label host id
no-host no-host-1c33b689