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 9 459 22 21 23.80 1.14
bin-true no-host 679 545 2,295 821 815 3.38 1.21
configure.cpython no-host 14,990 14,981 28,581 15,184 15,329 1.91 1.01
configure.ocaml no-host 3,839 3,730 4,634 3,823 3,808 1.21 1.00
configure.tcc no-host 47 41 201 49 48 4.24 1.03
configure.util-linux no-host 13,942 14,796 31,418 14,349 14,242 2.25 1.03
configure.yash no-host 1,815 1,785 2,448 1,816 1,820 1.35 1.00
hello-world no-host 1 1 56 3 3 38.61 2.20

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,543 1,109 23,885 3,163 3,074 9.39 1.24
bin-true no-host 106,385 66,359 774,696 127,256 124,195 7.28 1.20
configure.cpython no-host 2,221,129 2,237,549 6,214,764 2,219,049 2,211,231 2.80 1.00
configure.ocaml no-host 410,319 390,827 647,061 412,675 412,654 1.58 1.01
configure.tcc no-host 6,546 5,466 24,009 6,966 6,915 3.67 1.06
configure.util-linux no-host 2,103,111 2,256,995 5,378,489 2,001,855 1,988,999 2.56 0.95
configure.yash no-host 256,022 245,130 388,296 257,852 257,820 1.52 1.01
hello-world no-host 151 79 3,949 346 337 26.15 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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 22.7 9.0 8.5 5.25 2.09
bin-true no-host 3.0 1.4 18.2 8.1 7.7 6.05 2.70
configure.cpython no-host 27.4 27.4 27.5 27.4 27.3 1.00 1.00
configure.ocaml no-host 21.0 20.6 20.6 20.6 20.6 0.98 0.98
configure.tcc no-host 19.3 19.3 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.0 30.1 30.1 30.3 30.3 1.00 1.01
configure.yash no-host 24.4 24.4 24.4 24.5 24.4 1.00 1.01
hello-world no-host 2.8 1.4 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 821 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,184 1 61 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,349 3 59 21.2 30.3 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,823 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,816 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 815 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,329 1 61 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,242 3 59 21.2 30.3 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,808 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,820 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 18 1 4.3 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 459 410 52 22.7 osh-cpython
31 no-host abuild-print-help 22 19 3 9.0 osh-native
39 no-host abuild-print-help 21 12 9 8.5 osh-native-souffle
1 no-host bin-true 679 503 208 3.0 bash
9 no-host bin-true 545 419 135 1.4 dash
17 no-host bin-true 2,295 1,490 1,060 18.2 osh-cpython
25 no-host bin-true 821 575 260 8.1 osh-native
33 no-host bin-true 815 570 257 7.7 osh-native-souffle
2 no-host configure.cpython 14,990 8,990 6,397 27.4 bash
10 no-host configure.cpython 14,981 9,125 6,278 27.4 dash
18 no-host configure.cpython 28,581 17,506 12,914 27.5 osh-cpython
26 no-host configure.cpython 15,184 8,893 6,555 27.4 osh-native
34 no-host configure.cpython 15,329 9,137 6,330 27.3 osh-native-souffle
4 no-host configure.ocaml 3,839 1,635 1,214 21.0 bash
12 no-host configure.ocaml 3,730 1,621 1,127 20.6 dash
20 no-host configure.ocaml 4,634 2,238 1,606 20.6 osh-cpython
28 no-host configure.ocaml 3,823 1,599 1,264 20.6 osh-native
36 no-host configure.ocaml 3,808 1,600 1,245 20.6 osh-native-souffle
5 no-host configure.tcc 47 29 19 19.3 bash
13 no-host configure.tcc 41 21 21 19.3 dash
21 no-host configure.tcc 201 141 63 19.4 osh-cpython
29 no-host configure.tcc 49 26 23 19.4 osh-native
37 no-host configure.tcc 48 17 32 19.3 osh-native-souffle
3 no-host configure.util-linux 13,942 8,763 5,650 30.0 bash
11 no-host configure.util-linux 14,796 9,142 6,147 30.1 dash
19 no-host configure.util-linux 31,418 21,202 11,296 30.1 osh-cpython
27 no-host configure.util-linux 14,349 8,717 5,826 30.3 osh-native
35 no-host configure.util-linux 14,242 8,539 5,901 30.3 osh-native-souffle
6 no-host configure.yash 1,815 1,029 792 24.4 bash
14 no-host configure.yash 1,785 979 809 24.4 dash
22 no-host configure.yash 2,448 1,536 953 24.4 osh-cpython
30 no-host configure.yash 1,816 1,017 802 24.5 osh-native
38 no-host configure.yash 1,820 1,026 797 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 34 22 18.2 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,543 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,885 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 38 1 osh-native
39 no-host abuild-print-help 3,074 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,385 0 0 0 8 0 1,997 55 bash
9 no-host bin-true 66,359 0 0 0 8 0 1,982 55 dash
17 no-host bin-true 774,696 0 0 0 8 0 1,989 103 osh-cpython
25 no-host bin-true 127,256 0 0 0 16 0 1,986 110 osh-native
33 no-host bin-true 124,195 0 0 0 16 0 1,992 67 osh-native-souffle
2 no-host configure.cpython 2,221,129 0 0 0 32,928 0 14,592 1,131 bash
10 no-host configure.cpython 2,237,549 0 0 0 32,992 0 14,665 958 dash
18 no-host configure.cpython 6,214,764 0 0 0 27,512 0 13,249 1,134 osh-cpython
26 no-host configure.cpython 2,219,049 1 0 0 27,520 0 13,221 1,066 osh-native
34 no-host configure.cpython 2,211,231 0 0 0 27,520 0 13,265 942 osh-native-souffle
4 no-host configure.ocaml 410,319 0 0 0 5,120 0 1,957 159 bash
12 no-host configure.ocaml 390,827 0 0 0 5,112 0 1,911 152 dash
20 no-host configure.ocaml 647,061 0 0 0 5,112 0 1,870 182 osh-cpython
28 no-host configure.ocaml 412,675 0 0 0 5,120 0 1,930 158 osh-native
36 no-host configure.ocaml 412,654 0 0 0 5,120 0 1,936 162 osh-native-souffle
5 no-host configure.tcc 6,546 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,466 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,009 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,966 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,915 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,111 0 0 0 42,400 0 18,701 1,087 bash
11 no-host configure.util-linux 2,256,995 2 0 0 42,584 0 17,431 1,181 dash
19 no-host configure.util-linux 5,378,489 5 0 0 39,112 0 16,934 1,149 osh-cpython
27 no-host configure.util-linux 2,001,855 0 0 0 39,120 0 16,987 926 osh-native
35 no-host configure.util-linux 1,988,999 0 0 0 39,128 0 16,957 1,011 osh-native-souffle
6 no-host configure.yash 256,022 0 0 0 4,120 0 870 84 bash
14 no-host configure.yash 245,130 0 0 0 3,720 0 868 94 dash
22 no-host configure.yash 388,296 0 0 0 3,728 0 852 90 osh-cpython
30 no-host configure.yash 257,852 0 0 0 3,736 0 852 85 osh-native
38 no-host configure.yash 257,820 0 0 0 3,736 0 851 70 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,949 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-09ab484c
dash dash-0ebcf347
osh-cpython osh-a3c8fdc1
osh-native osh-58af9d34
osh-native-souffle osh-9a88caca
host label host id
no-host no-host-556df3ee