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 468 22 21 24.80 1.17
bin-true no-host 661 542 2,319 798 810 3.51 1.21
configure.cpython no-host 14,692 14,919 28,768 14,829 15,186 1.96 1.01
configure.ocaml no-host 3,775 3,720 4,578 3,829 3,766 1.21 1.01
configure.tcc no-host 47 41 207 49 48 4.39 1.03
configure.util-linux no-host 13,640 14,921 31,272 13,963 14,330 2.29 1.02
configure.yash no-host 1,889 1,802 2,445 1,862 1,795 1.29 0.99
hello-world no-host 1 1 57 3 3 43.17 2.19

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,103 23,938 3,192 3,144 9.45 1.26
bin-true no-host 106,303 66,449 778,091 125,144 125,177 7.32 1.18
configure.cpython no-host 1,993,597 2,017,815 6,053,290 2,001,253 1,984,220 3.04 1.00
configure.ocaml no-host 373,811 353,445 610,642 376,885 375,263 1.63 1.01
configure.tcc no-host 6,085 5,006 23,751 6,475 6,443 3.90 1.06
configure.util-linux no-host 1,902,772 2,066,536 5,242,723 1,808,712 1,799,770 2.76 0.95
configure.yash no-host 233,262 221,148 366,626 235,176 235,210 1.57 1.01
hello-world no-host 148 77 3,995 345 335 26.99 2.33

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.2 3.5 22.7 9.0 8.8 5.42 2.16
bin-true no-host 2.9 1.4 18.4 7.9 7.6 6.38 2.73
configure.cpython no-host 29.1 29.3 29.1 29.1 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.5 22.6 22.6 0.99 1.00
configure.tcc no-host 19.7 19.6 19.8 19.5 19.7 1.01 0.99
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.2 26.4 26.5 26.5 1.00 1.01
hello-world no-host 2.8 1.4 18.3 6.4 5.6 6.64 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 798 1 2 2.6 7.9 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,829 1 67 14.9 29.1 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 13,963 3 65 21.2 30.3 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,829 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.5 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,862 1 2 2.5 26.5 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.6 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.6 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 15,186 1 72 14.9 29.1 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 14,330 3 69 21.2 30.3 2,698,991 29,878 65,636 108,702 1,288,281 1,302,008 32,241 41 131,272 1
configure.ocaml no-host 3,766 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,795 1 2 2.5 26.5 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 11 8 4.2 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 468 418 54 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.8 osh-native-souffle
1 no-host bin-true 661 306 387 2.9 bash
9 no-host bin-true 542 279 276 1.4 dash
17 no-host bin-true 2,319 791 1,795 18.4 osh-cpython
25 no-host bin-true 798 293 523 7.9 osh-native
33 no-host bin-true 810 281 544 7.6 osh-native-souffle
2 no-host configure.cpython 14,692 6,674 8,453 29.1 bash
10 no-host configure.cpython 14,919 6,748 8,625 29.3 dash
18 no-host configure.cpython 28,768 14,428 16,272 29.1 osh-cpython
26 no-host configure.cpython 14,829 6,497 8,621 29.1 osh-native
34 no-host configure.cpython 15,186 6,650 8,828 29.1 osh-native-souffle
4 no-host configure.ocaml 3,775 1,325 1,486 22.6 bash
12 no-host configure.ocaml 3,720 1,282 1,459 22.5 dash
20 no-host configure.ocaml 4,578 1,829 1,965 22.5 osh-cpython
28 no-host configure.ocaml 3,829 1,366 1,505 22.6 osh-native
36 no-host configure.ocaml 3,766 1,343 1,462 22.6 osh-native-souffle
5 no-host configure.tcc 47 23 25 19.7 bash
13 no-host configure.tcc 41 20 21 19.6 dash
21 no-host configure.tcc 207 146 65 19.8 osh-cpython
29 no-host configure.tcc 49 23 27 19.5 osh-native
37 no-host configure.tcc 48 19 29 19.7 osh-native-souffle
3 no-host configure.util-linux 13,640 5,771 8,370 30.2 bash
11 no-host configure.util-linux 14,921 6,057 9,411 30.3 dash
19 no-host configure.util-linux 31,272 17,829 14,559 30.3 osh-cpython
27 no-host configure.util-linux 13,963 5,576 8,614 30.3 osh-native
35 no-host configure.util-linux 14,330 5,715 8,839 30.3 osh-native-souffle
6 no-host configure.yash 1,889 926 973 26.3 bash
14 no-host configure.yash 1,802 906 899 26.2 dash
22 no-host configure.yash 2,445 1,333 1,156 26.4 osh-cpython
30 no-host configure.yash 1,862 920 947 26.5 osh-native
38 no-host configure.yash 1,795 849 950 26.5 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 57 32 24 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 0 3 5.6 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,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,938 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,144 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,303 0 0 0 8 0 1,970 85 bash
9 no-host bin-true 66,449 0 0 0 8 0 1,979 145 dash
17 no-host bin-true 778,091 0 0 0 8 0 1,982 487 osh-cpython
25 no-host bin-true 125,144 0 0 0 16 0 1,979 112 osh-native
33 no-host bin-true 125,177 0 0 0 16 0 1,989 292 osh-native-souffle
2 no-host configure.cpython 1,993,597 1 0 0 32,928 0 14,233 1,164 bash
10 no-host configure.cpython 2,017,815 1 0 0 32,992 0 14,343 1,168 dash
18 no-host configure.cpython 6,053,290 2 0 0 27,512 0 13,047 1,260 osh-cpython
26 no-host configure.cpython 2,001,253 1 0 0 27,520 0 13,055 1,134 osh-native
34 no-host configure.cpython 1,984,220 0 0 0 27,520 0 13,029 1,114 osh-native-souffle
4 no-host configure.ocaml 373,811 0 0 0 5,120 0 1,954 163 bash
12 no-host configure.ocaml 353,445 0 0 0 5,112 0 1,933 170 dash
20 no-host configure.ocaml 610,642 0 0 0 5,112 0 1,850 178 osh-cpython
28 no-host configure.ocaml 376,885 0 0 0 5,120 0 1,929 196 osh-native
36 no-host configure.ocaml 375,263 0 0 0 5,120 0 1,927 212 osh-native-souffle
5 no-host configure.tcc 6,085 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,006 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,751 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,475 0 0 0 104 0 46 10 osh-native
37 no-host configure.tcc 6,443 0 0 0 104 0 46 3 osh-native-souffle
3 no-host configure.util-linux 1,902,772 0 0 0 42,400 0 18,430 1,396 bash
11 no-host configure.util-linux 2,066,536 1 0 0 42,584 0 17,363 1,331 dash
19 no-host configure.util-linux 5,242,723 9 0 0 39,112 0 17,022 1,331 osh-cpython
27 no-host configure.util-linux 1,808,712 0 0 0 39,120 0 16,999 1,147 osh-native
35 no-host configure.util-linux 1,799,770 0 0 0 39,128 0 16,946 1,315 osh-native-souffle
6 no-host configure.yash 233,262 0 0 0 4,120 0 868 97 bash
14 no-host configure.yash 221,148 0 0 0 3,720 0 867 75 dash
22 no-host configure.yash 366,626 0 0 0 3,728 0 853 142 osh-cpython
30 no-host configure.yash 235,176 0 0 0 3,736 0 846 97 osh-native
38 no-host configure.yash 235,210 0 0 0 3,736 0 845 74 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,995 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-156d5981
dash dash-0ebcf347
osh-cpython osh-95112aab
osh-native osh-7bb1f8cf
osh-native-souffle osh-ebe02492
host label host id
no-host no-host-e4839999