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 20 10 460 23 23.56 1.16
bin-true no-host 693 555 2,281 841 3.29 1.21
configure.cpython no-host 15,303 15,399 28,816 15,633 1.88 1.02
configure.ocaml no-host 3,839 3,779 4,680 3,890 1.22 1.01
configure.tcc no-host 48 42 196 49 4.06 1.02
configure.util-linux no-host 14,230 15,187 31,498 14,694 2.21 1.03
configure.yash no-host 1,851 1,784 2,472 1,849 1.34 1.00
hello-world no-host 2 1 48 3 28.87 1.72

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,553 1,104 23,153 3,194 9.07 1.25
bin-true no-host 106,310 66,466 732,063 128,163 6.89 1.21
configure.cpython no-host 2,224,723 2,238,907 6,089,581 2,231,918 2.74 1.00
configure.ocaml no-host 409,992 391,706 635,521 413,540 1.55 1.01
configure.tcc no-host 6,554 5,506 23,039 6,979 3.52 1.06
configure.util-linux no-host 2,097,075 2,261,429 5,280,473 2,016,812 2.52 0.96
configure.yash no-host 255,978 245,317 382,845 258,362 1.50 1.01
hello-world no-host 152 83 3,647 342 23.99 2.25

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.5 21.5 9.0 4.82 2.03
bin-true no-host 2.9 1.4 17.2 7.9 5.95 2.73
configure.cpython no-host 27.4 27.5 27.5 27.4 1.00 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.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.2 6.0 6.24 2.19

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.2 6.0 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 841 1 2 2.7 7.9 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,633 1 62 15.9 27.4 1,772,935 49,191 28,502 101,923 908,314 762,698 42,399 60 50,000 0
configure.util-linux no-host 14,694 3 60 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,890 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,849 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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 20 15 5 4.5 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 460 416 48 21.5 osh-cpython
31 no-host abuild-print-help 23 19 4 9.0 osh-native
1 no-host bin-true 693 518 201 2.9 bash
9 no-host bin-true 555 416 145 1.4 dash
17 no-host bin-true 2,281 1,476 1,062 17.2 osh-cpython
25 no-host bin-true 841 595 255 7.9 osh-native
2 no-host configure.cpython 15,303 9,212 6,458 27.4 bash
10 no-host configure.cpython 15,399 9,251 6,536 27.5 dash
18 no-host configure.cpython 28,816 17,796 12,852 27.5 osh-cpython
26 no-host configure.cpython 15,633 9,172 6,697 27.4 osh-native
4 no-host configure.ocaml 3,839 1,645 1,233 20.6 bash
12 no-host configure.ocaml 3,779 1,596 1,201 20.6 dash
20 no-host configure.ocaml 4,680 2,268 1,611 20.6 osh-cpython
28 no-host configure.ocaml 3,890 1,670 1,254 20.6 osh-native
5 no-host configure.tcc 48 36 13 19.3 bash
13 no-host configure.tcc 42 23 19 19.3 dash
21 no-host configure.tcc 196 137 63 19.3 osh-cpython
29 no-host configure.tcc 49 29 20 19.3 osh-native
3 no-host configure.util-linux 14,230 8,938 5,728 30.3 bash
11 no-host configure.util-linux 15,187 9,386 6,273 30.1 dash
19 no-host configure.util-linux 31,498 21,002 11,546 30.3 osh-cpython
27 no-host configure.util-linux 14,694 8,768 6,084 30.1 osh-native
6 no-host configure.yash 1,851 1,046 810 24.4 bash
14 no-host configure.yash 1,784 1,020 767 24.2 dash
22 no-host configure.yash 2,472 1,538 975 24.4 osh-cpython
30 no-host configure.yash 1,849 1,036 816 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 28 19 17.2 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,553 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,153 0 0 0 8 0 47 15 osh-cpython
31 no-host abuild-print-help 3,194 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,310 0 0 0 8 0 1,997 116 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,988 47 dash
17 no-host bin-true 732,063 0 0 0 8 0 2,004 579 osh-cpython
25 no-host bin-true 128,163 0 0 0 16 0 1,991 54 osh-native
2 no-host configure.cpython 2,224,723 0 0 0 32,928 0 14,423 971 bash
10 no-host configure.cpython 2,238,907 0 0 0 32,992 0 14,667 1,398 dash
18 no-host configure.cpython 6,089,581 1 0 0 27,512 0 13,281 1,464 osh-cpython
26 no-host configure.cpython 2,231,918 0 0 0 27,520 0 13,280 1,114 osh-native
4 no-host configure.ocaml 409,992 0 0 0 5,120 0 1,952 163 bash
12 no-host configure.ocaml 391,706 0 0 0 5,112 0 1,945 152 dash
20 no-host configure.ocaml 635,521 0 0 0 5,112 0 1,857 182 osh-cpython
28 no-host configure.ocaml 413,540 0 0 0 5,120 0 1,938 167 osh-native
5 no-host configure.tcc 6,554 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,506 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,039 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,097,075 1 0 0 42,400 0 18,578 1,220 bash
11 no-host configure.util-linux 2,261,429 0 0 0 42,592 0 17,475 1,142 dash
19 no-host configure.util-linux 5,280,473 14 0 0 39,120 0 17,206 1,300 osh-cpython
27 no-host configure.util-linux 2,016,812 0 0 0 39,128 0 17,064 990 osh-native
6 no-host configure.yash 255,978 0 0 0 4,120 0 874 89 bash
14 no-host configure.yash 245,317 0 0 0 3,720 0 874 79 dash
22 no-host configure.yash 382,845 0 0 0 3,728 0 859 119 osh-cpython
30 no-host configure.yash 258,362 0 0 0 3,736 0 854 82 osh-native
0 no-host hello-world 152 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,647 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-ecf63df8
dash dash-308ec8e6
osh-cpython osh-5250337f
osh-native osh-38d0c354
host label host id
no-host no-host-e54d7702