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 464 22 21 24.56 1.17
bin-true no-host 674 540 2,285 820 806 3.39 1.22
configure.cpython no-host 14,817 14,903 28,441 15,046 15,209 1.92 1.02
configure.ocaml no-host 3,794 3,710 4,619 3,784 3,773 1.22 1.00
configure.tcc no-host 48 42 201 49 48 4.20 1.02
configure.util-linux no-host 13,841 14,704 30,992 14,234 14,166 2.24 1.03
configure.yash no-host 1,800 1,750 2,430 1,807 1,798 1.35 1.00
hello-world no-host 1 1 56 3 3 38.42 1.92

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,562 1,119 23,745 3,178 3,085 9.27 1.24
bin-true no-host 106,354 66,355 770,569 129,249 127,266 7.25 1.22
configure.cpython no-host 2,217,394 2,240,004 6,253,571 2,219,453 2,206,369 2.82 1.00
configure.ocaml no-host 410,775 391,282 647,118 413,046 412,652 1.58 1.01
configure.tcc no-host 6,543 5,493 24,123 6,960 6,925 3.69 1.06
configure.util-linux no-host 2,093,241 2,260,956 5,395,876 1,998,116 1,987,837 2.58 0.95
configure.yash no-host 256,690 244,985 389,572 257,844 257,588 1.52 1.00
hello-world no-host 154 82 3,941 346 338 25.59 2.25

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.4 9.0 8.7 5.03 2.03
bin-true no-host 2.9 1.4 18.2 8.1 7.6 6.32 2.82
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 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.3 19.1 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.3 30.0 30.0 30.0 0.99 0.99
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.8 6.62 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 820 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,046 1 59 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,234 3 59 21.2 30.0 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,784 0 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.1 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,807 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 5.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 806 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,209 1 59 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,166 3 58 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,773 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,798 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 13 7 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 464 420 48 22.4 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
39 no-host abuild-print-help 21 18 4 8.7 osh-native-souffle
1 no-host bin-true 674 498 208 2.9 bash
9 no-host bin-true 540 414 136 1.4 dash
17 no-host bin-true 2,285 1,473 1,067 18.2 osh-cpython
25 no-host bin-true 820 593 242 8.1 osh-native
33 no-host bin-true 806 567 250 7.6 osh-native-souffle
2 no-host configure.cpython 14,817 8,945 6,271 27.5 bash
10 no-host configure.cpython 14,903 9,083 6,241 27.4 dash
18 no-host configure.cpython 28,441 17,269 13,006 27.4 osh-cpython
26 no-host configure.cpython 15,046 8,850 6,466 27.4 osh-native
34 no-host configure.cpython 15,209 8,803 6,501 27.5 osh-native-souffle
4 no-host configure.ocaml 3,794 1,636 1,186 20.6 bash
12 no-host configure.ocaml 3,710 1,603 1,127 20.6 dash
20 no-host configure.ocaml 4,619 2,167 1,660 20.6 osh-cpython
28 no-host configure.ocaml 3,784 1,600 1,223 20.6 osh-native
36 no-host configure.ocaml 3,773 1,567 1,242 20.6 osh-native-souffle
5 no-host configure.tcc 48 22 26 19.3 bash
13 no-host configure.tcc 42 24 18 19.4 dash
21 no-host configure.tcc 201 156 49 19.3 osh-cpython
29 no-host configure.tcc 49 23 26 19.1 osh-native
37 no-host configure.tcc 48 26 23 19.3 osh-native-souffle
3 no-host configure.util-linux 13,841 8,587 5,727 30.3 bash
11 no-host configure.util-linux 14,704 9,118 6,076 30.3 dash
19 no-host configure.util-linux 30,992 20,864 11,202 30.0 osh-cpython
27 no-host configure.util-linux 14,234 8,616 5,811 30.0 osh-native
35 no-host configure.util-linux 14,166 8,540 5,826 30.0 osh-native-souffle
6 no-host configure.yash 1,800 1,038 768 24.4 bash
14 no-host configure.yash 1,750 1,070 681 24.4 dash
22 no-host configure.yash 2,430 1,522 949 24.4 osh-cpython
30 no-host configure.yash 1,807 1,061 751 24.4 osh-native
38 no-host configure.yash 1,798 1,033 769 24.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 24 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.8 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,562 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,119 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,745 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,085 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,354 0 0 0 8 0 1,989 57 bash
9 no-host bin-true 66,355 0 0 0 8 0 1,987 59 dash
17 no-host bin-true 770,569 0 0 0 8 0 1,996 109 osh-cpython
25 no-host bin-true 129,249 0 0 0 16 0 1,989 82 osh-native
33 no-host bin-true 127,266 0 0 0 16 0 1,990 58 osh-native-souffle
2 no-host configure.cpython 2,217,394 0 0 0 32,928 0 14,510 1,019 bash
10 no-host configure.cpython 2,240,004 0 0 0 32,992 0 14,728 1,064 dash
18 no-host configure.cpython 6,253,571 1 0 0 27,512 0 13,272 1,178 osh-cpython
26 no-host configure.cpython 2,219,453 1 0 0 27,520 0 13,225 945 osh-native
34 no-host configure.cpython 2,206,369 0 0 0 27,520 0 13,292 1,126 osh-native-souffle
4 no-host configure.ocaml 410,775 0 0 0 5,120 0 1,954 161 bash
12 no-host configure.ocaml 391,282 0 0 0 5,112 0 1,945 257 dash
20 no-host configure.ocaml 647,118 0 0 0 5,112 0 1,851 190 osh-cpython
28 no-host configure.ocaml 413,046 0 0 0 5,120 0 1,929 176 osh-native
36 no-host configure.ocaml 412,652 0 0 0 5,120 0 1,926 151 osh-native-souffle
5 no-host configure.tcc 6,543 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,493 0 0 0 96 0 46 5 dash
21 no-host configure.tcc 24,123 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,925 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,093,241 0 0 0 42,400 0 18,771 965 bash
11 no-host configure.util-linux 2,260,956 0 0 0 42,584 0 17,441 1,026 dash
19 no-host configure.util-linux 5,395,876 9 0 0 39,112 0 16,941 1,268 osh-cpython
27 no-host configure.util-linux 1,998,116 0 0 0 39,120 0 16,954 985 osh-native
35 no-host configure.util-linux 1,987,837 0 0 0 39,136 0 16,974 911 osh-native-souffle
6 no-host configure.yash 256,690 0 0 0 4,120 0 872 79 bash
14 no-host configure.yash 244,985 0 0 0 3,720 0 862 74 dash
22 no-host configure.yash 389,572 0 0 0 3,728 0 853 112 osh-cpython
30 no-host configure.yash 257,844 0 0 0 3,736 0 844 86 osh-native
38 no-host configure.yash 257,588 0 0 0 3,736 0 844 70 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,941 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7e145e46
dash dash-0ebcf347
osh-cpython osh-9ccd97e8
osh-native osh-a4452ab3
osh-native-souffle osh-452a5146
host label host id
no-host no-host-556df3ee