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 480 22 21 26.13 1.22
bin-true no-host 642 526 2,269 792 793 3.54 1.23
configure.cpython no-host 14,462 14,574 28,819 15,034 15,531 1.99 1.04
configure.ocaml no-host 3,701 3,696 4,637 3,844 3,831 1.25 1.04
configure.tcc no-host 46 40 204 49 48 4.44 1.06
configure.util-linux no-host 13,509 14,510 31,995 14,225 14,082 2.37 1.05
configure.yash no-host 1,759 1,775 2,464 1,840 1,834 1.40 1.05
hello-world no-host 1 1 58 3 3 46.49 2.25

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,556 1,135 23,574 3,192 3,096 9.22 1.25
bin-true no-host 106,279 65,508 760,119 126,114 125,255 7.15 1.19
configure.cpython no-host 1,998,669 2,018,503 5,982,203 1,995,066 1,989,245 2.99 1.00
configure.ocaml no-host 373,206 353,735 606,211 375,569 375,040 1.62 1.01
configure.tcc no-host 6,086 5,008 23,415 6,496 6,423 3.85 1.07
configure.util-linux no-host 1,898,712 2,069,512 5,170,599 1,811,461 1,799,478 2.72 0.95
configure.yash no-host 233,198 221,221 363,907 235,564 234,897 1.56 1.01
hello-world no-host 146 77 3,946 344 338 27.03 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.5 3.4 22.8 8.9 8.7 5.13 2.00
bin-true no-host 2.9 1.4 18.5 8.0 7.6 6.42 2.77
configure.cpython no-host 29.1 29.1 29.2 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.8 19.6 19.7 19.7 0.99 1.00
configure.util-linux no-host 30.2 30.3 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.5 26.3 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.3 5.9 6.63 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 792 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,034 1 66 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,225 3 65 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,844 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 49 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,840 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 8.9 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.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 793 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,531 2 69 14.9 29.1 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,082 3 66 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,831 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,834 1 2 2.5 26.4 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 18 11 8 4.5 bash
15 no-host abuild-print-help 9 1 8 3.4 dash
23 no-host abuild-print-help 480 427 56 22.8 osh-cpython
31 no-host abuild-print-help 22 12 11 8.9 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 642 309 367 2.9 bash
9 no-host bin-true 526 278 259 1.4 dash
17 no-host bin-true 2,269 791 1,737 18.5 osh-cpython
25 no-host bin-true 792 295 514 8.0 osh-native
33 no-host bin-true 793 294 514 7.6 osh-native-souffle
2 no-host configure.cpython 14,462 6,589 8,281 29.1 bash
10 no-host configure.cpython 14,574 6,579 8,423 29.1 dash
18 no-host configure.cpython 28,819 14,304 16,430 29.2 osh-cpython
26 no-host configure.cpython 15,034 6,571 8,758 29.2 osh-native
34 no-host configure.cpython 15,531 6,564 8,769 29.1 osh-native-souffle
4 no-host configure.ocaml 3,701 1,230 1,512 22.6 bash
12 no-host configure.ocaml 3,696 1,276 1,443 22.5 dash
20 no-host configure.ocaml 4,637 1,851 1,999 22.6 osh-cpython
28 no-host configure.ocaml 3,844 1,329 1,556 22.6 osh-native
36 no-host configure.ocaml 3,831 1,319 1,549 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 26 19.7 bash
13 no-host configure.tcc 40 21 19 19.8 dash
21 no-host configure.tcc 204 130 78 19.6 osh-cpython
29 no-host configure.tcc 49 27 23 19.7 osh-native
37 no-host configure.tcc 48 24 24 19.7 osh-native-souffle
3 no-host configure.util-linux 13,509 5,751 8,150 30.2 bash
11 no-host configure.util-linux 14,510 5,868 9,170 30.3 dash
19 no-host configure.util-linux 31,995 17,930 14,875 30.2 osh-cpython
27 no-host configure.util-linux 14,225 5,680 8,767 30.2 osh-native
35 no-host configure.util-linux 14,082 5,622 8,688 30.3 osh-native-souffle
6 no-host configure.yash 1,759 877 892 26.4 bash
14 no-host configure.yash 1,775 880 900 26.5 dash
22 no-host configure.yash 2,464 1,338 1,171 26.3 osh-cpython
30 no-host configure.yash 1,840 874 971 26.3 osh-native
38 no-host configure.yash 1,834 924 915 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 41 18 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,556 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,135 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,574 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 38 0 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,279 0 0 0 8 0 1,988 100 bash
9 no-host bin-true 65,508 0 0 0 8 0 1,983 138 dash
17 no-host bin-true 760,119 0 0 0 8 0 1,984 260 osh-cpython
25 no-host bin-true 126,114 0 0 0 16 0 1,986 118 osh-native
33 no-host bin-true 125,255 0 0 0 16 0 1,986 263 osh-native-souffle
2 no-host configure.cpython 1,998,669 0 0 0 32,928 0 14,272 1,189 bash
10 no-host configure.cpython 2,018,503 1 0 0 32,992 0 14,318 1,296 dash
18 no-host configure.cpython 5,982,203 1 0 0 27,512 0 13,090 1,169 osh-cpython
26 no-host configure.cpython 1,995,066 0 0 0 27,520 0 13,037 1,103 osh-native
34 no-host configure.cpython 1,989,245 0 0 0 27,520 0 13,011 1,105 osh-native-souffle
4 no-host configure.ocaml 373,206 0 0 0 5,120 0 1,949 196 bash
12 no-host configure.ocaml 353,735 0 0 0 5,112 0 1,937 175 dash
20 no-host configure.ocaml 606,211 1 0 0 5,112 0 1,863 195 osh-cpython
28 no-host configure.ocaml 375,569 0 0 0 5,120 0 1,931 178 osh-native
36 no-host configure.ocaml 375,040 0 0 0 5,120 0 1,934 167 osh-native-souffle
5 no-host configure.tcc 6,086 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,008 0 0 0 96 0 47 6 dash
21 no-host configure.tcc 23,415 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,423 0 0 0 104 0 45 4 osh-native-souffle
3 no-host configure.util-linux 1,898,712 1 0 0 42,400 0 18,430 1,249 bash
11 no-host configure.util-linux 2,069,512 0 0 0 42,584 0 17,360 1,393 dash
19 no-host configure.util-linux 5,170,599 8 0 0 39,112 0 16,988 1,304 osh-cpython
27 no-host configure.util-linux 1,811,461 0 0 0 39,120 0 16,956 1,164 osh-native
35 no-host configure.util-linux 1,799,478 2 0 0 39,128 0 17,002 1,302 osh-native-souffle
6 no-host configure.yash 233,198 0 0 0 4,120 0 873 106 bash
14 no-host configure.yash 221,221 0 0 0 3,720 0 865 86 dash
22 no-host configure.yash 363,907 0 0 0 3,728 0 856 89 osh-cpython
30 no-host configure.yash 235,564 0 0 0 3,736 0 851 105 osh-native
38 no-host configure.yash 234,897 0 0 0 3,736 0 849 96 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,946 0 0 0 8 0 6 0 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5242bba1
dash dash-0ebcf347
osh-cpython osh-05d7d649
osh-native osh-3c3f47ca
osh-native-souffle osh-ceb2e824
host label host id
no-host no-host-e4839999