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 20 10 467 23 21 23.82 1.18
bin-true no-host 675 553 2,300 817 813 3.41 1.21
configure.cpython no-host 15,291 15,567 29,245 15,571 15,743 1.91 1.02
configure.ocaml no-host 3,852 3,798 4,732 3,895 3,898 1.23 1.01
configure.tcc no-host 49 42 206 49 50 4.21 1.01
configure.util-linux no-host 14,252 15,203 32,236 14,926 14,635 2.26 1.05
configure.yash no-host 1,857 1,786 2,507 1,872 1,865 1.35 1.01
hello-world no-host 2 1 57 3 3 37.27 1.91

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,529 1,104 23,693 3,226 3,097 9.37 1.28
bin-true no-host 105,285 66,435 770,111 127,283 125,206 7.31 1.21
configure.cpython no-host 2,216,228 2,242,097 6,191,241 2,215,900 2,210,324 2.79 1.00
configure.ocaml no-host 410,346 391,183 644,173 413,337 412,451 1.57 1.01
configure.tcc no-host 6,562 5,499 24,055 6,936 6,901 3.67 1.06
configure.util-linux no-host 2,104,720 2,264,974 5,374,018 2,000,855 1,987,748 2.55 0.95
configure.yash no-host 256,674 244,513 388,209 258,195 258,021 1.51 1.01
hello-world no-host 153 84 3,939 346 333 25.75 2.26

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.4 22.3 9.2 8.8 5.15 2.12
bin-true no-host 2.9 1.4 18.4 8.0 7.9 6.37 2.77
configure.cpython no-host 27.4 27.3 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.2 24.5 1.00 1.00
hello-world no-host 2.8 1.6 18.2 6.4 5.9 6.62 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 817 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,571 1 68 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,926 3 66 21.2 30.0 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,895 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 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,872 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 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.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,743 1 66 14.9 27.4 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,635 3 64 21.2 30.0 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,898 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 50 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,865 1 2 2.5 24.5 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.8 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 20 15 5 4.3 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 467 442 29 22.3 osh-cpython
31 no-host abuild-print-help 23 15 9 9.2 osh-native
39 no-host abuild-print-help 21 15 6 8.8 osh-native-souffle
1 no-host bin-true 675 509 198 2.9 bash
9 no-host bin-true 553 416 143 1.4 dash
17 no-host bin-true 2,300 1,486 1,071 18.4 osh-cpython
25 no-host bin-true 817 572 260 8.0 osh-native
33 no-host bin-true 813 577 251 7.9 osh-native-souffle
2 no-host configure.cpython 15,291 9,183 6,515 27.4 bash
10 no-host configure.cpython 15,567 9,452 6,544 27.3 dash
18 no-host configure.cpython 29,245 17,712 13,408 27.5 osh-cpython
26 no-host configure.cpython 15,571 9,193 6,654 27.4 osh-native
34 no-host configure.cpython 15,743 9,225 6,652 27.4 osh-native-souffle
4 no-host configure.ocaml 3,852 1,566 1,328 20.6 bash
12 no-host configure.ocaml 3,798 1,651 1,166 20.6 dash
20 no-host configure.ocaml 4,732 2,316 1,629 20.6 osh-cpython
28 no-host configure.ocaml 3,895 1,582 1,354 20.6 osh-native
36 no-host configure.ocaml 3,898 1,662 1,270 20.6 osh-native-souffle
5 no-host configure.tcc 49 37 13 19.3 bash
13 no-host configure.tcc 42 32 11 19.4 dash
21 no-host configure.tcc 206 161 48 19.4 osh-cpython
29 no-host configure.tcc 49 27 23 19.4 osh-native
37 no-host configure.tcc 50 29 21 19.3 osh-native-souffle
3 no-host configure.util-linux 14,252 9,016 5,718 30.1 bash
11 no-host configure.util-linux 15,203 9,348 6,354 30.3 dash
19 no-host configure.util-linux 32,236 21,239 12,112 30.1 osh-cpython
27 no-host configure.util-linux 14,926 9,027 6,089 30.0 osh-native
35 no-host configure.util-linux 14,635 8,933 5,899 30.0 osh-native-souffle
6 no-host configure.yash 1,857 1,071 794 24.2 bash
14 no-host configure.yash 1,786 1,063 726 24.4 dash
22 no-host configure.yash 2,507 1,618 932 24.2 osh-cpython
30 no-host configure.yash 1,872 1,090 786 24.2 osh-native
38 no-host configure.yash 1,865 1,047 819 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 57 36 21 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,529 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,693 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,226 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,285 0 0 0 8 0 1,990 52 bash
9 no-host bin-true 66,435 0 0 0 8 0 1,990 73 dash
17 no-host bin-true 770,111 0 0 0 8 0 1,999 151 osh-cpython
25 no-host bin-true 127,283 0 0 0 16 0 1,977 60 osh-native
33 no-host bin-true 125,206 0 0 0 16 0 1,987 82 osh-native-souffle
2 no-host configure.cpython 2,216,228 0 0 0 32,928 0 14,422 980 bash
10 no-host configure.cpython 2,242,097 0 0 0 32,992 0 14,545 1,003 dash
18 no-host configure.cpython 6,191,241 3 0 0 27,512 0 13,283 1,157 osh-cpython
26 no-host configure.cpython 2,215,900 0 0 0 27,520 0 13,190 1,043 osh-native
34 no-host configure.cpython 2,210,324 0 0 0 27,520 0 13,185 908 osh-native-souffle
4 no-host configure.ocaml 410,346 0 0 0 5,120 0 1,947 155 bash
12 no-host configure.ocaml 391,183 0 0 0 5,112 0 1,947 139 dash
20 no-host configure.ocaml 644,173 0 0 0 5,112 0 1,860 179 osh-cpython
28 no-host configure.ocaml 413,337 0 0 0 5,120 0 1,924 165 osh-native
36 no-host configure.ocaml 412,451 0 0 0 5,120 0 1,930 207 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,499 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,055 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,936 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,901 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,104,720 1 0 0 42,400 0 18,654 1,015 bash
11 no-host configure.util-linux 2,264,974 0 0 0 42,592 0 17,395 1,066 dash
19 no-host configure.util-linux 5,374,018 10 0 0 39,112 0 17,102 1,104 osh-cpython
27 no-host configure.util-linux 2,000,855 0 0 0 39,128 0 16,942 962 osh-native
35 no-host configure.util-linux 1,987,748 0 0 0 39,136 0 16,949 935 osh-native-souffle
6 no-host configure.yash 256,674 0 0 0 4,120 0 870 211 bash
14 no-host configure.yash 244,513 0 0 0 3,720 0 867 84 dash
22 no-host configure.yash 388,209 0 0 0 3,728 0 850 80 osh-cpython
30 no-host configure.yash 258,195 0 0 0 3,736 0 848 75 osh-native
38 no-host configure.yash 258,021 0 0 0 3,736 0 848 78 osh-native-souffle
0 no-host hello-world 153 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,939 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 333 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-bfb04251
dash dash-0ebcf347
osh-cpython osh-99110a15
osh-native osh-b9ea7976
osh-native-souffle osh-efc278b4
host label host id
no-host no-host-556df3ee