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 470 22 21 24.33 1.15
bin-true no-host 688 553 2,334 826 831 3.39 1.20
configure.cpython no-host 15,311 15,319 29,347 15,572 15,843 1.92 1.02
configure.ocaml no-host 3,873 3,803 4,733 3,902 3,895 1.22 1.01
configure.tcc no-host 47 43 206 49 49 4.33 1.04
configure.util-linux no-host 14,225 15,190 32,164 14,637 14,743 2.26 1.03
configure.yash no-host 1,836 1,809 2,525 1,858 1,867 1.38 1.01
hello-world no-host 2 1 57 3 3 35.29 1.74

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,524 1,151 23,835 3,164 3,089 9.44 1.25
bin-true no-host 108,312 66,430 770,574 128,287 126,276 7.11 1.18
configure.cpython no-host 2,225,821 2,240,954 6,235,368 2,230,371 2,205,150 2.80 1.00
configure.ocaml no-host 410,560 390,857 647,170 412,862 413,033 1.58 1.01
configure.tcc no-host 6,550 5,494 24,116 6,970 6,918 3.68 1.06
configure.util-linux no-host 2,102,970 2,265,965 5,399,551 1,993,544 1,989,189 2.57 0.95
configure.yash no-host 256,748 243,993 389,871 257,165 257,110 1.52 1.00
hello-world no-host 153 83 3,937 343 337 25.73 2.24

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 8.9 8.8 5.25 2.06
bin-true no-host 2.9 1.4 18.4 8.0 7.7 6.37 2.77
configure.cpython no-host 27.4 27.4 27.4 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.3 19.1 19.4 19.3 0.99 1.01
configure.util-linux no-host 30.0 30.3 30.1 30.3 30.1 1.00 1.01
configure.yash no-host 24.5 24.2 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

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.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 826 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,572 1 65 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,637 3 64 21.2 30.3 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,902 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,858 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 22 1 2 2.8 8.9 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 831 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,843 2 65 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,743 3 64 21.2 30.1 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,895 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 49 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,867 1 2 2.5 24.2 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 19 7 13 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 470 439 34 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 8.9 osh-native
39 no-host abuild-print-help 21 18 4 8.8 osh-native-souffle
1 no-host bin-true 688 508 212 2.9 bash
9 no-host bin-true 553 420 140 1.4 dash
17 no-host bin-true 2,334 1,540 1,051 18.4 osh-cpython
25 no-host bin-true 826 576 263 8.0 osh-native
33 no-host bin-true 831 571 274 7.7 osh-native-souffle
2 no-host configure.cpython 15,311 9,255 6,457 27.4 bash
10 no-host configure.cpython 15,319 9,195 6,544 27.4 dash
18 no-host configure.cpython 29,347 17,590 13,655 27.4 osh-cpython
26 no-host configure.cpython 15,572 9,151 6,695 27.4 osh-native
34 no-host configure.cpython 15,843 9,380 6,385 27.4 osh-native-souffle
4 no-host configure.ocaml 3,873 1,628 1,272 20.6 bash
12 no-host configure.ocaml 3,803 1,592 1,228 20.6 dash
20 no-host configure.ocaml 4,733 2,235 1,714 20.6 osh-cpython
28 no-host configure.ocaml 3,902 1,709 1,232 20.6 osh-native
36 no-host configure.ocaml 3,895 1,635 1,296 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 43 27 16 19.3 dash
21 no-host configure.tcc 206 138 71 19.1 osh-cpython
29 no-host configure.tcc 49 19 31 19.4 osh-native
37 no-host configure.tcc 49 37 13 19.3 osh-native-souffle
3 no-host configure.util-linux 14,225 8,948 5,764 30.0 bash
11 no-host configure.util-linux 15,190 9,273 6,405 30.3 dash
19 no-host configure.util-linux 32,164 21,531 11,753 30.1 osh-cpython
27 no-host configure.util-linux 14,637 8,859 5,942 30.3 osh-native
35 no-host configure.util-linux 14,743 8,738 6,186 30.1 osh-native-souffle
6 no-host configure.yash 1,836 1,051 794 24.5 bash
14 no-host configure.yash 1,809 994 820 24.2 dash
22 no-host configure.yash 2,525 1,591 979 24.4 osh-cpython
30 no-host configure.yash 1,858 1,081 781 24.2 osh-native
38 no-host configure.yash 1,867 1,049 819 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 49 8 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,524 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,835 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,164 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 108,312 0 0 0 8 0 1,990 72 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,998 147 dash
17 no-host bin-true 770,574 0 0 0 8 0 1,998 465 osh-cpython
25 no-host bin-true 128,287 0 0 0 16 0 1,987 114 osh-native
33 no-host bin-true 126,276 0 0 0 16 0 1,992 76 osh-native-souffle
2 no-host configure.cpython 2,225,821 0 0 0 32,928 0 14,478 966 bash
10 no-host configure.cpython 2,240,954 1 0 0 32,992 0 14,531 974 dash
18 no-host configure.cpython 6,235,368 0 0 0 27,512 0 13,241 1,183 osh-cpython
26 no-host configure.cpython 2,230,371 0 0 0 27,520 0 13,317 968 osh-native
34 no-host configure.cpython 2,205,150 0 0 0 27,520 0 13,195 962 osh-native-souffle
4 no-host configure.ocaml 410,560 0 0 0 5,120 0 1,957 164 bash
12 no-host configure.ocaml 390,857 0 0 0 5,112 0 1,879 144 dash
20 no-host configure.ocaml 647,170 0 0 0 5,112 0 1,860 169 osh-cpython
28 no-host configure.ocaml 412,862 0 0 0 5,120 0 1,925 157 osh-native
36 no-host configure.ocaml 413,033 0 0 0 5,120 0 1,931 149 osh-native-souffle
5 no-host configure.tcc 6,550 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,116 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,102,970 0 0 0 42,400 0 18,540 984 bash
11 no-host configure.util-linux 2,265,965 0 0 0 42,584 0 17,458 1,079 dash
19 no-host configure.util-linux 5,399,551 9 0 0 39,136 0 17,055 1,243 osh-cpython
27 no-host configure.util-linux 1,993,544 0 0 0 39,128 0 16,995 909 osh-native
35 no-host configure.util-linux 1,989,189 1 0 0 39,136 0 16,981 925 osh-native-souffle
6 no-host configure.yash 256,748 0 0 0 4,120 0 868 85 bash
14 no-host configure.yash 243,993 0 0 0 3,720 0 866 75 dash
22 no-host configure.yash 389,871 0 0 0 3,728 0 853 102 osh-cpython
30 no-host configure.yash 257,165 0 0 0 3,736 0 849 60 osh-native
38 no-host configure.yash 257,110 0 0 0 3,736 0 850 67 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 0 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,937 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5d0e43fc
dash dash-0ebcf347
osh-cpython osh-3b805b3c
osh-native osh-0f69ef94
osh-native-souffle osh-56614114
host label host id
no-host no-host-556df3ee