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 472 22 21 25.35 1.16
bin-true no-host 647 531 2,404 810 784 3.71 1.25
configure.cpython no-host 14,787 14,900 29,344 14,814 14,777 1.98 1.00
configure.ocaml no-host 3,757 3,759 4,589 3,738 3,728 1.22 1.00
configure.tcc no-host 48 42 201 48 47 4.23 1.01
configure.util-linux no-host 13,814 14,658 31,493 14,553 14,578 2.28 1.05
configure.yash no-host 1,822 1,769 2,425 1,782 1,771 1.33 0.98
hello-world no-host 1 1 58 3 3 44.52 2.10

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,507 1,102 24,316 3,194 3,108 9.70 1.27
bin-true no-host 105,360 66,440 806,239 131,172 124,205 7.65 1.24
configure.cpython no-host 1,992,608 2,018,398 6,114,693 2,023,018 2,012,903 3.07 1.02
configure.ocaml no-host 373,006 353,955 616,254 376,279 376,148 1.65 1.01
configure.tcc no-host 6,086 4,990 24,085 6,517 6,440 3.96 1.07
configure.util-linux no-host 1,913,308 2,071,978 5,295,535 1,819,843 1,811,249 2.77 0.95
configure.yash no-host 232,631 221,229 369,451 235,719 235,214 1.59 1.01
hello-world no-host 148 76 3,961 345 339 26.76 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.3 3.5 22.7 9.2 8.4 5.25 2.12
bin-true no-host 3.0 1.4 18.5 8.1 7.7 6.15 2.70
configure.cpython no-host 29.0 29.2 29.2 29.1 29.3 1.01 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.8 19.8 19.8 19.4 19.6 1.00 0.98
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.4 26.5 26.4 26.3 1.01 1.00
hello-world no-host 2.8 1.4 18.1 6.3 5.9 6.59 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.1 160,780 19,428 2,901 8,752 79,341 72,687 3,008 3 50,000 0
configure.cpython no-host 14,814 1 64 15.4 29.1 1,821,087 49,318 28,526 94,826 901,290 824,971 25,736 62 50,000 0
configure.util-linux no-host 14,553 3 60 21.9 30.2 2,758,058 74,290 65,725 117,854 1,319,065 1,321,139 32,241 42 131,450 1
configure.ocaml no-host 3,738 1 2 2.7 22.6 152,690 11,438 5,221 7,916 72,082 72,692 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,895 30,895 0 1,553 14,794 14,548 271 0 50,000 0
configure.yash no-host 1,782 1 2 2.6 26.4 143,287 11,093 6,586 6,406 70,103 66,778 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,466 64,421 42,627 4,546 54,526 57,394 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 784 1 2 2.6 7.7 160,779 19,423 2,896 8,753 79,341 72,685 3,008 3 50,000 0
configure.cpython no-host 14,777 1 64 15.4 29.3 1,821,086 49,305 28,521 94,827 901,290 824,969 25,736 62 50,000 0
configure.util-linux no-host 14,578 3 60 21.9 30.2 2,758,058 74,278 65,720 117,856 1,319,065 1,321,137 32,241 42 131,440 1
configure.ocaml no-host 3,728 1 2 2.7 22.6 152,690 11,433 5,216 7,918 72,082 72,690 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,895 30,895 0 1,555 14,794 14,546 271 0 50,000 0
configure.yash no-host 1,771 1 2 2.6 26.3 143,287 11,053 6,581 6,408 70,103 66,776 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,465 64,416 42,622 4,547 54,526 57,392 277 3 85,244 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 3 7 3.5 dash
23 no-host abuild-print-help 472 411 65 22.7 osh-cpython
31 no-host abuild-print-help 22 8 15 9.2 osh-native
39 no-host abuild-print-help 21 8 13 8.4 osh-native-souffle
1 no-host bin-true 647 303 377 3.0 bash
9 no-host bin-true 531 272 270 1.4 dash
17 no-host bin-true 2,404 821 1,841 18.5 osh-cpython
25 no-host bin-true 810 296 529 8.1 osh-native
33 no-host bin-true 784 293 507 7.7 osh-native-souffle
2 no-host configure.cpython 14,787 6,699 8,510 29.0 bash
10 no-host configure.cpython 14,900 6,660 8,690 29.2 dash
18 no-host configure.cpython 29,344 14,621 16,672 29.2 osh-cpython
26 no-host configure.cpython 14,814 6,519 8,586 29.1 osh-native
34 no-host configure.cpython 14,777 6,463 8,476 29.3 osh-native-souffle
4 no-host configure.ocaml 3,757 1,286 1,513 22.6 bash
12 no-host configure.ocaml 3,759 1,318 1,463 22.6 dash
20 no-host configure.ocaml 4,589 1,839 1,967 22.6 osh-cpython
28 no-host configure.ocaml 3,738 1,295 1,484 22.6 osh-native
36 no-host configure.ocaml 3,728 1,283 1,486 22.6 osh-native-souffle
5 no-host configure.tcc 48 23 25 19.8 bash
13 no-host configure.tcc 42 20 22 19.8 dash
21 no-host configure.tcc 201 142 63 19.8 osh-cpython
29 no-host configure.tcc 48 24 24 19.4 osh-native
37 no-host configure.tcc 47 23 25 19.6 osh-native-souffle
3 no-host configure.util-linux 13,814 5,920 8,403 30.3 bash
11 no-host configure.util-linux 14,658 5,903 9,292 30.3 dash
19 no-host configure.util-linux 31,493 17,846 14,757 30.3 osh-cpython
27 no-host configure.util-linux 14,553 5,581 8,523 30.2 osh-native
35 no-host configure.util-linux 14,578 5,466 8,528 30.2 osh-native-souffle
6 no-host configure.yash 1,822 928 899 26.3 bash
14 no-host configure.yash 1,769 878 896 26.4 dash
22 no-host configure.yash 2,425 1,343 1,124 26.5 osh-cpython
30 no-host configure.yash 1,782 904 884 26.4 osh-native
38 no-host configure.yash 1,771 878 899 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 39 19 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 1 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,507 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,316 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,194 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,108 0 0 0 16 0 39 7 osh-native-souffle
1 no-host bin-true 105,360 0 0 0 8 0 1,972 69 bash
9 no-host bin-true 66,440 0 0 0 8 0 1,970 139 dash
17 no-host bin-true 806,239 0 0 0 8 0 1,988 564 osh-cpython
25 no-host bin-true 131,172 0 0 0 16 0 1,986 397 osh-native
33 no-host bin-true 124,205 0 0 0 16 0 1,981 79 osh-native-souffle
2 no-host configure.cpython 1,992,608 0 0 0 32,928 0 14,200 1,112 bash
10 no-host configure.cpython 2,018,398 0 0 0 32,992 0 14,337 1,159 dash
18 no-host configure.cpython 6,114,693 0 0 0 27,512 0 13,093 1,180 osh-cpython
26 no-host configure.cpython 2,023,018 1 0 0 27,520 0 13,076 1,053 osh-native
34 no-host configure.cpython 2,012,903 0 0 0 27,520 0 13,098 1,015 osh-native-souffle
4 no-host configure.ocaml 373,006 0 0 0 5,120 0 1,946 187 bash
12 no-host configure.ocaml 353,955 0 0 0 5,112 0 1,930 191 dash
20 no-host configure.ocaml 616,254 0 0 0 5,112 0 1,843 212 osh-cpython
28 no-host configure.ocaml 376,279 0 0 0 5,120 0 1,932 200 osh-native
36 no-host configure.ocaml 376,148 0 0 0 5,120 0 1,928 213 osh-native-souffle
5 no-host configure.tcc 6,086 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,990 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,085 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,517 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,440 0 0 0 104 0 46 3 osh-native-souffle
3 no-host configure.util-linux 1,913,308 1 0 0 42,400 0 18,432 1,364 bash
11 no-host configure.util-linux 2,071,978 0 0 0 42,592 0 17,417 1,305 dash
19 no-host configure.util-linux 5,295,535 0 0 0 39,136 0 17,002 1,242 osh-cpython
27 no-host configure.util-linux 1,819,843 0 0 0 39,120 0 17,221 1,108 osh-native
35 no-host configure.util-linux 1,811,249 0 0 0 39,128 0 17,236 1,216 osh-native-souffle
6 no-host configure.yash 232,631 0 0 0 4,120 0 882 122 bash
14 no-host configure.yash 221,229 0 0 0 3,720 0 867 88 dash
22 no-host configure.yash 369,451 0 0 0 3,728 0 853 91 osh-cpython
30 no-host configure.yash 235,719 0 0 0 3,736 0 850 92 osh-native
38 no-host configure.yash 235,214 0 0 0 3,736 0 852 79 osh-native-souffle
0 no-host hello-world 148 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,961 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 345 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-f75dbeed
dash dash-0ebcf347
osh-cpython osh-2506963a
osh-native osh-4ac6c9c7
osh-native-souffle osh-e9842065
host label host id
no-host no-host-e4839999