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 465 21 21 25.48 1.18
bin-true no-host 657 521 2,311 782 786 3.52 1.19
configure.cpython no-host 14,499 14,531 28,231 14,732 14,621 1.95 1.02
configure.ocaml no-host 3,720 3,654 4,595 3,743 3,740 1.24 1.01
configure.tcc no-host 46 41 204 48 47 4.39 1.03
configure.util-linux no-host 13,467 14,315 30,715 13,869 13,868 2.28 1.03
configure.yash no-host 1,804 1,721 2,420 1,773 1,784 1.34 0.98
hello-world no-host 1 1 56 3 3 38.85 2.01

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,528 1,084 23,899 3,195 3,087 9.45 1.26
bin-true no-host 107,299 66,405 776,246 125,229 126,240 7.23 1.17
configure.cpython no-host 1,996,008 2,023,358 6,034,810 2,003,050 1,984,498 3.02 1.00
configure.ocaml no-host 373,297 353,834 611,714 376,073 375,015 1.64 1.01
configure.tcc no-host 6,085 5,008 23,743 6,474 6,441 3.90 1.06
configure.util-linux no-host 1,899,666 2,067,783 5,233,024 1,813,177 1,795,958 2.75 0.95
configure.yash no-host 233,735 222,189 367,575 234,947 234,312 1.57 1.01
hello-world no-host 147 78 3,968 346 337 26.99 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.5 22.7 9.2 8.7 5.25 2.12
bin-true no-host 3.0 1.4 18.3 8.0 7.6 6.06 2.65
configure.cpython no-host 29.1 29.3 29.2 29.3 29.3 1.00 1.01
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.5 19.7 19.7 19.6 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.2 30.5 30.3 1.00 1.00
configure.yash no-host 26.4 26.3 26.4 26.2 26.4 1.00 0.99
hello-world no-host 2.9 1.4 18.3 6.4 5.9 6.34 2.23

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.4 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 782 1 2 2.6 8.0 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,732 1 69 14.9 29.3 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,869 3 64 21.2 30.5 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,743 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 48 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,773 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 786 1 2 2.6 7.6 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,621 1 67 14.9 29.3 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,868 3 63 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,740 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.6 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,784 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 21 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 18 10 9 4.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 465 412 56 22.7 osh-cpython
31 no-host abuild-print-help 21 11 11 9.2 osh-native
39 no-host abuild-print-help 21 14 8 8.7 osh-native-souffle
1 no-host bin-true 657 306 386 3.0 bash
9 no-host bin-true 521 282 249 1.4 dash
17 no-host bin-true 2,311 758 1,812 18.3 osh-cpython
25 no-host bin-true 782 297 503 8.0 osh-native
33 no-host bin-true 786 298 505 7.6 osh-native-souffle
2 no-host configure.cpython 14,499 6,502 8,404 29.1 bash
10 no-host configure.cpython 14,531 6,626 8,340 29.3 dash
18 no-host configure.cpython 28,231 13,967 16,136 29.2 osh-cpython
26 no-host configure.cpython 14,732 6,500 8,521 29.3 osh-native
34 no-host configure.cpython 14,621 6,491 8,410 29.3 osh-native-souffle
4 no-host configure.ocaml 3,720 1,288 1,474 22.6 bash
12 no-host configure.ocaml 3,654 1,280 1,395 22.5 dash
20 no-host configure.ocaml 4,595 1,855 1,953 22.6 osh-cpython
28 no-host configure.ocaml 3,743 1,268 1,515 22.6 osh-native
36 no-host configure.ocaml 3,740 1,319 1,460 22.6 osh-native-souffle
5 no-host configure.tcc 46 24 23 19.6 bash
13 no-host configure.tcc 41 23 18 19.5 dash
21 no-host configure.tcc 204 141 66 19.7 osh-cpython
29 no-host configure.tcc 48 20 28 19.7 osh-native
37 no-host configure.tcc 47 22 25 19.6 osh-native-souffle
3 no-host configure.util-linux 13,467 5,691 8,276 30.3 bash
11 no-host configure.util-linux 14,315 5,811 9,023 30.3 dash
19 no-host configure.util-linux 30,715 17,524 14,256 30.2 osh-cpython
27 no-host configure.util-linux 13,869 5,501 8,590 30.5 osh-native
35 no-host configure.util-linux 13,868 5,591 8,500 30.3 osh-native-souffle
6 no-host configure.yash 1,804 892 897 26.4 bash
14 no-host configure.yash 1,721 919 807 26.3 dash
22 no-host configure.yash 2,420 1,337 1,126 26.4 osh-cpython
30 no-host configure.yash 1,773 892 886 26.2 osh-native
38 no-host configure.yash 1,784 894 895 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 33 23 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.4 osh-native
32 no-host hello-world 3 2 1 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,528 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,084 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,899 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,087 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,299 0 0 0 8 0 1,988 263 bash
9 no-host bin-true 66,405 0 0 0 8 0 1,980 86 dash
17 no-host bin-true 776,246 0 0 0 8 0 1,992 551 osh-cpython
25 no-host bin-true 125,229 0 0 0 16 0 1,976 107 osh-native
33 no-host bin-true 126,240 0 0 0 16 0 1,983 140 osh-native-souffle
2 no-host configure.cpython 1,996,008 0 0 0 32,928 0 14,213 1,203 bash
10 no-host configure.cpython 2,023,358 0 0 0 32,992 0 14,373 1,429 dash
18 no-host configure.cpython 6,034,810 0 0 0 27,512 0 13,037 1,207 osh-cpython
26 no-host configure.cpython 2,003,050 0 0 0 27,520 0 13,071 1,079 osh-native
34 no-host configure.cpython 1,984,498 0 0 0 27,520 0 13,068 1,165 osh-native-souffle
4 no-host configure.ocaml 373,297 0 0 0 5,120 0 1,948 180 bash
12 no-host configure.ocaml 353,834 0 0 0 5,112 0 1,945 209 dash
20 no-host configure.ocaml 611,714 0 0 0 5,112 0 1,856 201 osh-cpython
28 no-host configure.ocaml 376,073 0 0 0 5,120 0 1,928 303 osh-native
36 no-host configure.ocaml 375,015 0 0 0 5,120 0 1,919 196 osh-native-souffle
5 no-host configure.tcc 6,085 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,008 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,743 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,474 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,441 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,899,666 0 0 0 42,400 0 18,477 1,300 bash
11 no-host configure.util-linux 2,067,783 0 0 0 42,592 0 17,245 1,504 dash
19 no-host configure.util-linux 5,233,024 5 0 0 39,112 0 17,045 1,333 osh-cpython
27 no-host configure.util-linux 1,813,177 0 0 0 39,120 0 17,054 1,233 osh-native
35 no-host configure.util-linux 1,795,958 0 0 0 39,128 0 17,062 1,243 osh-native-souffle
6 no-host configure.yash 233,735 0 0 0 4,120 0 873 91 bash
14 no-host configure.yash 222,189 0 0 0 3,720 0 868 85 dash
22 no-host configure.yash 367,575 0 0 0 3,728 0 850 87 osh-cpython
30 no-host configure.yash 234,947 0 0 0 3,736 0 851 86 osh-native
38 no-host configure.yash 234,312 0 0 0 3,736 0 847 88 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 1 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,968 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4b78cbd2
dash dash-0ebcf347
osh-cpython osh-966088d4
osh-native osh-c335130a
osh-native-souffle osh-e2698184
host label host id
no-host no-host-e4839999