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 22 25.03 1.16
bin-true no-host 651 534 2,319 786 792 3.56 1.21
configure.cpython no-host 14,965 15,012 29,031 15,215 15,134 1.94 1.02
configure.ocaml no-host 3,827 3,734 4,707 3,819 3,862 1.23 1.00
configure.tcc no-host 47 41 207 48 48 4.43 1.03
configure.util-linux no-host 13,929 14,720 31,893 14,250 14,241 2.29 1.02
configure.yash no-host 1,822 1,796 2,499 1,830 1,872 1.37 1.00
hello-world no-host 1 1 57 3 3 42.25 2.12

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,513 1,093 23,584 3,196 3,112 9.38 1.27
bin-true no-host 103,336 66,442 759,109 124,128 126,191 7.35 1.20
configure.cpython no-host 2,002,736 2,031,219 5,988,152 2,002,151 1,976,791 2.99 1.00
configure.ocaml no-host 373,066 353,489 605,769 376,038 375,599 1.62 1.01
configure.tcc no-host 6,100 4,998 23,427 6,480 6,427 3.84 1.06
configure.util-linux no-host 1,907,367 2,067,283 5,170,346 1,798,146 1,795,537 2.71 0.94
configure.yash no-host 233,720 221,721 363,889 235,017 234,985 1.56 1.01
hello-world no-host 147 74 3,952 343 339 26.88 2.33

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 22.6 9.2 8.8 5.07 2.06
bin-true no-host 3.0 1.4 18.4 8.0 7.5 6.10 2.65
configure.cpython no-host 29.2 29.2 29.3 29.2 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.4 19.7 19.7 19.7 19.8 1.02 1.01
configure.util-linux no-host 30.3 30.2 30.1 30.2 30.3 0.99 1.00
configure.yash no-host 26.2 26.5 26.4 26.4 26.3 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.4 5.8 6.33 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 694 1,861 1,234 2 0 50,000 0
bin-true no-host 786 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,215 1 67 14.9 29.2 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 14,250 3 66 21.2 30.2 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,819 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 48 0 0 1.3 19.7 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,830 1 2 2.5 26.4 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.2 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 792 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 15,134 2 70 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 14,241 3 67 21.2 30.3 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,862 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.8 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,872 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 22 1 2 2.8 8.8 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 13 6 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 474 423 54 22.6 osh-cpython
31 no-host abuild-print-help 22 14 9 9.2 osh-native
39 no-host abuild-print-help 22 10 12 8.8 osh-native-souffle
1 no-host bin-true 651 300 385 3.0 bash
9 no-host bin-true 534 273 273 1.4 dash
17 no-host bin-true 2,319 791 1,791 18.4 osh-cpython
25 no-host bin-true 786 308 495 8.0 osh-native
33 no-host bin-true 792 300 510 7.5 osh-native-souffle
2 no-host configure.cpython 14,965 6,844 8,529 29.2 bash
10 no-host configure.cpython 15,012 6,889 8,552 29.2 dash
18 no-host configure.cpython 29,031 14,449 16,506 29.3 osh-cpython
26 no-host configure.cpython 15,215 6,620 8,877 29.2 osh-native
34 no-host configure.cpython 15,134 6,650 8,765 29.2 osh-native-souffle
4 no-host configure.ocaml 3,827 1,311 1,547 22.6 bash
12 no-host configure.ocaml 3,734 1,303 1,453 22.6 dash
20 no-host configure.ocaml 4,707 1,910 2,015 22.5 osh-cpython
28 no-host configure.ocaml 3,819 1,336 1,524 22.6 osh-native
36 no-host configure.ocaml 3,862 1,294 1,607 22.6 osh-native-souffle
5 no-host configure.tcc 47 21 26 19.4 bash
13 no-host configure.tcc 41 23 18 19.7 dash
21 no-host configure.tcc 207 141 70 19.7 osh-cpython
29 no-host configure.tcc 48 29 20 19.7 osh-native
37 no-host configure.tcc 48 21 27 19.8 osh-native-souffle
3 no-host configure.util-linux 13,929 5,958 8,459 30.3 bash
11 no-host configure.util-linux 14,720 5,988 9,266 30.2 dash
19 no-host configure.util-linux 31,893 18,196 14,828 30.1 osh-cpython
27 no-host configure.util-linux 14,250 5,741 8,711 30.2 osh-native
35 no-host configure.util-linux 14,241 5,691 8,764 30.3 osh-native-souffle
6 no-host configure.yash 1,822 913 919 26.2 bash
14 no-host configure.yash 1,796 898 904 26.5 dash
22 no-host configure.yash 2,499 1,364 1,178 26.4 osh-cpython
30 no-host configure.yash 1,830 898 936 26.4 osh-native
38 no-host configure.yash 1,872 953 918 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 37 21 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.4 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,513 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,584 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 103,336 0 0 0 8 0 1,982 79 bash
9 no-host bin-true 66,442 0 0 0 8 0 1,986 55 dash
17 no-host bin-true 759,109 0 0 0 8 0 1,995 531 osh-cpython
25 no-host bin-true 124,128 0 0 0 16 0 1,978 133 osh-native
33 no-host bin-true 126,191 0 0 0 16 0 1,980 120 osh-native-souffle
2 no-host configure.cpython 2,002,736 1 0 0 32,928 0 14,218 1,188 bash
10 no-host configure.cpython 2,031,219 2 0 0 32,992 0 14,329 1,189 dash
18 no-host configure.cpython 5,988,152 0 0 0 27,512 0 13,137 1,154 osh-cpython
26 no-host configure.cpython 2,002,151 0 0 0 27,520 0 13,074 1,031 osh-native
34 no-host configure.cpython 1,976,791 0 0 0 27,520 0 13,017 1,047 osh-native-souffle
4 no-host configure.ocaml 373,066 0 0 0 5,120 0 1,952 197 bash
12 no-host configure.ocaml 353,489 0 0 0 5,112 0 1,933 185 dash
20 no-host configure.ocaml 605,769 0 0 0 5,112 0 1,852 203 osh-cpython
28 no-host configure.ocaml 376,038 0 0 0 5,120 0 1,922 207 osh-native
36 no-host configure.ocaml 375,599 0 0 0 5,120 0 1,930 185 osh-native-souffle
5 no-host configure.tcc 6,100 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 4,998 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,427 0 0 0 96 0 52 6 osh-cpython
29 no-host configure.tcc 6,480 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,427 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,907,367 1 0 0 42,400 0 18,474 1,212 bash
11 no-host configure.util-linux 2,067,283 2 0 0 42,584 0 17,248 1,414 dash
19 no-host configure.util-linux 5,170,346 11 0 0 39,112 0 17,022 1,378 osh-cpython
27 no-host configure.util-linux 1,798,146 0 0 0 39,120 0 16,991 1,136 osh-native
35 no-host configure.util-linux 1,795,537 0 0 0 39,128 0 16,988 1,170 osh-native-souffle
6 no-host configure.yash 233,720 0 0 0 4,120 0 869 86 bash
14 no-host configure.yash 221,721 0 0 0 3,720 0 867 72 dash
22 no-host configure.yash 363,889 0 0 0 3,728 0 852 83 osh-cpython
30 no-host configure.yash 235,017 0 0 0 3,736 0 849 83 osh-native
38 no-host configure.yash 234,985 0 0 0 3,736 0 851 90 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 74 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 343 0 0 0 16 0 1 1 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-bd728d14
dash dash-0ebcf347
osh-cpython osh-8eb632cb
osh-native osh-66bd08da
osh-native-souffle osh-db930904
host label host id
no-host no-host-e4839999