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 18 9 470 21 20 25.54 1.16
bin-true no-host 656 527 2,334 786 780 3.56 1.20
configure.cpython no-host 14,536 14,553 28,198 14,695 14,702 1.94 1.01
configure.ocaml no-host 3,714 3,659 4,607 3,740 3,727 1.24 1.01
configure.tcc no-host 46 41 202 47 47 4.40 1.03
configure.util-linux no-host 13,476 14,438 30,830 13,834 13,774 2.29 1.03
configure.yash no-host 1,797 1,719 2,417 1,780 1,792 1.34 0.99
hello-world no-host 1 1 56 3 3 43.61 2.17

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,539 1,085 23,951 3,192 3,138 9.43 1.26
bin-true no-host 107,279 65,527 779,998 126,179 124,238 7.27 1.18
configure.cpython no-host 2,004,798 2,020,892 6,057,433 1,998,873 1,989,058 3.02 1.00
configure.ocaml no-host 373,563 353,767 611,047 375,537 375,366 1.64 1.01
configure.tcc no-host 6,081 5,021 23,756 6,489 6,443 3.91 1.07
configure.util-linux no-host 1,905,720 2,069,099 5,245,050 1,806,157 1,796,597 2.75 0.95
configure.yash no-host 233,776 222,439 367,319 235,486 235,222 1.57 1.01
hello-world no-host 144 79 3,993 339 339 27.73 2.35

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.3 3.4 22.5 9.2 8.8 5.21 2.12
bin-true no-host 2.9 1.3 18.3 8.1 7.7 6.35 2.82
configure.cpython no-host 29.2 29.0 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.5 19.6 19.8 19.7 19.5 1.02 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.3 26.4 26.3 26.2 26.0 1.00 1.00
hello-world no-host 2.8 1.6 18.3 6.2 5.9 6.64 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 786 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,695 1 63 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 13,834 3 61 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,740 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.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,780 1 2 2.5 26.2 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 21 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 780 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,702 1 66 14.9 29.2 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,774 3 62 21.2 30.3 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,727 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.5 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,792 1 2 2.5 26.0 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.8 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 18 11 8 4.3 bash
15 no-host abuild-print-help 9 2 7 3.4 dash
23 no-host abuild-print-help 470 415 58 22.5 osh-cpython
31 no-host abuild-print-help 21 11 11 9.2 osh-native
39 no-host abuild-print-help 20 12 9 8.8 osh-native-souffle
1 no-host bin-true 656 314 376 2.9 bash
9 no-host bin-true 527 274 264 1.3 dash
17 no-host bin-true 2,334 790 1,812 18.3 osh-cpython
25 no-host bin-true 786 293 511 8.1 osh-native
33 no-host bin-true 780 295 505 7.7 osh-native-souffle
2 no-host configure.cpython 14,536 6,669 8,282 29.2 bash
10 no-host configure.cpython 14,553 6,611 8,372 29.0 dash
18 no-host configure.cpython 28,198 13,988 16,089 29.2 osh-cpython
26 no-host configure.cpython 14,695 6,526 8,452 29.2 osh-native
34 no-host configure.cpython 14,702 6,471 8,494 29.2 osh-native-souffle
4 no-host configure.ocaml 3,714 1,257 1,500 22.5 bash
12 no-host configure.ocaml 3,659 1,259 1,419 22.6 dash
20 no-host configure.ocaml 4,607 1,850 1,969 22.6 osh-cpython
28 no-host configure.ocaml 3,740 1,280 1,498 22.6 osh-native
36 no-host configure.ocaml 3,727 1,280 1,486 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 26 19.5 bash
13 no-host configure.tcc 41 17 24 19.6 dash
21 no-host configure.tcc 202 144 62 19.8 osh-cpython
29 no-host configure.tcc 47 19 28 19.7 osh-native
37 no-host configure.tcc 47 20 28 19.5 osh-native-souffle
3 no-host configure.util-linux 13,476 5,711 8,256 30.3 bash
11 no-host configure.util-linux 14,438 5,880 9,078 30.3 dash
19 no-host configure.util-linux 30,830 17,492 14,417 30.3 osh-cpython
27 no-host configure.util-linux 13,834 5,566 8,485 30.2 osh-native
35 no-host configure.util-linux 13,774 5,546 8,441 30.3 osh-native-souffle
6 no-host configure.yash 1,797 906 894 26.3 bash
14 no-host configure.yash 1,719 865 858 26.4 dash
22 no-host configure.yash 2,417 1,365 1,094 26.3 osh-cpython
30 no-host configure.yash 1,780 870 914 26.2 osh-native
38 no-host configure.yash 1,792 934 862 26.0 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 37 19 18.3 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,539 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,951 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,138 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,279 0 0 0 8 0 1,986 187 bash
9 no-host bin-true 65,527 0 0 0 8 0 1,976 135 dash
17 no-host bin-true 779,998 0 0 0 8 0 1,979 345 osh-cpython
25 no-host bin-true 126,179 0 0 0 16 0 1,979 71 osh-native
33 no-host bin-true 124,238 0 0 0 16 0 1,987 117 osh-native-souffle
2 no-host configure.cpython 2,004,798 0 0 0 32,928 0 14,221 1,189 bash
10 no-host configure.cpython 2,020,892 0 0 0 32,992 0 14,355 1,270 dash
18 no-host configure.cpython 6,057,433 1 0 0 27,512 0 13,055 1,245 osh-cpython
26 no-host configure.cpython 1,998,873 0 0 0 27,520 0 13,084 1,266 osh-native
34 no-host configure.cpython 1,989,058 0 0 0 27,520 0 13,108 1,252 osh-native-souffle
4 no-host configure.ocaml 373,563 0 0 0 5,120 0 1,942 197 bash
12 no-host configure.ocaml 353,767 0 0 0 5,112 0 1,938 192 dash
20 no-host configure.ocaml 611,047 0 0 0 5,112 0 1,850 206 osh-cpython
28 no-host configure.ocaml 375,537 0 0 0 5,120 0 1,919 322 osh-native
36 no-host configure.ocaml 375,366 0 0 0 5,120 0 1,928 206 osh-native-souffle
5 no-host configure.tcc 6,081 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,021 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,756 0 0 0 96 0 52 5 osh-cpython
29 no-host configure.tcc 6,489 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,443 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,905,720 0 0 0 42,400 0 18,373 1,269 bash
11 no-host configure.util-linux 2,069,099 0 0 0 42,584 0 17,323 1,423 dash
19 no-host configure.util-linux 5,245,050 0 0 0 39,112 0 17,024 1,437 osh-cpython
27 no-host configure.util-linux 1,806,157 1 0 0 39,120 0 17,015 1,232 osh-native
35 no-host configure.util-linux 1,796,597 0 0 0 39,128 0 16,906 1,198 osh-native-souffle
6 no-host configure.yash 233,776 0 0 0 4,120 0 882 93 bash
14 no-host configure.yash 222,439 0 0 0 3,720 0 869 100 dash
22 no-host configure.yash 367,319 0 0 0 3,728 0 856 87 osh-cpython
30 no-host configure.yash 235,486 0 0 0 3,736 0 851 95 osh-native
38 no-host configure.yash 235,222 0 0 0 3,736 0 848 103 osh-native-souffle
0 no-host hello-world 144 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,993 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 339 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-933ea562
dash dash-0ebcf347
osh-cpython osh-4e6858aa
osh-native osh-58a7b1f3
osh-native-souffle osh-b2d5cd77
host label host id
no-host no-host-e4839999