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 20 9 465 22 21 23.51 1.12
bin-true no-host 678 544 2,286 809 813 3.37 1.19
configure.cpython no-host 15,122 15,115 29,055 15,457 15,625 1.92 1.02
configure.ocaml no-host 3,763 3,748 4,707 3,850 3,854 1.25 1.02
configure.tcc no-host 47 43 203 50 49 4.28 1.06
configure.util-linux no-host 14,006 14,839 31,855 14,593 14,459 2.27 1.04
configure.yash no-host 1,836 1,785 2,506 1,885 1,852 1.37 1.03
hello-world no-host 1 1 56 3 3 38.25 1.96

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,536 1,136 23,385 3,189 3,099 9.22 1.26
bin-true no-host 106,353 66,458 758,967 125,159 126,164 7.14 1.18
configure.cpython no-host 2,222,367 2,238,150 6,202,427 2,214,013 2,221,705 2.79 1.00
configure.ocaml no-host 409,408 390,948 643,894 413,709 411,875 1.57 1.01
configure.tcc no-host 6,572 5,493 23,915 6,956 6,912 3.64 1.06
configure.util-linux no-host 2,097,155 2,265,831 5,352,835 2,001,211 1,989,918 2.55 0.95
configure.yash no-host 254,962 243,986 385,833 257,114 257,243 1.51 1.01
hello-world no-host 151 82 3,960 346 336 26.23 2.29

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.8 9.0 8.5 5.13 2.03
bin-true no-host 3.0 1.4 18.5 8.4 7.6 6.14 2.78
configure.cpython no-host 27.4 27.4 27.3 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.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.0 30.1 29.9 1.00 1.00
configure.yash no-host 24.5 24.5 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 18.3 6.4 5.9 6.63 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.4 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,457 1 65 14.9 27.4 1,771,804 49,616 28,523 85,427 878,138 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,593 3 65 21.2 30.1 2,702,550 53,777 65,702 108,699 1,290,655 1,303,196 32,241 41 131,404 1
configure.ocaml no-host 3,850 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,885 1 2 2.5 24.2 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 5.9 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.6 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,625 2 64 14.9 27.4 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,459 3 61 21.2 29.9 2,702,550 53,704 65,660 108,701 1,290,655 1,303,194 32,241 41 131,320 1
configure.ocaml no-host 3,854 1 2 2.6 20.6 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,852 1 2 2.5 24.2 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 20 15 5 4.5 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 465 409 59 22.8 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 678 495 215 3.0 bash
9 no-host bin-true 544 425 128 1.4 dash
17 no-host bin-true 2,286 1,565 980 18.5 osh-cpython
25 no-host bin-true 809 574 250 8.4 osh-native
33 no-host bin-true 813 574 252 7.6 osh-native-souffle
2 no-host configure.cpython 15,122 9,200 6,315 27.4 bash
10 no-host configure.cpython 15,115 8,915 6,575 27.4 dash
18 no-host configure.cpython 29,055 17,687 13,218 27.3 osh-cpython
26 no-host configure.cpython 15,457 9,045 6,680 27.4 osh-native
34 no-host configure.cpython 15,625 9,213 6,541 27.4 osh-native-souffle
4 no-host configure.ocaml 3,763 1,564 1,238 20.6 bash
12 no-host configure.ocaml 3,748 1,594 1,172 20.6 dash
20 no-host configure.ocaml 4,707 2,346 1,573 20.6 osh-cpython
28 no-host configure.ocaml 3,850 1,628 1,258 20.6 osh-native
36 no-host configure.ocaml 3,854 1,688 1,202 20.6 osh-native-souffle
5 no-host configure.tcc 47 39 9 19.3 bash
13 no-host configure.tcc 43 24 18 19.3 dash
21 no-host configure.tcc 203 149 57 19.3 osh-cpython
29 no-host configure.tcc 50 20 31 19.3 osh-native
37 no-host configure.tcc 49 30 20 19.4 osh-native-souffle
3 no-host configure.util-linux 14,006 8,826 5,644 30.1 bash
11 no-host configure.util-linux 14,839 9,072 6,260 30.1 dash
19 no-host configure.util-linux 31,855 21,402 11,540 30.0 osh-cpython
27 no-host configure.util-linux 14,593 8,743 6,035 30.1 osh-native
35 no-host configure.util-linux 14,459 8,695 5,953 29.9 osh-native-souffle
6 no-host configure.yash 1,836 1,099 744 24.5 bash
14 no-host configure.yash 1,785 1,021 767 24.5 dash
22 no-host configure.yash 2,506 1,539 1,009 24.4 osh-cpython
30 no-host configure.yash 1,885 1,128 761 24.2 osh-native
38 no-host configure.yash 1,852 999 855 24.2 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 36 20 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 3 0 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,536 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,385 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,353 0 0 0 8 0 1,993 91 bash
9 no-host bin-true 66,458 0 0 0 8 0 1,994 200 dash
17 no-host bin-true 758,967 0 0 0 8 0 2,004 187 osh-cpython
25 no-host bin-true 125,159 0 0 0 16 0 1,982 47 osh-native
33 no-host bin-true 126,164 0 0 0 16 0 1,994 76 osh-native-souffle
2 no-host configure.cpython 2,222,367 0 0 0 32,928 0 14,508 949 bash
10 no-host configure.cpython 2,238,150 0 0 0 32,992 0 14,688 961 dash
18 no-host configure.cpython 6,202,427 0 0 0 27,512 0 13,279 1,208 osh-cpython
26 no-host configure.cpython 2,214,013 0 0 0 27,520 0 13,171 960 osh-native
34 no-host configure.cpython 2,221,705 0 0 0 27,520 0 13,278 1,051 osh-native-souffle
4 no-host configure.ocaml 409,408 0 0 0 5,120 0 1,950 148 bash
12 no-host configure.ocaml 390,948 0 0 0 5,112 0 1,902 152 dash
20 no-host configure.ocaml 643,894 0 0 0 5,112 0 1,865 236 osh-cpython
28 no-host configure.ocaml 413,709 0 0 0 5,120 0 1,923 173 osh-native
36 no-host configure.ocaml 411,875 0 0 0 5,120 0 1,930 162 osh-native-souffle
5 no-host configure.tcc 6,572 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,493 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,915 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,097,155 1 0 0 42,400 0 18,646 1,039 bash
11 no-host configure.util-linux 2,265,831 1 0 0 42,592 0 17,385 1,070 dash
19 no-host configure.util-linux 5,352,835 12 0 0 39,112 0 16,985 1,146 osh-cpython
27 no-host configure.util-linux 2,001,211 0 0 0 39,120 0 16,972 1,016 osh-native
35 no-host configure.util-linux 1,989,918 0 0 0 39,128 0 16,936 911 osh-native-souffle
6 no-host configure.yash 254,962 0 0 0 4,120 0 883 79 bash
14 no-host configure.yash 243,986 0 0 0 3,720 0 870 83 dash
22 no-host configure.yash 385,833 0 0 0 3,728 0 855 93 osh-cpython
30 no-host configure.yash 257,114 0 0 0 3,736 0 845 81 osh-native
38 no-host configure.yash 257,243 0 0 0 3,736 0 846 80 osh-native-souffle
0 no-host hello-world 151 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,960 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-86adc62d
dash dash-0ebcf347
osh-cpython osh-80c3df19
osh-native osh-4c8fe17d
osh-native-souffle osh-32264f5b
host label host id
no-host no-host-556df3ee