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 459 22 21 24.28 1.17
bin-true no-host 678 548 2,282 812 824 3.37 1.20
configure.cpython no-host 15,159 15,334 28,934 15,300 15,437 1.91 1.01
configure.ocaml no-host 3,802 3,772 4,655 3,845 3,858 1.22 1.01
configure.tcc no-host 48 42 198 49 49 4.13 1.02
configure.util-linux no-host 14,170 15,166 31,349 14,426 14,335 2.21 1.02
configure.yash no-host 1,834 1,789 2,484 1,831 1,859 1.35 1.00
hello-world no-host 2 1 52 3 3 33.75 1.84

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,511 1,104 23,350 3,162 3,097 9.30 1.26
bin-true no-host 105,358 66,393 773,048 125,818 124,877 7.34 1.19
configure.cpython no-host 2,222,925 2,251,046 6,231,322 2,221,969 2,205,305 2.80 1.00
configure.ocaml no-host 410,923 391,216 645,708 413,568 412,728 1.57 1.01
configure.tcc no-host 6,545 5,466 23,794 6,984 6,899 3.64 1.07
configure.util-linux no-host 2,102,160 2,257,792 5,371,524 2,002,794 1,988,470 2.56 0.95
configure.yash no-host 256,147 244,699 387,376 258,360 258,028 1.51 1.01
hello-world no-host 150 82 3,747 351 345 24.98 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.2 3.5 21.9 9.0 8.4 5.22 2.16
bin-true no-host 3.0 1.4 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.4 27.4 27.4 27.3 27.5 1.00 1.00
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.4 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.4 30.3 30.3 30.1 30.1 1.00 0.99
configure.yash no-host 24.2 24.4 24.2 24.2 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.6 6.3 5.9 6.38 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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,300 2 64 15.0 27.3 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,426 3 62 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,845 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,831 1 2 2.6 24.2 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 824 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,437 1 65 14.9 27.5 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,335 3 62 21.3 30.1 2,703,495 42,748 65,835 109,678 1,320,584 1,273,233 27,391 41 131,670 1
configure.ocaml no-host 3,858 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,859 1 2 2.6 24.4 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 14 5 4.2 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 459 410 52 21.9 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 20 1 8.4 osh-native-souffle
1 no-host bin-true 678 506 202 3.0 bash
9 no-host bin-true 548 410 147 1.4 dash
17 no-host bin-true 2,282 1,535 1,009 17.7 osh-cpython
25 no-host bin-true 812 577 250 8.0 osh-native
33 no-host bin-true 824 571 268 7.7 osh-native-souffle
2 no-host configure.cpython 15,159 9,173 6,389 27.4 bash
10 no-host configure.cpython 15,334 9,198 6,563 27.4 dash
18 no-host configure.cpython 28,934 17,490 13,320 27.4 osh-cpython
26 no-host configure.cpython 15,300 9,019 6,547 27.3 osh-native
34 no-host configure.cpython 15,437 9,116 6,462 27.5 osh-native-souffle
4 no-host configure.ocaml 3,802 1,684 1,154 20.4 bash
12 no-host configure.ocaml 3,772 1,632 1,160 20.6 dash
20 no-host configure.ocaml 4,655 2,178 1,687 20.6 osh-cpython
28 no-host configure.ocaml 3,845 1,703 1,181 20.6 osh-native
36 no-host configure.ocaml 3,858 1,580 1,315 20.6 osh-native-souffle
5 no-host configure.tcc 48 42 6 19.3 bash
13 no-host configure.tcc 42 29 13 19.4 dash
21 no-host configure.tcc 198 145 56 19.3 osh-cpython
29 no-host configure.tcc 49 24 26 19.3 osh-native
37 no-host configure.tcc 49 28 22 19.3 osh-native-souffle
3 no-host configure.util-linux 14,170 8,750 5,870 30.4 bash
11 no-host configure.util-linux 15,166 9,391 6,267 30.3 dash
19 no-host configure.util-linux 31,349 20,886 11,562 30.3 osh-cpython
27 no-host configure.util-linux 14,426 8,861 5,761 30.1 osh-native
35 no-host configure.util-linux 14,335 8,607 5,914 30.1 osh-native-souffle
6 no-host configure.yash 1,834 1,083 760 24.2 bash
14 no-host configure.yash 1,789 999 793 24.4 dash
22 no-host configure.yash 2,484 1,661 865 24.2 osh-cpython
30 no-host configure.yash 1,831 1,035 800 24.2 osh-native
38 no-host configure.yash 1,859 975 878 24.4 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 52 34 17 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,511 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,350 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,162 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 38 7 osh-native-souffle
1 no-host bin-true 105,358 0 0 0 8 0 1,987 63 bash
9 no-host bin-true 66,393 0 0 0 8 0 1,992 110 dash
17 no-host bin-true 773,048 0 0 0 8 0 1,993 187 osh-cpython
25 no-host bin-true 125,818 0 0 0 16 0 1,993 48 osh-native
33 no-host bin-true 124,877 0 0 0 16 0 1,995 266 osh-native-souffle
2 no-host configure.cpython 2,222,925 0 0 0 32,928 0 14,551 1,162 bash
10 no-host configure.cpython 2,251,046 0 0 0 32,992 0 14,623 1,170 dash
18 no-host configure.cpython 6,231,322 2 0 0 27,512 0 13,213 1,217 osh-cpython
26 no-host configure.cpython 2,221,969 0 0 0 27,520 0 13,231 1,155 osh-native
34 no-host configure.cpython 2,205,305 0 0 0 27,520 0 13,203 1,150 osh-native-souffle
4 no-host configure.ocaml 410,923 0 0 0 5,120 0 1,945 178 bash
12 no-host configure.ocaml 391,216 0 0 0 5,112 0 1,922 134 dash
20 no-host configure.ocaml 645,708 0 0 0 5,112 0 1,859 204 osh-cpython
28 no-host configure.ocaml 413,568 0 0 0 5,120 0 1,930 167 osh-native
36 no-host configure.ocaml 412,728 0 0 0 5,120 0 1,924 153 osh-native-souffle
5 no-host configure.tcc 6,545 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,466 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,794 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,899 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,102,160 0 0 0 42,400 0 18,492 1,140 bash
11 no-host configure.util-linux 2,257,792 0 0 0 42,592 0 17,460 1,241 dash
19 no-host configure.util-linux 5,371,524 1 0 0 39,120 0 17,007 1,275 osh-cpython
27 no-host configure.util-linux 2,002,794 0 0 0 39,128 0 16,970 1,058 osh-native
35 no-host configure.util-linux 1,988,470 1 0 0 39,136 0 16,970 1,018 osh-native-souffle
6 no-host configure.yash 256,147 0 0 0 4,120 0 869 85 bash
14 no-host configure.yash 244,699 0 0 0 3,720 0 871 81 dash
22 no-host configure.yash 387,376 0 0 0 3,728 0 851 92 osh-cpython
30 no-host configure.yash 258,360 0 0 0 3,736 0 850 77 osh-native
38 no-host configure.yash 258,028 0 0 0 3,736 0 853 78 osh-native-souffle
0 no-host hello-world 150 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,747 0 0 0 8 0 9 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b21c9442
dash dash-0ebcf347
osh-cpython osh-cb0a0f0b
osh-native osh-0f66d91d
osh-native-souffle osh-e6911e32
host label host id
no-host no-host-556df3ee