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 455 22 22.97 1.11
bin-true no-host 686 558 2,352 826 3.43 1.20
configure.cpython no-host 15,694 15,893 30,380 16,064 1.94 1.02
configure.ocaml no-host 3,953 3,922 4,839 3,906 1.22 0.99
configure.tcc no-host 50 44 198 50 4.00 1.00
configure.util-linux no-host 14,771 15,846 33,219 14,934 2.25 1.01
configure.yash no-host 1,935 1,884 2,577 1,861 1.33 0.96
hello-world no-host 2 1 54 3 33.82 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,547 1,087 22,871 3,163 8.98 1.24
bin-true no-host 105,409 67,483 757,465 126,152 7.19 1.20
configure.cpython no-host 2,223,857 2,247,834 6,167,067 2,218,991 2.77 1.00
configure.ocaml no-host 410,710 390,728 641,021 414,002 1.56 1.01
configure.tcc no-host 6,553 5,461 23,317 7,004 3.56 1.07
configure.util-linux no-host 2,102,812 2,258,671 5,324,167 1,995,308 2.53 0.95
configure.yash no-host 256,396 244,605 384,509 258,537 1.50 1.01
hello-world no-host 153 78 3,690 350 24.12 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.6 9.0 5.00 2.09
bin-true no-host 3.0 1.6 17.7 8.1 5.87 2.70
configure.cpython no-host 27.5 27.4 27.1 27.5 0.99 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.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.0 30.3 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.6 6.2 6.38 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 16,064 2 68 15.0 27.5 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,934 3 63 21.3 30.3 2,703,426 44,785 65,811 109,643 1,320,611 1,273,172 49,081 41 131,622 1
configure.ocaml no-host 3,906 1 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,861 1 2 2.6 24.2 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 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 20 18 2 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 455 403 55 21.6 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
1 no-host bin-true 686 494 221 3.0 bash
9 no-host bin-true 558 419 146 1.6 dash
17 no-host bin-true 2,352 1,513 1,125 17.7 osh-cpython
25 no-host bin-true 826 592 249 8.1 osh-native
2 no-host configure.cpython 15,694 9,361 6,736 27.5 bash
10 no-host configure.cpython 15,893 9,394 6,940 27.4 dash
18 no-host configure.cpython 30,380 18,174 14,199 27.1 osh-cpython
26 no-host configure.cpython 16,064 9,497 6,837 27.5 osh-native
4 no-host configure.ocaml 3,953 1,676 1,318 20.6 bash
12 no-host configure.ocaml 3,922 1,698 1,244 20.6 dash
20 no-host configure.ocaml 4,839 2,355 1,699 20.6 osh-cpython
28 no-host configure.ocaml 3,906 1,703 1,242 20.6 osh-native
5 no-host configure.tcc 50 33 18 19.3 bash
13 no-host configure.tcc 44 27 17 19.4 dash
21 no-host configure.tcc 198 146 56 19.3 osh-cpython
29 no-host configure.tcc 50 30 20 19.4 osh-native
3 no-host configure.util-linux 14,771 9,091 6,166 30.1 bash
11 no-host configure.util-linux 15,846 9,627 6,726 30.3 dash
19 no-host configure.util-linux 33,219 22,010 12,356 30.0 osh-cpython
27 no-host configure.util-linux 14,934 8,977 6,137 30.3 osh-native
6 no-host configure.yash 1,935 1,074 866 24.4 bash
14 no-host configure.yash 1,884 1,113 775 24.2 dash
22 no-host configure.yash 2,577 1,589 1,034 24.4 osh-cpython
30 no-host configure.yash 1,861 1,102 763 24.2 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 54 37 16 17.6 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,547 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,871 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,409 0 0 0 8 0 1,981 45 bash
9 no-host bin-true 67,483 0 0 0 8 0 1,991 76 dash
17 no-host bin-true 757,465 0 0 0 8 0 2,004 339 osh-cpython
25 no-host bin-true 126,152 0 0 0 16 0 1,984 54 osh-native
2 no-host configure.cpython 2,223,857 0 0 0 32,928 0 14,456 1,031 bash
10 no-host configure.cpython 2,247,834 0 0 0 32,992 0 14,638 1,177 dash
18 no-host configure.cpython 6,167,067 0 0 0 27,512 0 13,265 1,427 osh-cpython
26 no-host configure.cpython 2,218,991 0 0 0 27,520 0 13,181 1,042 osh-native
4 no-host configure.ocaml 410,710 0 0 0 5,120 0 1,949 144 bash
12 no-host configure.ocaml 390,728 0 0 0 5,112 0 1,877 161 dash
20 no-host configure.ocaml 641,021 0 0 0 5,112 0 1,848 206 osh-cpython
28 no-host configure.ocaml 414,002 0 0 0 5,120 0 1,930 156 osh-native
5 no-host configure.tcc 6,553 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,461 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,317 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,102,812 0 0 0 42,408 0 18,574 1,022 bash
11 no-host configure.util-linux 2,258,671 3 0 0 42,592 0 17,449 1,225 dash
19 no-host configure.util-linux 5,324,167 3 0 0 39,120 0 16,951 1,235 osh-cpython
27 no-host configure.util-linux 1,995,308 4 0 0 39,128 0 16,992 980 osh-native
6 no-host configure.yash 256,396 0 0 0 4,120 0 867 151 bash
14 no-host configure.yash 244,605 0 0 0 3,720 0 862 74 dash
22 no-host configure.yash 384,509 0 0 0 3,728 0 851 110 osh-cpython
30 no-host configure.yash 258,537 0 0 0 3,736 0 848 89 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,690 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-28775970
dash dash-308ec8e6
osh-cpython osh-8fc9355f
osh-native osh-f7b41f44
host label host id
no-host no-host-556df3ee