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 10 462 22 22 24.27 1.16
bin-true no-host 673 548 2,320 809 823 3.45 1.20
configure.cpython no-host 15,066 15,145 29,266 15,255 15,349 1.94 1.01
configure.ocaml no-host 3,848 3,745 4,660 3,826 3,825 1.21 0.99
configure.tcc no-host 48 42 203 50 49 4.22 1.03
configure.util-linux no-host 14,075 14,957 31,637 14,432 14,379 2.25 1.03
configure.yash no-host 1,829 1,811 2,471 1,825 1,835 1.35 1.00
hello-world no-host 1 1 57 3 3 37.92 1.89

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,532 1,137 23,744 3,160 3,070 9.38 1.25
bin-true no-host 104,329 65,412 768,565 123,229 126,233 7.37 1.18
configure.cpython no-host 2,217,641 2,232,565 6,245,039 2,222,660 2,208,267 2.82 1.00
configure.ocaml no-host 410,552 390,988 647,368 412,996 411,905 1.58 1.01
configure.tcc no-host 6,585 5,461 24,147 6,967 6,895 3.67 1.06
configure.util-linux no-host 2,106,586 2,260,922 5,398,117 2,001,471 1,990,453 2.56 0.95
configure.yash no-host 256,748 244,558 389,527 258,172 257,080 1.52 1.01
hello-world no-host 153 85 3,944 344 340 25.78 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.6 8.9 8.7 5.06 2.00
bin-true no-host 2.9 1.4 18.4 8.0 7.7 6.37 2.77
configure.cpython no-host 27.3 27.3 27.4 27.5 27.4 1.00 1.01
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.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.0 29.9 30.1 1.00 0.99
configure.yash no-host 24.5 24.4 24.4 24.4 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.2 6.3 6.0 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 809 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,255 1 63 14.9 27.5 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,432 3 60 21.2 29.9 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,826 1 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 50 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,825 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 8.9 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,349 1 62 14.9 27.4 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,379 3 60 21.2 30.1 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,825 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 49 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,835 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 22 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 18 1 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 462 440 25 22.6 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
39 no-host abuild-print-help 22 14 8 8.7 osh-native-souffle
1 no-host bin-true 673 499 206 2.9 bash
9 no-host bin-true 548 431 125 1.4 dash
17 no-host bin-true 2,320 1,496 1,080 18.4 osh-cpython
25 no-host bin-true 809 571 251 8.0 osh-native
33 no-host bin-true 823 578 260 7.7 osh-native-souffle
2 no-host configure.cpython 15,066 9,194 6,267 27.3 bash
10 no-host configure.cpython 15,145 9,088 6,477 27.3 dash
18 no-host configure.cpython 29,266 17,524 13,642 27.4 osh-cpython
26 no-host configure.cpython 15,255 8,937 6,582 27.5 osh-native
34 no-host configure.cpython 15,349 8,983 6,503 27.4 osh-native-souffle
4 no-host configure.ocaml 3,848 1,643 1,233 20.6 bash
12 no-host configure.ocaml 3,745 1,573 1,190 20.6 dash
20 no-host configure.ocaml 4,660 2,313 1,561 20.6 osh-cpython
28 no-host configure.ocaml 3,826 1,715 1,151 20.6 osh-native
36 no-host configure.ocaml 3,825 1,649 1,208 20.6 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 42 37 5 19.3 dash
21 no-host configure.tcc 203 148 58 19.3 osh-cpython
29 no-host configure.tcc 50 28 22 19.3 osh-native
37 no-host configure.tcc 49 25 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,075 8,883 5,674 30.1 bash
11 no-host configure.util-linux 14,957 9,117 6,325 30.1 dash
19 no-host configure.util-linux 31,637 20,982 11,766 30.0 osh-cpython
27 no-host configure.util-linux 14,432 8,760 5,876 29.9 osh-native
35 no-host configure.util-linux 14,379 8,646 5,933 30.1 osh-native-souffle
6 no-host configure.yash 1,829 1,040 798 24.5 bash
14 no-host configure.yash 1,811 1,093 721 24.4 dash
22 no-host configure.yash 2,471 1,461 1,052 24.4 osh-cpython
30 no-host configure.yash 1,825 1,025 804 24.4 osh-native
38 no-host configure.yash 1,835 1,107 729 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 36 20 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 6.0 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,532 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,137 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,744 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,070 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 104,329 0 0 0 8 0 1,991 43 bash
9 no-host bin-true 65,412 0 0 0 8 0 1,991 93 dash
17 no-host bin-true 768,565 0 0 0 8 0 1,998 391 osh-cpython
25 no-host bin-true 123,229 0 0 0 16 0 1,988 56 osh-native
33 no-host bin-true 126,233 0 0 0 16 0 1,992 71 osh-native-souffle
2 no-host configure.cpython 2,217,641 0 0 0 32,928 0 14,460 1,072 bash
10 no-host configure.cpython 2,232,565 0 0 0 32,992 0 14,654 975 dash
18 no-host configure.cpython 6,245,039 0 0 0 27,512 0 13,280 1,111 osh-cpython
26 no-host configure.cpython 2,222,660 0 0 0 27,520 0 13,134 1,070 osh-native
34 no-host configure.cpython 2,208,267 0 0 0 27,520 0 13,266 966 osh-native-souffle
4 no-host configure.ocaml 410,552 0 0 0 5,120 0 1,949 158 bash
12 no-host configure.ocaml 390,988 0 0 0 5,112 0 1,864 152 dash
20 no-host configure.ocaml 647,368 0 0 0 5,112 0 1,858 172 osh-cpython
28 no-host configure.ocaml 412,996 0 0 0 5,120 0 1,930 174 osh-native
36 no-host configure.ocaml 411,905 0 0 0 5,120 0 1,932 140 osh-native-souffle
5 no-host configure.tcc 6,585 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,461 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,147 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,895 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,106,586 0 0 0 42,400 0 18,605 998 bash
11 no-host configure.util-linux 2,260,922 2 0 0 42,584 0 17,436 1,083 dash
19 no-host configure.util-linux 5,398,117 10 0 0 39,120 0 17,033 1,265 osh-cpython
27 no-host configure.util-linux 2,001,471 1 0 0 39,128 0 17,051 1,089 osh-native
35 no-host configure.util-linux 1,990,453 1 0 0 39,136 0 17,000 968 osh-native-souffle
6 no-host configure.yash 256,748 0 0 0 4,120 0 872 87 bash
14 no-host configure.yash 244,558 0 0 0 3,720 0 868 70 dash
22 no-host configure.yash 389,527 0 0 0 3,728 0 855 91 osh-cpython
30 no-host configure.yash 258,172 0 0 0 3,736 0 850 70 osh-native
38 no-host configure.yash 257,080 0 0 0 3,736 0 851 71 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,944 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-90e1deba
dash dash-0ebcf347
osh-cpython osh-6fd5ce40
osh-native osh-e56eb8ad
osh-native-souffle osh-f400c91a
host label host id
no-host no-host-556df3ee