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 464 22 21 24.15 1.14
bin-true no-host 673 543 2,312 812 813 3.43 1.21
configure.cpython no-host 15,000 15,084 28,691 15,235 15,312 1.91 1.02
configure.ocaml no-host 3,823 3,770 4,667 3,814 3,835 1.22 1.00
configure.tcc no-host 48 41 204 49 48 4.22 1.01
configure.util-linux no-host 14,031 14,874 31,317 14,376 14,288 2.23 1.02
configure.yash no-host 1,810 1,766 2,462 1,811 1,824 1.36 1.00
hello-world no-host 2 1 58 3 3 38.00 1.94

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,530 1,096 23,619 3,216 3,081 9.34 1.27
bin-true no-host 104,393 66,362 771,447 126,305 126,178 7.39 1.21
configure.cpython no-host 2,220,244 2,240,421 6,201,763 2,215,953 2,204,903 2.79 1.00
configure.ocaml no-host 410,698 391,462 646,178 413,513 412,837 1.57 1.01
configure.tcc no-host 6,541 5,474 24,014 6,952 6,900 3.67 1.06
configure.util-linux no-host 2,103,931 2,266,698 5,370,058 1,993,314 1,990,892 2.55 0.95
configure.yash no-host 256,065 245,180 387,086 258,039 258,392 1.51 1.01
hello-world no-host 150 81 3,941 339 336 26.27 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.7 9.0 8.7 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.5 27.4 27.3 27.5 27.5 0.99 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.8 1.4 18.2 6.2 6.0 6.62 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,235 1 62 14.9 27.5 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,376 3 61 21.2 30.1 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,814 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.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,811 1 2 2.5 24.4 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 6.0 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,312 1 61 14.9 27.5 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,288 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,835 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 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,824 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.7 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 17 3 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 464 431 36 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 673 485 220 2.9 bash
9 no-host bin-true 543 415 137 1.4 dash
17 no-host bin-true 2,312 1,481 1,083 18.4 osh-cpython
25 no-host bin-true 812 576 252 8.1 osh-native
33 no-host bin-true 813 572 255 7.6 osh-native-souffle
2 no-host configure.cpython 15,000 8,869 6,533 27.5 bash
10 no-host configure.cpython 15,084 9,127 6,378 27.4 dash
18 no-host configure.cpython 28,691 17,648 12,875 27.3 osh-cpython
26 no-host configure.cpython 15,235 9,037 6,463 27.5 osh-native
34 no-host configure.cpython 15,312 8,932 6,516 27.5 osh-native-souffle
4 no-host configure.ocaml 3,823 1,629 1,229 20.4 bash
12 no-host configure.ocaml 3,770 1,629 1,148 20.6 dash
20 no-host configure.ocaml 4,667 2,241 1,631 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,557 1,296 20.6 osh-native
36 no-host configure.ocaml 3,835 1,621 1,251 20.6 osh-native-souffle
5 no-host configure.tcc 48 20 29 19.4 bash
13 no-host configure.tcc 41 22 20 19.4 dash
21 no-host configure.tcc 204 144 63 19.3 osh-cpython
29 no-host configure.tcc 49 23 26 19.3 osh-native
37 no-host configure.tcc 48 29 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,031 8,728 5,762 30.3 bash
11 no-host configure.util-linux 14,874 9,092 6,263 30.0 dash
19 no-host configure.util-linux 31,317 20,746 11,643 30.3 osh-cpython
27 no-host configure.util-linux 14,376 8,596 5,964 30.1 osh-native
35 no-host configure.util-linux 14,288 8,666 5,814 30.1 osh-native-souffle
6 no-host configure.yash 1,810 1,037 782 24.2 bash
14 no-host configure.yash 1,766 1,025 744 24.4 dash
22 no-host configure.yash 2,462 1,457 1,044 24.2 osh-cpython
30 no-host configure.yash 1,811 1,023 792 24.4 osh-native
38 no-host configure.yash 1,824 1,051 776 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.4 dash
16 no-host hello-world 58 50 8 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 0 3 6.0 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,530 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,619 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,216 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,081 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,393 0 0 0 8 0 1,992 46 bash
9 no-host bin-true 66,362 0 0 0 8 0 1,993 97 dash
17 no-host bin-true 771,447 0 0 0 8 0 2,000 392 osh-cpython
25 no-host bin-true 126,305 0 0 0 16 0 1,995 120 osh-native
33 no-host bin-true 126,178 0 0 0 16 0 1,996 229 osh-native-souffle
2 no-host configure.cpython 2,220,244 0 0 0 32,928 0 14,515 988 bash
10 no-host configure.cpython 2,240,421 0 0 0 32,992 0 14,534 1,158 dash
18 no-host configure.cpython 6,201,763 0 0 0 27,512 0 13,236 1,137 osh-cpython
26 no-host configure.cpython 2,215,953 0 0 0 27,520 0 13,225 1,004 osh-native
34 no-host configure.cpython 2,204,903 0 0 0 27,520 0 13,183 1,016 osh-native-souffle
4 no-host configure.ocaml 410,698 0 0 0 5,120 0 1,959 172 bash
12 no-host configure.ocaml 391,462 0 0 0 5,112 0 1,877 129 dash
20 no-host configure.ocaml 646,178 0 0 0 5,112 0 1,856 177 osh-cpython
28 no-host configure.ocaml 413,513 0 0 0 5,120 0 1,926 156 osh-native
36 no-host configure.ocaml 412,837 0 0 0 5,120 0 1,932 153 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,014 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,900 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,931 1 0 0 42,400 0 18,555 1,150 bash
11 no-host configure.util-linux 2,266,698 2 0 0 42,584 0 17,467 929 dash
19 no-host configure.util-linux 5,370,058 10 0 0 39,112 0 16,972 1,249 osh-cpython
27 no-host configure.util-linux 1,993,314 1 0 0 39,120 0 16,974 1,000 osh-native
35 no-host configure.util-linux 1,990,892 0 0 0 39,136 0 16,992 995 osh-native-souffle
6 no-host configure.yash 256,065 0 0 0 4,120 0 870 67 bash
14 no-host configure.yash 245,180 0 0 0 3,720 0 867 73 dash
22 no-host configure.yash 387,086 0 0 0 3,728 0 856 101 osh-cpython
30 no-host configure.yash 258,039 0 0 0 3,736 0 846 91 osh-native
38 no-host configure.yash 258,392 0 0 0 3,736 0 849 84 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,941 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 336 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6aa23422
dash dash-0ebcf347
osh-cpython osh-7071d1aa
osh-native osh-9233c711
osh-native-souffle osh-960072c3
host label host id
no-host no-host-556df3ee