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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 473 22 21 25.02 1.16
bin-true no-host 670 540 2,277 812 813 3.40 1.21
configure.cpython no-host 14,951 14,941 28,568 15,352 15,490 1.91 1.03
configure.ocaml no-host 3,801 3,721 4,647 3,826 3,860 1.22 1.01
configure.tcc no-host 51 41 201 50 48 3.96 0.98
configure.util-linux no-host 13,894 14,792 31,214 14,348 14,375 2.25 1.03
configure.yash no-host 1,810 1,768 2,477 1,846 1,848 1.37 1.02
hello-world no-host 2 1 56 3 3 34.77 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,513 1,090 23,672 3,171 3,052 9.42 1.26
bin-true no-host 104,358 65,397 769,619 127,262 124,183 7.37 1.22
configure.cpython no-host 2,226,036 2,236,434 6,214,842 2,209,266 2,198,457 2.79 0.99
configure.ocaml no-host 410,583 390,806 646,826 413,191 412,870 1.58 1.01
configure.tcc no-host 6,553 5,477 24,084 6,966 6,896 3.68 1.06
configure.util-linux no-host 2,102,178 2,262,722 5,379,005 1,994,465 1,991,625 2.56 0.95
configure.yash no-host 256,528 245,088 388,483 257,226 258,054 1.51 1.00
hello-world no-host 152 80 3,947 345 338 25.97 2.27

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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.6 9.0 8.5 5.22 2.09
bin-true no-host 2.9 1.3 18.3 8.0 7.6 6.36 2.77
configure.cpython no-host 27.3 27.3 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.7 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.0 30.3 30.3 30.0 30.1 1.01 1.00
configure.yash no-host 24.2 24.4 24.5 24.5 24.4 1.01 1.01
hello-world no-host 2.8 1.3 18.4 6.4 5.9 6.67 2.33

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,352 1 62 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,348 3 61 21.2 30.0 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,826 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.5 24.5 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,490 2 62 14.9 27.3 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,375 3 61 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,860 1 2 2.6 20.7 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,848 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 14 5 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 473 415 61 22.6 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 21 12 10 8.5 osh-native-souffle
1 no-host bin-true 670 489 211 2.9 bash
9 no-host bin-true 540 414 136 1.3 dash
17 no-host bin-true 2,277 1,494 1,041 18.3 osh-cpython
25 no-host bin-true 812 580 247 8.0 osh-native
33 no-host bin-true 813 568 260 7.6 osh-native-souffle
2 no-host configure.cpython 14,951 9,016 6,333 27.3 bash
10 no-host configure.cpython 14,941 9,152 6,202 27.3 dash
18 no-host configure.cpython 28,568 17,373 13,030 27.4 osh-cpython
26 no-host configure.cpython 15,352 9,008 6,588 27.4 osh-native
34 no-host configure.cpython 15,490 8,949 6,670 27.3 osh-native-souffle
4 no-host configure.ocaml 3,801 1,576 1,258 20.6 bash
12 no-host configure.ocaml 3,721 1,587 1,150 20.6 dash
20 no-host configure.ocaml 4,647 2,230 1,619 20.6 osh-cpython
28 no-host configure.ocaml 3,826 1,577 1,289 20.6 osh-native
36 no-host configure.ocaml 3,860 1,622 1,276 20.7 osh-native-souffle
5 no-host configure.tcc 51 32 16 19.4 bash
13 no-host configure.tcc 41 22 19 19.4 dash
21 no-host configure.tcc 201 139 66 19.3 osh-cpython
29 no-host configure.tcc 50 29 21 19.3 osh-native
37 no-host configure.tcc 48 27 22 19.3 osh-native-souffle
3 no-host configure.util-linux 13,894 8,655 5,703 30.0 bash
11 no-host configure.util-linux 14,792 9,151 6,125 30.3 dash
19 no-host configure.util-linux 31,214 20,841 11,464 30.3 osh-cpython
27 no-host configure.util-linux 14,348 8,725 5,816 30.0 osh-native
35 no-host configure.util-linux 14,375 8,535 6,037 30.1 osh-native-souffle
6 no-host configure.yash 1,810 998 816 24.2 bash
14 no-host configure.yash 1,768 1,080 687 24.4 dash
22 no-host configure.yash 2,477 1,499 1,017 24.5 osh-cpython
30 no-host configure.yash 1,846 1,076 772 24.5 osh-native
38 no-host configure.yash 1,848 1,065 787 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 56 44 12 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 0 3 5.9 osh-native-souffle

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,513 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 23,672 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,052 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 104,358 0 0 0 8 0 1,994 86 bash
9 no-host bin-true 65,397 0 0 0 8 0 1,992 45 dash
17 no-host bin-true 769,619 0 0 0 8 0 1,990 147 osh-cpython
25 no-host bin-true 127,262 0 0 0 16 0 1,988 50 osh-native
33 no-host bin-true 124,183 0 0 0 16 0 1,990 125 osh-native-souffle
2 no-host configure.cpython 2,226,036 0 0 0 32,928 0 14,466 1,049 bash
10 no-host configure.cpython 2,236,434 0 0 0 32,992 0 14,671 902 dash
18 no-host configure.cpython 6,214,842 2 0 0 27,512 0 13,243 1,226 osh-cpython
26 no-host configure.cpython 2,209,266 1 0 0 27,520 0 13,215 1,071 osh-native
34 no-host configure.cpython 2,198,457 0 0 0 27,520 0 13,244 943 osh-native-souffle
4 no-host configure.ocaml 410,583 0 0 0 5,120 0 1,959 172 bash
12 no-host configure.ocaml 390,806 0 0 0 5,112 0 1,887 147 dash
20 no-host configure.ocaml 646,826 0 0 0 5,112 0 1,860 171 osh-cpython
28 no-host configure.ocaml 413,191 0 0 0 5,120 0 1,918 172 osh-native
36 no-host configure.ocaml 412,870 0 0 0 5,120 0 1,925 163 osh-native-souffle
5 no-host configure.tcc 6,553 0 0 0 104 0 51 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,084 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,966 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,896 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,102,178 0 0 0 42,408 0 18,554 1,115 bash
11 no-host configure.util-linux 2,262,722 1 0 0 42,592 0 17,463 1,021 dash
19 no-host configure.util-linux 5,379,005 10 0 0 39,112 0 16,977 1,163 osh-cpython
27 no-host configure.util-linux 1,994,465 0 0 0 39,120 0 16,926 970 osh-native
35 no-host configure.util-linux 1,991,625 5 0 0 39,128 0 16,993 971 osh-native-souffle
6 no-host configure.yash 256,528 0 0 0 4,120 0 869 78 bash
14 no-host configure.yash 245,088 0 0 0 3,720 0 868 72 dash
22 no-host configure.yash 388,483 0 0 0 3,728 0 854 77 osh-cpython
30 no-host configure.yash 257,226 0 0 0 3,736 0 852 78 osh-native
38 no-host configure.yash 258,054 0 0 0 3,736 0 845 75 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,947 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3c47e17f
dash dash-0ebcf347
osh-cpython osh-e6605f88
osh-native osh-35601c5c
osh-native-souffle osh-f4227943
host label host id
no-host no-host-556df3ee