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 474 22 21 25.58 1.18
bin-true no-host 662 527 2,263 787 781 3.42 1.19
configure.cpython no-host 14,923 14,675 28,287 14,794 14,762 1.90 0.99
configure.ocaml no-host 3,771 3,683 4,580 3,750 3,794 1.21 0.99
configure.tcc no-host 47 40 201 47 48 4.32 1.01
configure.util-linux no-host 13,990 14,409 31,052 13,986 13,925 2.22 1.00
configure.yash no-host 1,804 1,740 2,442 1,791 1,812 1.35 0.99
hello-world no-host 1 1 55 3 3 41.43 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,500 1,117 23,587 3,204 3,094 9.43 1.28
bin-true no-host 107,342 66,394 763,086 126,144 125,302 7.11 1.18
configure.cpython no-host 1,996,440 2,025,250 5,988,948 1,993,541 1,983,072 3.00 1.00
configure.ocaml no-host 373,172 353,933 606,125 376,254 375,870 1.62 1.01
configure.tcc no-host 6,061 4,999 23,399 6,493 6,441 3.86 1.07
configure.util-linux no-host 1,900,850 2,067,968 5,169,319 1,811,110 1,796,900 2.72 0.95
configure.yash no-host 233,652 221,701 364,363 235,234 235,187 1.56 1.01
hello-world no-host 147 76 3,952 347 336 26.88 2.36

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.0 8.7 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.5 6.38 2.82
configure.cpython no-host 29.1 29.3 29.2 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.5 22.6 22.6 0.99 1.00
configure.tcc no-host 19.5 19.5 19.4 19.6 19.7 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.3 30.4 30.2 1.01 1.01
configure.yash no-host 26.4 26.3 26.3 26.3 26.3 1.00 1.00
hello-world no-host 2.8 1.3 18.4 6.3 5.8 6.68 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 694 1,861 1,234 2 0 50,000 0
bin-true no-host 787 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,794 1 64 14.9 29.1 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 13,986 3 63 21.2 30.4 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,750 1 2 2.6 22.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,791 1 2 2.5 26.3 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.8 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 781 1 2 2.6 7.5 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 14,762 2 68 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 13,925 3 64 21.2 30.2 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,794 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.5 26.3 139,269 7,969 6,631 5,991 67,845 65,433 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,533 54,439 57,326 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.3 bash
15 no-host abuild-print-help 9 6 3 3.5 dash
23 no-host abuild-print-help 474 413 65 22.7 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 12 10 8.7 osh-native-souffle
1 no-host bin-true 662 297 401 2.9 bash
9 no-host bin-true 527 273 266 1.4 dash
17 no-host bin-true 2,263 757 1,764 18.4 osh-cpython
25 no-host bin-true 787 293 514 8.1 osh-native
33 no-host bin-true 781 283 515 7.5 osh-native-souffle
2 no-host configure.cpython 14,923 6,688 8,639 29.1 bash
10 no-host configure.cpython 14,675 6,637 8,477 29.3 dash
18 no-host configure.cpython 28,287 14,022 16,146 29.2 osh-cpython
26 no-host configure.cpython 14,794 6,581 8,495 29.1 osh-native
34 no-host configure.cpython 14,762 6,422 8,618 29.2 osh-native-souffle
4 no-host configure.ocaml 3,771 1,297 1,515 22.6 bash
12 no-host configure.ocaml 3,683 1,286 1,417 22.6 dash
20 no-host configure.ocaml 4,580 1,825 1,967 22.5 osh-cpython
28 no-host configure.ocaml 3,750 1,313 1,478 22.6 osh-native
36 no-host configure.ocaml 3,794 1,302 1,531 22.6 osh-native-souffle
5 no-host configure.tcc 47 18 29 19.5 bash
13 no-host configure.tcc 40 24 16 19.5 dash
21 no-host configure.tcc 201 140 65 19.4 osh-cpython
29 no-host configure.tcc 47 21 27 19.6 osh-native
37 no-host configure.tcc 48 25 23 19.7 osh-native-souffle
3 no-host configure.util-linux 13,990 5,993 8,432 30.2 bash
11 no-host configure.util-linux 14,409 5,860 9,070 30.2 dash
19 no-host configure.util-linux 31,052 17,701 14,456 30.3 osh-cpython
27 no-host configure.util-linux 13,986 5,578 8,639 30.4 osh-native
35 no-host configure.util-linux 13,925 5,516 8,640 30.2 osh-native-souffle
6 no-host configure.yash 1,804 918 896 26.4 bash
14 no-host configure.yash 1,740 907 837 26.3 dash
22 no-host configure.yash 2,442 1,328 1,157 26.3 osh-cpython
30 no-host configure.yash 1,791 891 904 26.3 osh-native
38 no-host configure.yash 1,812 899 918 26.3 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.3 dash
16 no-host hello-world 55 37 19 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 2 1 5.8 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,500 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,587 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,204 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,094 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,342 0 0 0 8 0 1,989 146 bash
9 no-host bin-true 66,394 0 0 0 8 0 1,987 95 dash
17 no-host bin-true 763,086 0 0 0 8 0 1,976 219 osh-cpython
25 no-host bin-true 126,144 0 0 0 16 0 1,984 181 osh-native
33 no-host bin-true 125,302 0 0 0 16 0 1,978 146 osh-native-souffle
2 no-host configure.cpython 1,996,440 0 0 0 32,928 0 14,208 1,291 bash
10 no-host configure.cpython 2,025,250 1 0 0 32,992 0 14,349 1,240 dash
18 no-host configure.cpython 5,988,948 0 0 0 27,512 0 13,032 1,110 osh-cpython
26 no-host configure.cpython 1,993,541 0 0 0 27,520 0 13,140 1,121 osh-native
34 no-host configure.cpython 1,983,072 0 0 0 27,520 0 13,002 1,102 osh-native-souffle
4 no-host configure.ocaml 373,172 0 0 0 5,120 0 1,948 193 bash
12 no-host configure.ocaml 353,933 0 0 0 5,112 0 1,929 186 dash
20 no-host configure.ocaml 606,125 0 0 0 5,112 0 1,856 194 osh-cpython
28 no-host configure.ocaml 376,254 0 0 0 5,120 0 1,929 190 osh-native
36 no-host configure.ocaml 375,870 0 0 0 5,120 0 1,917 190 osh-native-souffle
5 no-host configure.tcc 6,061 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,999 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,399 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,493 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,441 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,900,850 0 0 0 42,400 0 18,428 1,195 bash
11 no-host configure.util-linux 2,067,968 1 0 0 42,584 0 17,207 1,430 dash
19 no-host configure.util-linux 5,169,319 12 0 0 39,120 0 17,017 1,385 osh-cpython
27 no-host configure.util-linux 1,811,110 0 0 0 39,120 0 16,975 1,201 osh-native
35 no-host configure.util-linux 1,796,900 0 0 0 39,128 0 17,031 1,269 osh-native-souffle
6 no-host configure.yash 233,652 0 0 0 4,120 0 872 111 bash
14 no-host configure.yash 221,701 0 0 0 3,720 0 870 98 dash
22 no-host configure.yash 364,363 0 0 0 3,728 0 855 107 osh-cpython
30 no-host configure.yash 235,234 0 0 0 3,736 0 847 100 osh-native
38 no-host configure.yash 235,187 0 0 0 3,736 0 848 92 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,952 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-49b486ac
dash dash-0ebcf347
osh-cpython osh-b90c2afb
osh-native osh-92a13860
osh-native-souffle osh-22948257
host label host id
no-host no-host-e4839999