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 473 22 20 25.39 1.15
bin-true no-host 660 530 2,347 797 793 3.55 1.21
configure.cpython no-host 14,991 14,770 29,291 14,889 14,906 1.95 0.99
configure.ocaml no-host 3,804 3,663 4,581 3,781 3,736 1.20 0.99
configure.tcc no-host 46 40 200 47 47 4.32 1.02
configure.util-linux no-host 13,906 14,471 31,612 14,162 13,745 2.27 1.02
configure.yash no-host 1,821 1,732 2,427 1,781 1,776 1.33 0.98
hello-world no-host 1 1 56 3 3 40.81 2.07

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,540 1,090 23,955 3,216 3,097 9.43 1.27
bin-true no-host 107,326 66,348 785,352 128,222 127,303 7.32 1.19
configure.cpython no-host 1,993,650 2,026,006 6,043,687 2,007,163 1,990,137 3.03 1.01
configure.ocaml no-host 373,496 354,240 611,518 375,702 375,138 1.64 1.01
configure.tcc no-host 6,072 4,997 23,760 6,484 6,415 3.91 1.07
configure.util-linux no-host 1,903,693 2,070,280 5,254,143 1,810,858 1,794,869 2.76 0.95
configure.yash no-host 232,756 221,671 366,116 234,623 235,361 1.57 1.01
hello-world no-host 145 79 3,992 346 339 27.53 2.39

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.7 9.2 8.7 5.10 2.06
bin-true no-host 3.0 1.4 18.4 8.3 7.7 6.09 2.74
configure.cpython no-host 29.3 29.1 29.0 29.2 29.1 0.99 1.00
configure.ocaml no-host 22.6 22.6 22.8 22.6 22.6 1.01 1.00
configure.tcc no-host 19.8 19.6 19.7 19.5 19.7 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.3 30.2 30.2 1.00 1.00
configure.yash no-host 26.3 26.5 26.2 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.6 18.3 6.3 5.9 6.64 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.3 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,889 2 67 14.9 29.2 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,162 3 67 21.2 30.2 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,781 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,781 1 2 2.5 26.3 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 793 1 2 2.6 7.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,906 2 65 14.9 29.1 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,745 3 60 21.2 30.2 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,736 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,776 1 2 2.5 26.4 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 11 8 4.5 bash
15 no-host abuild-print-help 9 5 5 3.4 dash
23 no-host abuild-print-help 473 425 52 22.7 osh-cpython
31 no-host abuild-print-help 22 13 9 9.2 osh-native
39 no-host abuild-print-help 20 10 10 8.7 osh-native-souffle
1 no-host bin-true 660 311 385 3.0 bash
9 no-host bin-true 530 275 264 1.4 dash
17 no-host bin-true 2,347 781 1,833 18.4 osh-cpython
25 no-host bin-true 797 297 516 8.3 osh-native
33 no-host bin-true 793 291 519 7.7 osh-native-souffle
2 no-host configure.cpython 14,991 6,738 8,676 29.3 bash
10 no-host configure.cpython 14,770 6,626 8,580 29.1 dash
18 no-host configure.cpython 29,291 14,585 16,688 29.0 osh-cpython
26 no-host configure.cpython 14,889 6,567 8,607 29.2 osh-native
34 no-host configure.cpython 14,906 6,587 8,595 29.1 osh-native-souffle
4 no-host configure.ocaml 3,804 1,328 1,519 22.6 bash
12 no-host configure.ocaml 3,663 1,249 1,438 22.6 dash
20 no-host configure.ocaml 4,581 1,828 1,968 22.8 osh-cpython
28 no-host configure.ocaml 3,781 1,283 1,538 22.6 osh-native
36 no-host configure.ocaml 3,736 1,285 1,491 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 26 19.8 bash
13 no-host configure.tcc 40 24 17 19.6 dash
21 no-host configure.tcc 200 145 59 19.7 osh-cpython
29 no-host configure.tcc 47 19 29 19.5 osh-native
37 no-host configure.tcc 47 28 19 19.7 osh-native-souffle
3 no-host configure.util-linux 13,906 5,982 8,426 30.3 bash
11 no-host configure.util-linux 14,471 5,892 9,110 30.3 dash
19 no-host configure.util-linux 31,612 17,916 14,817 30.3 osh-cpython
27 no-host configure.util-linux 14,162 5,663 8,715 30.2 osh-native
35 no-host configure.util-linux 13,745 5,514 8,450 30.2 osh-native-souffle
6 no-host configure.yash 1,821 908 895 26.3 bash
14 no-host configure.yash 1,732 897 840 26.5 dash
22 no-host configure.yash 2,427 1,354 1,116 26.2 osh-cpython
30 no-host configure.yash 1,781 906 880 26.3 osh-native
38 no-host configure.yash 1,776 884 897 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 36 20 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 2 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,540 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,955 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,216 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,326 0 0 0 8 0 1,986 71 bash
9 no-host bin-true 66,348 0 0 0 8 0 1,967 115 dash
17 no-host bin-true 785,352 0 0 0 8 0 1,990 368 osh-cpython
25 no-host bin-true 128,222 0 0 0 16 0 1,991 291 osh-native
33 no-host bin-true 127,303 0 0 0 16 0 1,984 145 osh-native-souffle
2 no-host configure.cpython 1,993,650 0 0 0 32,928 0 14,271 1,162 bash
10 no-host configure.cpython 2,026,006 0 0 0 32,992 0 14,335 1,361 dash
18 no-host configure.cpython 6,043,687 2 0 0 27,512 0 13,051 1,084 osh-cpython
26 no-host configure.cpython 2,007,163 1 0 0 27,520 0 13,123 1,121 osh-native
34 no-host configure.cpython 1,990,137 0 0 0 27,520 0 13,079 1,170 osh-native-souffle
4 no-host configure.ocaml 373,496 0 0 0 5,120 0 1,945 208 bash
12 no-host configure.ocaml 354,240 0 0 0 5,112 0 1,945 178 dash
20 no-host configure.ocaml 611,518 1 0 0 5,112 0 1,863 204 osh-cpython
28 no-host configure.ocaml 375,702 0 0 0 5,120 0 1,926 192 osh-native
36 no-host configure.ocaml 375,138 0 0 0 5,120 0 1,917 211 osh-native-souffle
5 no-host configure.tcc 6,072 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,997 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,760 0 0 0 96 0 53 2 osh-cpython
29 no-host configure.tcc 6,484 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,415 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,903,693 1 0 0 42,400 0 18,535 1,307 bash
11 no-host configure.util-linux 2,070,280 0 0 0 42,592 0 17,298 1,438 dash
19 no-host configure.util-linux 5,254,143 6 0 0 39,112 0 17,034 1,341 osh-cpython
27 no-host configure.util-linux 1,810,858 0 0 0 39,120 0 16,994 1,250 osh-native
35 no-host configure.util-linux 1,794,869 0 0 0 39,128 0 16,955 1,273 osh-native-souffle
6 no-host configure.yash 232,756 0 0 0 4,120 0 889 78 bash
14 no-host configure.yash 221,671 0 0 0 3,720 0 870 81 dash
22 no-host configure.yash 366,116 0 0 0 3,728 0 856 97 osh-cpython
30 no-host configure.yash 234,623 0 0 0 3,736 0 845 80 osh-native
38 no-host configure.yash 235,361 0 0 0 3,736 0 849 100 osh-native-souffle
0 no-host hello-world 145 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,992 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ec016a4f
dash dash-0ebcf347
osh-cpython osh-36a626cb
osh-native osh-85e24da9
osh-native-souffle osh-3ffeb4e6
host label host id
no-host no-host-e4839999