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 482 22 21 25.29 1.15
bin-true no-host 658 530 2,359 800 785 3.59 1.22
configure.cpython no-host 14,769 14,897 29,275 15,063 15,163 1.98 1.02
configure.ocaml no-host 3,795 3,718 4,687 3,801 3,786 1.23 1.00
configure.tcc no-host 46 41 207 52 47 4.46 1.12
configure.util-linux no-host 13,799 14,608 31,816 14,194 14,082 2.31 1.03
configure.yash no-host 1,810 1,762 2,481 1,824 1,818 1.37 1.01
hello-world no-host 1 1 58 3 3 44.00 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,565 1,130 24,250 3,194 3,109 9.45 1.25
bin-true no-host 105,305 66,378 806,659 129,260 125,245 7.66 1.23
configure.cpython no-host 2,001,993 2,025,561 6,092,173 2,008,035 1,993,522 3.04 1.00
configure.ocaml no-host 373,141 353,835 616,970 377,186 375,885 1.65 1.01
configure.tcc no-host 6,082 5,040 24,059 6,495 6,436 3.96 1.07
configure.util-linux no-host 1,918,072 2,072,726 5,300,855 1,819,587 1,804,297 2.76 0.95
configure.yash no-host 233,241 221,188 369,988 235,846 235,700 1.59 1.01
hello-world no-host 147 79 3,977 344 334 27.05 2.34

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.5 22.9 9.2 8.7 5.13 2.06
bin-true no-host 2.9 1.4 18.5 8.3 7.6 6.43 2.86
configure.cpython no-host 29.2 29.2 29.0 29.2 29.2 0.99 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.5 19.6 19.5 19.8 19.8 1.00 1.01
configure.util-linux no-host 30.2 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.0 26.3 26.4 26.3 1.00 1.00
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.38 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 800 1 2 2.6 8.3 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 15,063 1 66 15.3 29.2 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,194 3 66 21.6 30.3 2,704,674 53,757 65,725 114,372 1,293,957 1,296,345 32,241 41 131,450 1
configure.ocaml no-host 3,801 1 2 2.6 22.6 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.8 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 26.4 139,684 8,041 6,700 6,394 68,253 65,037 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,321 64,419 42,627 4,544 54,454 57,323 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 785 1 2 2.6 7.6 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 15,163 1 66 15.3 29.2 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,082 3 67 21.6 30.3 2,704,674 53,734 65,720 114,374 1,293,957 1,296,343 32,241 41 131,440 1
configure.ocaml no-host 3,786 1 2 2.6 22.6 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,818 1 2 2.6 26.3 139,684 8,030 6,689 6,396 68,253 65,035 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,320 64,414 42,622 4,545 54,454 57,321 277 3 85,244 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 9 10 4.5 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 482 421 64 22.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.2 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 658 311 380 2.9 bash
9 no-host bin-true 530 279 262 1.4 dash
17 no-host bin-true 2,359 791 1,823 18.5 osh-cpython
25 no-host bin-true 800 296 519 8.3 osh-native
33 no-host bin-true 785 299 501 7.6 osh-native-souffle
2 no-host configure.cpython 14,769 6,663 8,523 29.2 bash
10 no-host configure.cpython 14,897 6,707 8,623 29.2 dash
18 no-host configure.cpython 29,275 14,572 16,629 29.0 osh-cpython
26 no-host configure.cpython 15,063 6,696 8,656 29.2 osh-native
34 no-host configure.cpython 15,163 6,547 8,751 29.2 osh-native-souffle
4 no-host configure.ocaml 3,795 1,353 1,478 22.6 bash
12 no-host configure.ocaml 3,718 1,298 1,442 22.6 dash
20 no-host configure.ocaml 4,687 1,878 2,022 22.6 osh-cpython
28 no-host configure.ocaml 3,801 1,337 1,506 22.6 osh-native
36 no-host configure.ocaml 3,786 1,323 1,503 22.6 osh-native-souffle
5 no-host configure.tcc 46 23 23 19.5 bash
13 no-host configure.tcc 41 16 25 19.6 dash
21 no-host configure.tcc 207 133 77 19.5 osh-cpython
29 no-host configure.tcc 52 31 21 19.8 osh-native
37 no-host configure.tcc 47 25 23 19.8 osh-native-souffle
3 no-host configure.util-linux 13,799 5,846 8,447 30.2 bash
11 no-host configure.util-linux 14,608 5,918 9,207 30.3 dash
19 no-host configure.util-linux 31,816 17,924 14,999 30.3 osh-cpython
27 no-host configure.util-linux 14,194 5,648 8,762 30.3 osh-native
35 no-host configure.util-linux 14,082 5,623 8,681 30.3 osh-native-souffle
6 no-host configure.yash 1,810 907 910 26.3 bash
14 no-host configure.yash 1,762 900 866 26.0 dash
22 no-host configure.yash 2,481 1,381 1,145 26.3 osh-cpython
30 no-host configure.yash 1,824 898 932 26.4 osh-native
38 no-host configure.yash 1,818 902 921 26.3 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 38 20 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 1 2 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,565 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,250 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,194 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,305 0 0 0 8 0 1,980 140 bash
9 no-host bin-true 66,378 0 0 0 8 0 1,974 109 dash
17 no-host bin-true 806,659 0 0 0 8 0 1,982 327 osh-cpython
25 no-host bin-true 129,260 0 0 0 16 0 1,975 168 osh-native
33 no-host bin-true 125,245 0 0 0 16 0 1,970 130 osh-native-souffle
2 no-host configure.cpython 2,001,993 0 0 0 32,928 0 14,229 1,241 bash
10 no-host configure.cpython 2,025,561 0 0 0 32,992 0 14,374 1,185 dash
18 no-host configure.cpython 6,092,173 1 0 0 27,512 0 13,127 1,239 osh-cpython
26 no-host configure.cpython 2,008,035 0 0 0 27,520 0 13,136 1,166 osh-native
34 no-host configure.cpython 1,993,522 0 0 0 27,520 0 13,083 1,077 osh-native-souffle
4 no-host configure.ocaml 373,141 0 0 0 5,120 0 1,959 178 bash
12 no-host configure.ocaml 353,835 0 0 0 5,112 0 1,941 174 dash
20 no-host configure.ocaml 616,970 1 0 0 5,112 0 1,848 210 osh-cpython
28 no-host configure.ocaml 377,186 0 0 0 5,120 0 1,924 186 osh-native
36 no-host configure.ocaml 375,885 0 0 0 5,120 0 1,918 191 osh-native-souffle
5 no-host configure.tcc 6,082 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,040 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,059 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,495 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,436 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,918,072 0 0 0 42,400 0 18,395 1,242 bash
11 no-host configure.util-linux 2,072,726 1 0 0 42,584 0 17,350 1,386 dash
19 no-host configure.util-linux 5,300,855 11 0 0 39,136 0 17,053 1,256 osh-cpython
27 no-host configure.util-linux 1,819,587 0 0 0 39,128 0 16,985 1,205 osh-native
35 no-host configure.util-linux 1,804,297 0 0 0 39,136 0 16,996 1,170 osh-native-souffle
6 no-host configure.yash 233,241 0 0 0 4,120 0 870 97 bash
14 no-host configure.yash 221,188 0 0 0 3,720 0 865 92 dash
22 no-host configure.yash 369,988 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 235,846 0 0 0 3,736 0 851 92 osh-native
38 no-host configure.yash 235,700 0 0 0 3,736 0 850 87 osh-native-souffle
0 no-host hello-world 147 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,977 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2f74cab0
dash dash-0ebcf347
osh-cpython osh-efac317e
osh-native osh-85caccfe
osh-native-souffle osh-6329e8d6
host label host id
no-host no-host-e4839999