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 463 22 21 24.24 1.17
bin-true no-host 682 550 2,306 804 813 3.38 1.18
configure.cpython no-host 15,190 15,055 28,821 15,233 15,300 1.90 1.00
configure.ocaml no-host 3,830 3,727 4,701 3,814 3,853 1.23 1.00
configure.tcc no-host 51 42 205 49 48 4.06 0.96
configure.util-linux no-host 14,005 14,833 31,413 14,377 14,317 2.24 1.03
configure.yash no-host 1,815 1,776 2,445 1,835 1,826 1.35 1.01
hello-world no-host 2 1 56 3 3 37.14 1.88

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,113 23,523 3,188 3,089 9.28 1.26
bin-true no-host 105,339 66,425 766,738 126,123 125,142 7.28 1.20
configure.cpython no-host 2,216,648 2,245,309 6,194,096 2,228,899 2,218,374 2.79 1.01
configure.ocaml no-host 410,061 391,574 644,275 412,956 412,443 1.57 1.01
configure.tcc no-host 6,551 5,473 24,010 6,963 6,892 3.67 1.06
configure.util-linux no-host 2,093,364 2,260,406 5,348,023 1,995,972 1,986,727 2.55 0.95
configure.yash no-host 256,117 244,579 386,177 257,952 257,607 1.51 1.01
hello-world no-host 151 79 3,957 343 342 26.21 2.27

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.6 8.9 8.7 5.07 2.00
bin-true no-host 2.9 1.4 18.5 8.1 7.6 6.42 2.82
configure.cpython no-host 27.1 27.4 27.4 27.5 27.4 1.01 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.8 1.4 18.1 6.2 5.9 6.59 2.24

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.2 3,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 804 1 2 2.6 8.1 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,233 1 60 14.9 27.5 1,771,758 49,616 28,523 85,415 878,122 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,377 3 60 21.2 30.1 2,702,524 45,811 65,722 108,691 1,290,647 1,303,186 32,239 41 131,444 1
configure.ocaml no-host 3,814 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 49 0 0 1.3 19.4 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,835 1 2 2.5 24.4 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 8.9 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,300 1 60 14.9 27.4 1,771,757 49,074 28,461 85,416 878,122 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,317 3 59 21.2 30.3 2,702,524 53,704 65,660 108,693 1,290,647 1,303,184 32,239 41 131,320 1
configure.ocaml no-host 3,853 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 48 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,826 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.7 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 19 18 2 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 463 429 37 22.6 osh-cpython
31 no-host abuild-print-help 22 17 6 8.9 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 682 501 211 2.9 bash
9 no-host bin-true 550 432 127 1.4 dash
17 no-host bin-true 2,306 1,498 1,073 18.5 osh-cpython
25 no-host bin-true 804 565 255 8.1 osh-native
33 no-host bin-true 813 589 238 7.6 osh-native-souffle
2 no-host configure.cpython 15,190 9,258 6,322 27.1 bash
10 no-host configure.cpython 15,055 9,156 6,317 27.4 dash
18 no-host configure.cpython 28,821 17,634 13,058 27.4 osh-cpython
26 no-host configure.cpython 15,233 9,077 6,416 27.5 osh-native
34 no-host configure.cpython 15,300 8,988 6,434 27.4 osh-native-souffle
4 no-host configure.ocaml 3,830 1,676 1,193 20.4 bash
12 no-host configure.ocaml 3,727 1,555 1,191 20.6 dash
20 no-host configure.ocaml 4,701 2,320 1,593 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,654 1,199 20.6 osh-native
36 no-host configure.ocaml 3,853 1,705 1,180 20.6 osh-native-souffle
5 no-host configure.tcc 51 31 18 19.3 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 205 135 74 19.3 osh-cpython
29 no-host configure.tcc 49 29 20 19.4 osh-native
37 no-host configure.tcc 48 25 23 19.4 osh-native-souffle
3 no-host configure.util-linux 14,005 8,822 5,652 30.1 bash
11 no-host configure.util-linux 14,833 9,051 6,277 30.3 dash
19 no-host configure.util-linux 31,413 20,929 11,564 30.3 osh-cpython
27 no-host configure.util-linux 14,377 8,626 5,935 30.1 osh-native
35 no-host configure.util-linux 14,317 8,572 5,941 30.3 osh-native-souffle
6 no-host configure.yash 1,815 1,069 755 24.2 bash
14 no-host configure.yash 1,776 1,045 734 24.2 dash
22 no-host configure.yash 2,445 1,539 947 24.2 osh-cpython
30 no-host configure.yash 1,835 1,085 754 24.4 osh-native
38 no-host configure.yash 1,826 1,049 780 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 28 28 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.2 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 40 1 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,523 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 105,339 0 0 0 8 0 1,992 52 bash
9 no-host bin-true 66,425 0 0 0 8 0 1,995 96 dash
17 no-host bin-true 766,738 0 0 0 8 0 1,991 231 osh-cpython
25 no-host bin-true 126,123 0 0 0 16 0 1,994 43 osh-native
33 no-host bin-true 125,142 0 0 0 16 0 1,992 99 osh-native-souffle
2 no-host configure.cpython 2,216,648 0 0 0 32,928 0 14,484 938 bash
10 no-host configure.cpython 2,245,309 0 0 0 32,992 0 14,645 1,013 dash
18 no-host configure.cpython 6,194,096 0 0 0 27,512 0 13,261 1,193 osh-cpython
26 no-host configure.cpython 2,228,899 0 0 0 27,520 0 13,324 946 osh-native
34 no-host configure.cpython 2,218,374 0 0 0 27,520 0 13,296 892 osh-native-souffle
4 no-host configure.ocaml 410,061 0 0 0 5,120 0 1,949 144 bash
12 no-host configure.ocaml 391,574 0 0 0 5,112 0 1,931 155 dash
20 no-host configure.ocaml 644,275 0 0 0 5,112 0 1,860 215 osh-cpython
28 no-host configure.ocaml 412,956 0 0 0 5,120 0 1,929 186 osh-native
36 no-host configure.ocaml 412,443 0 0 0 5,120 0 1,926 150 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 51 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,010 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,892 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,093,364 0 0 0 42,400 0 18,437 991 bash
11 no-host configure.util-linux 2,260,406 0 0 0 42,592 0 17,278 1,119 dash
19 no-host configure.util-linux 5,348,023 18 0 0 39,112 0 16,963 1,182 osh-cpython
27 no-host configure.util-linux 1,995,972 1 0 0 39,120 0 16,985 1,008 osh-native
35 no-host configure.util-linux 1,986,727 1 0 0 39,136 0 16,998 1,121 osh-native-souffle
6 no-host configure.yash 256,117 0 0 0 4,120 0 869 83 bash
14 no-host configure.yash 244,579 0 0 0 3,720 0 869 85 dash
22 no-host configure.yash 386,177 0 0 0 3,728 0 859 94 osh-cpython
30 no-host configure.yash 257,952 0 0 0 3,736 0 850 77 osh-native
38 no-host configure.yash 257,607 0 0 0 3,736 0 849 63 osh-native-souffle
0 no-host hello-world 151 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,957 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5a999962
dash dash-0ebcf347
osh-cpython osh-e1533694
osh-native osh-d2456735
osh-native-souffle osh-e3b40387
host label host id
no-host no-host-556df3ee