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 450 22 23.90 1.16
bin-true no-host 656 528 2,154 812 3.28 1.24
configure.cpython no-host 14,527 14,638 27,632 14,811 1.90 1.02
configure.ocaml no-host 3,708 3,657 4,545 3,778 1.23 1.02
configure.tcc no-host 47 41 189 48 4.03 1.02
configure.util-linux no-host 13,611 14,449 30,160 14,099 2.22 1.04
configure.yash no-host 1,766 1,709 2,379 1,785 1.35 1.01
hello-world no-host 1 1 46 3 32.69 1.99

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,552 1,096 23,335 3,191 9.14 1.25
bin-true no-host 104,351 66,438 741,514 128,137 7.11 1.23
configure.cpython no-host 2,220,809 2,250,110 6,106,962 2,233,201 2.75 1.01
configure.ocaml no-host 410,513 391,126 637,080 412,735 1.55 1.01
configure.tcc no-host 6,573 5,468 23,084 7,015 3.51 1.07
configure.util-linux no-host 2,101,559 2,264,842 5,295,758 2,015,317 2.52 0.96
configure.yash no-host 256,572 244,874 384,459 258,327 1.50 1.01
hello-world no-host 150 82 3,664 343 24.43 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.5 21.5 8.9 4.97 2.06
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.3 27.4 27.3 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.4 1.00 1.01
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.2 1.00 0.99
hello-world no-host 2.8 1.4 17.2 6.2 6.24 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 7.9 154,662 12,890 2,792 11,730 78,321 64,611 5,012 3 50,000 0
configure.cpython no-host 14,811 1 56 15.9 27.4 1,772,945 49,191 28,502 101,923 908,319 762,703 42,399 60 50,000 0
configure.util-linux no-host 14,099 3 56 22.2 30.1 2,703,269 44,760 65,806 126,121 1,320,491 1,256,657 49,081 41 131,612 1
configure.ocaml no-host 3,778 1 2 2.7 20.6 150,027 11,039 5,132 8,602 71,623 69,802 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,785 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,229 64,449 42,657 4,603 54,507 57,119 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 19 16 3 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 450 419 34 21.5 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
1 no-host bin-true 656 494 193 3.0 bash
9 no-host bin-true 528 415 121 1.4 dash
17 no-host bin-true 2,154 1,385 1,008 17.3 osh-cpython
25 no-host bin-true 812 586 240 7.9 osh-native
2 no-host configure.cpython 14,527 8,618 6,299 27.3 bash
10 no-host configure.cpython 14,638 8,868 6,185 27.4 dash
18 no-host configure.cpython 27,632 17,122 12,260 27.3 osh-cpython
26 no-host configure.cpython 14,811 8,837 6,237 27.4 osh-native
4 no-host configure.ocaml 3,708 1,544 1,204 20.6 bash
12 no-host configure.ocaml 3,657 1,589 1,086 20.6 dash
20 no-host configure.ocaml 4,545 2,131 1,613 20.6 osh-cpython
28 no-host configure.ocaml 3,778 1,625 1,191 20.6 osh-native
5 no-host configure.tcc 47 21 27 19.3 bash
13 no-host configure.tcc 41 28 14 19.3 dash
21 no-host configure.tcc 189 124 68 19.3 osh-cpython
29 no-host configure.tcc 48 24 25 19.4 osh-native
3 no-host configure.util-linux 13,611 8,701 5,373 30.3 bash
11 no-host configure.util-linux 14,449 8,927 6,014 30.1 dash
19 no-host configure.util-linux 30,160 20,333 10,845 30.3 osh-cpython
27 no-host configure.util-linux 14,099 8,423 5,875 30.1 osh-native
6 no-host configure.yash 1,766 1,061 712 24.4 bash
14 no-host configure.yash 1,709 1,036 675 24.2 dash
22 no-host configure.yash 2,379 1,514 905 24.4 osh-cpython
30 no-host configure.yash 1,785 1,061 727 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 46 25 20 17.2 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,552 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,335 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,351 0 0 0 8 0 1,991 48 bash
9 no-host bin-true 66,438 0 0 0 8 0 1,986 52 dash
17 no-host bin-true 741,514 0 0 0 8 0 1,989 166 osh-cpython
25 no-host bin-true 128,137 0 0 0 16 0 1,992 76 osh-native
2 no-host configure.cpython 2,220,809 0 0 0 32,928 0 14,488 1,031 bash
10 no-host configure.cpython 2,250,110 0 0 0 32,992 0 14,510 1,198 dash
18 no-host configure.cpython 6,106,962 0 0 0 27,512 0 13,270 1,168 osh-cpython
26 no-host configure.cpython 2,233,201 0 0 0 27,520 0 13,272 1,165 osh-native
4 no-host configure.ocaml 410,513 0 0 0 5,120 0 1,947 160 bash
12 no-host configure.ocaml 391,126 0 0 0 5,112 0 1,938 139 dash
20 no-host configure.ocaml 637,080 0 0 0 5,112 0 1,863 228 osh-cpython
28 no-host configure.ocaml 412,735 0 0 0 5,120 0 1,932 161 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 23,084 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 7,015 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,101,559 0 0 0 42,408 0 18,533 976 bash
11 no-host configure.util-linux 2,264,842 0 0 0 42,592 0 17,442 1,022 dash
19 no-host configure.util-linux 5,295,758 12 0 0 39,136 0 17,023 1,189 osh-cpython
27 no-host configure.util-linux 2,015,317 0 0 0 39,120 0 17,168 1,016 osh-native
6 no-host configure.yash 256,572 0 0 0 4,120 0 872 73 bash
14 no-host configure.yash 244,874 0 0 0 3,720 0 870 85 dash
22 no-host configure.yash 384,459 0 0 0 3,728 0 856 90 osh-cpython
30 no-host configure.yash 258,327 0 0 0 3,736 0 851 86 osh-native
0 no-host hello-world 150 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,664 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-3f60dceb
dash dash-308ec8e6
osh-cpython osh-e8dcd9ff
osh-native osh-b6ae64b7
host label host id
no-host no-host-e54d7702