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 456 22 21 24.07 1.16
bin-true no-host 682 538 2,245 819 813 3.29 1.20
configure.cpython no-host 14,952 15,025 28,493 15,185 15,366 1.91 1.02
configure.ocaml no-host 3,794 3,724 4,621 3,829 3,822 1.22 1.01
configure.tcc no-host 47 41 192 48 48 4.04 1.02
configure.util-linux no-host 13,983 14,827 31,022 14,315 14,258 2.22 1.02
configure.yash no-host 1,810 1,763 2,450 1,826 1,829 1.35 1.01
hello-world no-host 1 1 49 3 3 32.61 1.92

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,529 1,115 23,382 3,178 3,133 9.25 1.26
bin-true no-host 105,300 66,411 758,035 125,206 127,892 7.20 1.19
configure.cpython no-host 2,230,411 2,235,505 6,226,289 2,232,742 2,231,740 2.79 1.00
configure.ocaml no-host 410,787 391,293 646,734 413,646 412,936 1.57 1.01
configure.tcc no-host 6,536 5,495 23,512 7,024 6,905 3.60 1.07
configure.util-linux no-host 2,103,214 2,261,564 5,326,121 1,996,162 1,994,552 2.53 0.95
configure.yash no-host 256,699 244,070 387,919 258,167 258,029 1.51 1.01
hello-world no-host 153 81 3,726 351 343 24.35 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.5 21.9 9.2 8.5 4.91 2.06
bin-true no-host 2.9 1.4 17.7 8.0 7.7 6.14 2.77
configure.cpython no-host 27.4 27.5 27.5 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.4 19.4 19.4 19.4 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.5 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.9 1.4 17.6 6.2 5.9 6.09 2.14

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,773 3,773 0 694 1,851 1,228 2 0 50,000 0
bin-true no-host 819 1 2 2.6 8.0 154,738 13,218 2,875 9,744 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 15,185 1 59 15.0 27.4 1,772,720 49,852 28,585 86,397 908,072 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,315 4 60 21.3 30.1 2,703,488 29,144 65,888 109,675 1,320,578 1,273,235 27,391 41 131,776 1
configure.ocaml no-host 3,829 0 2 2.6 20.6 150,094 11,049 5,219 7,531 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,579 30,579 0 1,520 14,775 14,284 226 0 50,000 0
configure.yash no-host 1,826 1 2 2.6 24.4 139,747 8,018 6,677 6,336 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,322 64,528 42,738 4,571 54,520 57,231 270 3 85,476 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 695 1,851 1,226 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.7 154,737 13,061 2,813 9,745 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 15,366 1 62 14.9 27.4 1,772,719 49,103 28,523 86,398 908,072 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,258 3 61 21.3 30.3 2,703,488 42,739 65,826 109,677 1,320,578 1,273,233 27,391 41 131,652 1
configure.ocaml no-host 3,822 1 2 2.6 20.6 150,094 10,987 5,157 7,533 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,579 30,579 0 1,522 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,829 1 2 2.6 24.2 139,747 7,956 6,615 6,338 70,280 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,321 64,466 42,676 4,572 54,520 57,229 270 3 85,352 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 13 6 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 456 399 60 21.9 osh-cpython
31 no-host abuild-print-help 22 15 7 9.2 osh-native
39 no-host abuild-print-help 21 12 10 8.5 osh-native-souffle
1 no-host bin-true 682 510 200 2.9 bash
9 no-host bin-true 538 415 134 1.4 dash
17 no-host bin-true 2,245 1,462 1,041 17.7 osh-cpython
25 no-host bin-true 819 584 250 8.0 osh-native
33 no-host bin-true 813 581 246 7.7 osh-native-souffle
2 no-host configure.cpython 14,952 8,941 6,406 27.4 bash
10 no-host configure.cpython 15,025 8,877 6,562 27.5 dash
18 no-host configure.cpython 28,493 17,592 12,745 27.5 osh-cpython
26 no-host configure.cpython 15,185 9,046 6,407 27.4 osh-native
34 no-host configure.cpython 15,366 9,096 6,364 27.4 osh-native-souffle
4 no-host configure.ocaml 3,794 1,611 1,222 20.6 bash
12 no-host configure.ocaml 3,724 1,548 1,196 20.6 dash
20 no-host configure.ocaml 4,621 2,127 1,702 20.6 osh-cpython
28 no-host configure.ocaml 3,829 1,650 1,218 20.6 osh-native
36 no-host configure.ocaml 3,822 1,600 1,259 20.6 osh-native-souffle
5 no-host configure.tcc 47 28 20 19.4 bash
13 no-host configure.tcc 41 17 24 19.4 dash
21 no-host configure.tcc 192 144 51 19.4 osh-cpython
29 no-host configure.tcc 48 26 22 19.4 osh-native
37 no-host configure.tcc 48 34 14 19.3 osh-native-souffle
3 no-host configure.util-linux 13,983 8,690 5,780 30.1 bash
11 no-host configure.util-linux 14,827 9,073 6,250 30.0 dash
19 no-host configure.util-linux 31,022 20,769 11,328 30.1 osh-cpython
27 no-host configure.util-linux 14,315 8,661 5,856 30.1 osh-native
35 no-host configure.util-linux 14,258 8,808 5,648 30.3 osh-native-souffle
6 no-host configure.yash 1,810 1,074 745 24.2 bash
14 no-host configure.yash 1,763 1,025 741 24.5 dash
22 no-host configure.yash 2,450 1,522 970 24.4 osh-cpython
30 no-host configure.yash 1,826 1,052 778 24.4 osh-native
38 no-host configure.yash 1,829 1,067 765 24.2 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 32 16 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,529 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,382 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,133 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,300 0 0 0 8 0 1,994 128 bash
9 no-host bin-true 66,411 0 0 0 8 0 1,986 31 dash
17 no-host bin-true 758,035 0 0 0 8 0 1,999 141 osh-cpython
25 no-host bin-true 125,206 0 0 0 16 0 1,994 172 osh-native
33 no-host bin-true 127,892 0 0 0 16 0 1,990 49 osh-native-souffle
2 no-host configure.cpython 2,230,411 0 0 0 32,928 0 14,448 1,132 bash
10 no-host configure.cpython 2,235,505 0 0 0 32,992 0 14,601 1,453 dash
18 no-host configure.cpython 6,226,289 1 0 0 27,512 0 13,187 1,231 osh-cpython
26 no-host configure.cpython 2,232,742 0 0 0 27,520 0 13,224 1,065 osh-native
34 no-host configure.cpython 2,231,740 0 0 0 27,520 0 13,380 1,053 osh-native-souffle
4 no-host configure.ocaml 410,787 0 0 0 5,120 0 1,945 194 bash
12 no-host configure.ocaml 391,293 0 0 0 5,112 0 1,943 156 dash
20 no-host configure.ocaml 646,734 0 0 0 5,112 0 1,861 200 osh-cpython
28 no-host configure.ocaml 413,646 0 0 0 5,120 0 1,927 185 osh-native
36 no-host configure.ocaml 412,936 0 0 0 5,120 0 1,927 163 osh-native-souffle
5 no-host configure.tcc 6,536 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,512 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,024 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,905 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,103,214 0 0 0 42,400 0 18,799 1,067 bash
11 no-host configure.util-linux 2,261,564 0 0 0 42,584 0 17,493 1,235 dash
19 no-host configure.util-linux 5,326,121 7 0 0 39,128 0 16,948 1,280 osh-cpython
27 no-host configure.util-linux 1,996,162 1 0 0 39,120 0 16,950 1,186 osh-native
35 no-host configure.util-linux 1,994,552 1 0 0 39,128 0 17,104 964 osh-native-souffle
6 no-host configure.yash 256,699 0 0 0 4,120 0 867 80 bash
14 no-host configure.yash 244,070 0 0 0 3,720 0 872 96 dash
22 no-host configure.yash 387,919 0 0 0 3,728 0 850 88 osh-cpython
30 no-host configure.yash 258,167 0 0 0 3,736 0 851 97 osh-native
38 no-host configure.yash 258,029 0 0 0 3,736 0 851 70 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 0 1 dash
16 no-host hello-world 3,726 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-35d9ae19
dash dash-0ebcf347
osh-cpython osh-626dba09
osh-native osh-e4ccb4ca
osh-native-souffle osh-9fe3b83d
host label host id
no-host no-host-556df3ee