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 460 22 21 24.58 1.18
bin-true no-host 675 533 2,278 818 803 3.37 1.21
configure.cpython no-host 14,827 14,862 28,491 15,062 15,214 1.92 1.02
configure.ocaml no-host 3,767 3,701 4,603 3,812 3,774 1.22 1.01
configure.tcc no-host 48 42 200 49 48 4.19 1.02
configure.util-linux no-host 13,847 14,715 31,091 14,239 14,123 2.25 1.03
configure.yash no-host 1,812 1,744 2,427 1,799 1,795 1.34 0.99
hello-world no-host 1 1 56 3 3 38.03 1.97

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,534 1,128 23,630 3,181 3,091 9.33 1.26
bin-true no-host 108,431 66,465 776,860 127,162 125,177 7.16 1.17
configure.cpython no-host 2,217,908 2,246,298 6,222,861 2,215,291 2,221,865 2.81 1.00
configure.ocaml no-host 410,364 391,203 646,490 413,139 413,014 1.58 1.01
configure.tcc no-host 6,568 5,456 23,989 6,935 6,911 3.65 1.06
configure.util-linux no-host 2,094,335 2,262,968 5,394,976 1,999,893 1,994,177 2.58 0.95
configure.yash no-host 256,055 245,004 387,122 258,134 257,676 1.51 1.01
hello-world no-host 154 82 3,954 342 338 25.68 2.22

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.5 3.4 22.7 8.9 8.7 5.10 2.00
bin-true no-host 2.9 1.4 18.4 8.1 7.5 6.38 2.82
configure.cpython no-host 27.5 27.4 27.4 27.4 27.3 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.3 19.3 0.99 1.00
configure.util-linux no-host 30.1 29.9 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.4 18.3 6.3 5.9 6.63 2.29

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,790 3,790 0 694 1,862 1,234 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.1 153,754 12,330 2,895 8,743 76,326 68,685 3,008 3 50,000 0
configure.cpython no-host 15,062 1 61 14.9 27.4 1,771,755 49,613 28,520 85,415 878,119 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,239 3 60 21.2 30.0 2,702,521 45,808 65,719 108,691 1,290,644 1,303,186 32,239 41 131,438 1
configure.ocaml no-host 3,812 1 2 2.6 20.6 150,088 11,120 5,215 7,508 70,973 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,518 14,645 14,431 271 0 50,000 0
configure.yash no-host 1,799 1 2 2.5 24.2 139,420 8,032 6,694 5,989 67,946 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,300 64,411 42,621 4,532 54,440 57,328 277 3 85,242 1
hello-world no-host 3 0 0 0.2 5.9 3,789 3,789 0 695 1,862 1,232 2 0 50,000 0
bin-true no-host 803 1 2 2.6 7.5 153,753 12,119 2,833 8,744 76,326 68,683 3,008 3 50,000 0
configure.cpython no-host 15,214 1 63 14.9 27.3 1,771,754 49,071 28,458 85,416 878,119 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,123 3 60 21.2 30.1 2,702,521 53,701 65,657 108,693 1,290,644 1,303,184 32,239 41 131,314 1
configure.ocaml no-host 3,774 1 2 2.6 20.6 150,088 11,058 5,153 7,510 70,973 71,605 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,594 30,594 0 1,520 14,645 14,429 271 0 50,000 0
configure.yash no-host 1,795 1 2 2.5 24.2 139,420 7,970 6,632 5,991 67,946 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,299 64,349 42,559 4,533 54,440 57,326 277 3 85,118 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.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 460 433 30 22.7 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
39 no-host abuild-print-help 21 21 0 8.7 osh-native-souffle
1 no-host bin-true 675 486 221 2.9 bash
9 no-host bin-true 533 420 123 1.4 dash
17 no-host bin-true 2,278 1,456 1,082 18.4 osh-cpython
25 no-host bin-true 818 593 237 8.1 osh-native
33 no-host bin-true 803 555 263 7.5 osh-native-souffle
2 no-host configure.cpython 14,827 9,168 6,069 27.5 bash
10 no-host configure.cpython 14,862 9,074 6,210 27.4 dash
18 no-host configure.cpython 28,491 17,191 13,146 27.4 osh-cpython
26 no-host configure.cpython 15,062 9,064 6,268 27.4 osh-native
34 no-host configure.cpython 15,214 8,823 6,503 27.3 osh-native-souffle
4 no-host configure.ocaml 3,767 1,632 1,175 20.6 bash
12 no-host configure.ocaml 3,701 1,650 1,071 20.6 dash
20 no-host configure.ocaml 4,603 2,281 1,531 20.6 osh-cpython
28 no-host configure.ocaml 3,812 1,667 1,187 20.6 osh-native
36 no-host configure.ocaml 3,774 1,642 1,169 20.6 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 200 167 36 19.1 osh-cpython
29 no-host configure.tcc 49 25 24 19.3 osh-native
37 no-host configure.tcc 48 29 19 19.3 osh-native-souffle
3 no-host configure.util-linux 13,847 8,730 5,592 30.1 bash
11 no-host configure.util-linux 14,715 9,082 6,127 29.9 dash
19 no-host configure.util-linux 31,091 20,650 11,512 30.1 osh-cpython
27 no-host configure.util-linux 14,239 8,558 5,885 30.0 osh-native
35 no-host configure.util-linux 14,123 8,447 5,878 30.1 osh-native-souffle
6 no-host configure.yash 1,812 1,061 751 24.4 bash
14 no-host configure.yash 1,744 996 752 24.2 dash
22 no-host configure.yash 2,427 1,466 1,002 24.4 osh-cpython
30 no-host configure.yash 1,799 1,075 719 24.2 osh-native
38 no-host configure.yash 1,795 1,043 756 24.2 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 35 21 18.3 osh-cpython
24 no-host hello-world 3 0 3 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,534 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,630 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,431 0 0 0 8 0 1,985 59 bash
9 no-host bin-true 66,465 0 0 0 8 0 1,983 47 dash
17 no-host bin-true 776,860 0 0 0 8 0 1,991 116 osh-cpython
25 no-host bin-true 127,162 0 0 0 16 0 1,990 51 osh-native
33 no-host bin-true 125,177 0 0 0 16 0 1,991 48 osh-native-souffle
2 no-host configure.cpython 2,217,908 0 0 0 32,928 0 14,463 958 bash
10 no-host configure.cpython 2,246,298 0 0 0 32,992 0 14,618 998 dash
18 no-host configure.cpython 6,222,861 0 0 0 27,512 0 13,262 1,064 osh-cpython
26 no-host configure.cpython 2,215,291 0 0 0 27,520 0 13,230 906 osh-native
34 no-host configure.cpython 2,221,865 1 0 0 27,520 0 13,266 1,112 osh-native-souffle
4 no-host configure.ocaml 410,364 0 0 0 5,120 0 1,945 189 bash
12 no-host configure.ocaml 391,203 0 0 0 5,112 0 1,894 163 dash
20 no-host configure.ocaml 646,490 1 0 0 5,112 0 1,851 182 osh-cpython
28 no-host configure.ocaml 413,139 0 0 0 5,120 0 1,928 159 osh-native
36 no-host configure.ocaml 413,014 0 0 0 5,120 0 1,932 158 osh-native-souffle
5 no-host configure.tcc 6,568 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,456 0 0 0 96 0 47 10 dash
21 no-host configure.tcc 23,989 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,935 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,911 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,094,335 1 0 0 42,400 0 18,608 1,042 bash
11 no-host configure.util-linux 2,262,968 0 0 0 42,592 0 17,469 1,119 dash
19 no-host configure.util-linux 5,394,976 11 0 0 39,112 0 16,930 1,264 osh-cpython
27 no-host configure.util-linux 1,999,893 0 0 0 39,120 0 17,136 932 osh-native
35 no-host configure.util-linux 1,994,177 2 0 0 39,136 0 16,946 930 osh-native-souffle
6 no-host configure.yash 256,055 0 0 0 4,120 0 889 104 bash
14 no-host configure.yash 245,004 0 0 0 3,720 0 865 76 dash
22 no-host configure.yash 387,122 0 0 0 3,728 0 856 80 osh-cpython
30 no-host configure.yash 258,134 0 0 0 3,736 0 850 85 osh-native
38 no-host configure.yash 257,676 0 0 0 3,736 0 848 68 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,954 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5ee070f0
dash dash-0ebcf347
osh-cpython osh-206e8388
osh-native osh-228017dd
osh-native-souffle osh-3dbd1051
host label host id
no-host no-host-556df3ee