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 10 465 22 20 25.12 1.19
bin-true no-host 648 529 2,267 798 782 3.50 1.23
configure.cpython no-host 14,471 14,794 28,003 15,133 14,982 1.94 1.05
configure.ocaml no-host 3,763 3,698 4,589 3,781 3,841 1.22 1.00
configure.tcc no-host 47 40 213 48 49 4.57 1.03
configure.util-linux no-host 13,602 14,379 30,705 14,306 14,285 2.26 1.05
configure.yash no-host 1,782 1,739 2,439 1,822 1,834 1.37 1.02
hello-world no-host 1 1 56 3 3 43.44 2.24

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,583 1,108 23,459 3,162 3,113 9.08 1.22
bin-true no-host 105,318 66,443 755,286 129,141 125,306 7.17 1.23
configure.cpython no-host 1,999,679 2,016,735 5,979,819 1,994,127 1,983,771 2.99 1.00
configure.ocaml no-host 373,264 353,578 606,145 376,156 375,614 1.62 1.01
configure.tcc no-host 6,089 5,018 23,396 6,503 6,454 3.84 1.07
configure.util-linux no-host 1,897,899 2,063,689 5,164,842 1,808,810 1,796,791 2.72 0.95
configure.yash no-host 233,089 221,895 364,587 235,612 235,304 1.56 1.01
hello-world no-host 147 80 3,957 342 336 26.92 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.4 22.5 9.0 8.7 5.05 2.03
bin-true no-host 2.9 1.4 18.3 8.0 7.6 6.33 2.77
configure.cpython no-host 28.9 29.1 29.2 29.2 29.2 1.01 1.01
configure.ocaml no-host 22.5 22.5 22.6 22.6 22.5 1.00 1.01
configure.tcc no-host 19.7 19.7 19.4 19.5 19.8 0.99 0.99
configure.util-linux no-host 30.2 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.4 26.4 26.5 26.4 1.00 1.01
hello-world no-host 2.8 1.6 18.3 6.2 5.8 6.63 2.24

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.2 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 798 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,133 2 70 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,306 3 69 21.2 30.3 2,698,991 29,940 65,698 108,699 1,288,281 1,302,011 32,241 41 131,396 1
configure.ocaml no-host 3,781 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.5 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,822 1 2 2.5 26.5 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 782 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 14,982 1 67 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,285 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,841 1 2 2.6 22.5 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 49 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,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 20 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 7 12 4.5 bash
15 no-host abuild-print-help 10 2 7 3.4 dash
23 no-host abuild-print-help 465 408 61 22.5 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 648 292 388 2.9 bash
9 no-host bin-true 529 273 267 1.4 dash
17 no-host bin-true 2,267 776 1,751 18.3 osh-cpython
25 no-host bin-true 798 300 514 8.0 osh-native
33 no-host bin-true 782 297 503 7.6 osh-native-souffle
2 no-host configure.cpython 14,471 6,577 8,312 28.9 bash
10 no-host configure.cpython 14,794 6,714 8,508 29.1 dash
18 no-host configure.cpython 28,003 13,986 15,880 29.2 osh-cpython
26 no-host configure.cpython 15,133 6,578 8,847 29.2 osh-native
34 no-host configure.cpython 14,982 6,652 8,611 29.2 osh-native-souffle
4 no-host configure.ocaml 3,763 1,325 1,475 22.5 bash
12 no-host configure.ocaml 3,698 1,274 1,446 22.5 dash
20 no-host configure.ocaml 4,589 1,889 1,911 22.6 osh-cpython
28 no-host configure.ocaml 3,781 1,328 1,492 22.6 osh-native
36 no-host configure.ocaml 3,841 1,349 1,532 22.5 osh-native-souffle
5 no-host configure.tcc 47 21 26 19.7 bash
13 no-host configure.tcc 40 18 22 19.7 dash
21 no-host configure.tcc 213 143 75 19.4 osh-cpython
29 no-host configure.tcc 48 22 27 19.5 osh-native
37 no-host configure.tcc 49 22 27 19.8 osh-native-souffle
3 no-host configure.util-linux 13,602 5,787 8,293 30.2 bash
11 no-host configure.util-linux 14,379 5,771 9,123 30.3 dash
19 no-host configure.util-linux 30,705 17,514 14,270 30.3 osh-cpython
27 no-host configure.util-linux 14,306 5,822 8,701 30.3 osh-native
35 no-host configure.util-linux 14,285 5,658 8,853 30.3 osh-native-souffle
6 no-host configure.yash 1,782 904 887 26.3 bash
14 no-host configure.yash 1,739 878 866 26.4 dash
22 no-host configure.yash 2,439 1,322 1,161 26.4 osh-cpython
30 no-host configure.yash 1,822 938 890 26.5 osh-native
38 no-host configure.yash 1,834 953 886 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 40 16 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.2 osh-native
32 no-host hello-world 3 1 2 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,583 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,459 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,162 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,318 0 0 0 8 0 1,989 124 bash
9 no-host bin-true 66,443 0 0 0 8 0 1,984 95 dash
17 no-host bin-true 755,286 0 0 0 8 0 1,972 324 osh-cpython
25 no-host bin-true 129,141 0 0 0 16 0 1,977 110 osh-native
33 no-host bin-true 125,306 0 0 0 16 0 1,985 117 osh-native-souffle
2 no-host configure.cpython 1,999,679 1 0 0 32,928 0 14,245 1,254 bash
10 no-host configure.cpython 2,016,735 0 0 0 32,992 0 14,358 1,164 dash
18 no-host configure.cpython 5,979,819 1 0 0 27,512 0 13,041 1,171 osh-cpython
26 no-host configure.cpython 1,994,127 0 0 0 27,520 0 13,049 1,133 osh-native
34 no-host configure.cpython 1,983,771 1 0 0 27,520 0 13,026 997 osh-native-souffle
4 no-host configure.ocaml 373,264 0 0 0 5,120 0 1,960 187 bash
12 no-host configure.ocaml 353,578 0 0 0 5,112 0 1,937 155 dash
20 no-host configure.ocaml 606,145 0 0 0 5,112 0 1,851 175 osh-cpython
28 no-host configure.ocaml 376,156 0 0 0 5,120 0 1,917 219 osh-native
36 no-host configure.ocaml 375,614 0 0 0 5,120 0 1,924 219 osh-native-souffle
5 no-host configure.tcc 6,089 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,018 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,396 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,503 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,454 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,897,899 1 0 0 42,400 0 18,465 1,352 bash
11 no-host configure.util-linux 2,063,689 0 0 0 42,584 0 17,325 1,397 dash
19 no-host configure.util-linux 5,164,842 4 0 0 39,120 0 17,030 1,326 osh-cpython
27 no-host configure.util-linux 1,808,810 0 0 0 39,120 0 16,991 1,155 osh-native
35 no-host configure.util-linux 1,796,791 0 0 0 39,128 0 16,969 1,092 osh-native-souffle
6 no-host configure.yash 233,089 0 0 0 4,120 0 871 94 bash
14 no-host configure.yash 221,895 0 0 0 3,720 0 869 94 dash
22 no-host configure.yash 364,587 0 0 0 3,728 0 854 99 osh-cpython
30 no-host configure.yash 235,612 0 0 0 3,736 0 847 99 osh-native
38 no-host configure.yash 235,304 0 0 0 3,736 0 848 87 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,957 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-64e5505c
dash dash-0ebcf347
osh-cpython osh-5dc35fd9
osh-native osh-b846c965
osh-native-souffle osh-b6b78998
host label host id
no-host no-host-e4839999