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 445 22 23.48 1.17
bin-true no-host 677 539 2,206 820 3.26 1.21
configure.cpython no-host 14,849 14,873 28,394 15,082 1.91 1.02
configure.ocaml no-host 3,764 3,701 4,571 3,789 1.21 1.01
configure.tcc no-host 47 41 191 48 4.05 1.02
configure.util-linux no-host 13,861 14,638 30,796 14,319 2.22 1.03
configure.yash no-host 1,825 1,747 2,437 1,820 1.34 1.00
hello-world no-host 1 1 48 3 32.55 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,586 1,110 23,229 3,186 8.98 1.23
bin-true no-host 107,400 66,441 749,025 126,196 6.97 1.18
configure.cpython no-host 2,222,776 2,244,556 6,134,673 2,228,627 2.76 1.00
configure.ocaml no-host 410,812 390,757 637,703 413,968 1.55 1.01
configure.tcc no-host 6,545 5,494 23,245 6,985 3.55 1.07
configure.util-linux no-host 2,107,261 2,257,821 5,324,252 2,017,647 2.53 0.96
configure.yash no-host 256,074 244,544 385,911 257,807 1.51 1.01
hello-world no-host 151 84 3,655 345 24.21 2.28

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.6 8.8 4.85 1.97
bin-true no-host 2.8 1.4 17.2 8.0 6.24 2.90
configure.cpython no-host 29.1 27.3 27.4 27.4 0.94 0.94
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.1 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.6 17.3 6.2 6.29 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 820 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,082 1 59 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,319 3 60 22.2 30.0 2,703,262 44,762 65,808 126,121 1,320,489 1,256,652 49,081 41 131,616 1
configure.ocaml no-host 3,789 0 2 2.7 20.4 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 18 1 4.5 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 445 410 39 21.6 osh-cpython
31 no-host abuild-print-help 22 13 10 8.8 osh-native
1 no-host bin-true 677 513 194 2.8 bash
9 no-host bin-true 539 408 140 1.4 dash
17 no-host bin-true 2,206 1,467 992 17.2 osh-cpython
25 no-host bin-true 820 565 272 8.0 osh-native
2 no-host configure.cpython 14,849 9,092 6,164 29.1 bash
10 no-host configure.cpython 14,873 9,040 6,257 27.3 dash
18 no-host configure.cpython 28,394 17,226 13,001 27.4 osh-cpython
26 no-host configure.cpython 15,082 8,888 6,468 27.4 osh-native
4 no-host configure.ocaml 3,764 1,656 1,147 20.6 bash
12 no-host configure.ocaml 3,701 1,507 1,213 20.6 dash
20 no-host configure.ocaml 4,571 2,124 1,649 20.6 osh-cpython
28 no-host configure.ocaml 3,789 1,577 1,252 20.4 osh-native
5 no-host configure.tcc 47 19 28 19.4 bash
13 no-host configure.tcc 41 22 19 19.1 dash
21 no-host configure.tcc 191 123 71 19.3 osh-cpython
29 no-host configure.tcc 48 38 11 19.3 osh-native
3 no-host configure.util-linux 13,861 8,830 5,509 30.1 bash
11 no-host configure.util-linux 14,638 9,206 5,922 30.0 dash
19 no-host configure.util-linux 30,796 20,445 11,437 30.1 osh-cpython
27 no-host configure.util-linux 14,319 8,660 5,870 30.0 osh-native
6 no-host configure.yash 1,825 1,098 730 24.4 bash
14 no-host configure.yash 1,747 1,079 672 24.4 dash
22 no-host configure.yash 2,437 1,568 911 24.4 osh-cpython
30 no-host configure.yash 1,820 1,080 744 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 26 22 17.3 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,586 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,229 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,400 0 0 0 8 0 1,992 68 bash
9 no-host bin-true 66,441 0 0 0 8 0 1,989 64 dash
17 no-host bin-true 749,025 0 0 0 8 0 1,995 181 osh-cpython
25 no-host bin-true 126,196 0 0 0 16 0 1,991 142 osh-native
2 no-host configure.cpython 2,222,776 0 0 0 32,928 0 14,477 990 bash
10 no-host configure.cpython 2,244,556 0 0 0 32,992 0 14,563 1,110 dash
18 no-host configure.cpython 6,134,673 0 0 0 27,512 0 13,298 1,205 osh-cpython
26 no-host configure.cpython 2,228,627 0 0 0 27,520 0 13,288 1,048 osh-native
4 no-host configure.ocaml 410,812 0 0 0 5,120 0 1,945 163 bash
12 no-host configure.ocaml 390,757 0 0 0 5,112 0 1,903 189 dash
20 no-host configure.ocaml 637,703 0 0 0 5,112 0 1,856 165 osh-cpython
28 no-host configure.ocaml 413,968 0 0 0 5,120 0 1,916 176 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,245 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,107,261 1 0 0 42,400 0 18,622 1,079 bash
11 no-host configure.util-linux 2,257,821 0 0 0 42,592 0 17,465 1,075 dash
19 no-host configure.util-linux 5,324,252 19 0 0 39,112 0 17,048 1,079 osh-cpython
27 no-host configure.util-linux 2,017,647 0 0 0 39,128 0 17,065 1,042 osh-native
6 no-host configure.yash 256,074 0 0 0 4,120 0 892 81 bash
14 no-host configure.yash 244,544 0 0 0 3,720 0 861 75 dash
22 no-host configure.yash 385,911 0 0 0 3,728 0 851 183 osh-cpython
30 no-host configure.yash 257,807 0 0 0 3,736 0 853 85 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,655 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-881ae0ba
dash dash-308ec8e6
osh-cpython osh-fb2699f4
osh-native osh-63762180
host label host id
no-host no-host-13226fd6