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 470 22 21 25.14 1.17
bin-true no-host 672 529 2,400 800 792 3.57 1.19
configure.cpython no-host 15,003 14,616 28,534 14,801 15,208 1.90 0.99
configure.ocaml no-host 3,777 3,663 4,559 3,800 3,778 1.21 1.01
configure.tcc no-host 46 40 208 48 48 4.54 1.05
configure.util-linux no-host 13,879 14,668 30,959 14,162 14,034 2.23 1.02
configure.yash no-host 1,828 1,722 2,426 1,842 1,804 1.33 1.01
hello-world no-host 1 1 57 3 3 40.83 1.98

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,514 1,104 24,422 3,209 3,110 9.71 1.28
bin-true no-host 105,325 66,389 811,530 126,118 127,154 7.71 1.20
configure.cpython no-host 1,997,099 2,017,427 6,097,255 2,007,025 1,999,749 3.05 1.00
configure.ocaml no-host 373,549 354,305 614,907 376,980 375,778 1.65 1.01
configure.tcc no-host 6,119 5,028 24,051 6,520 6,465 3.93 1.07
configure.util-linux no-host 1,909,160 2,073,692 5,323,208 1,824,020 1,802,223 2.79 0.96
configure.yash no-host 233,272 222,384 370,024 235,968 235,173 1.59 1.01
hello-world no-host 147 78 3,968 344 336 26.99 2.34

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.4 22.9 9.0 8.4 5.28 2.09
bin-true no-host 2.9 1.4 18.5 8.0 7.6 6.43 2.77
configure.cpython no-host 29.1 29.0 29.1 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.5 22.5 22.6 0.99 0.99
configure.tcc no-host 19.7 19.6 19.5 19.4 19.6 0.99 0.99
configure.util-linux no-host 30.3 30.4 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.1 26.4 1.00 0.99
hello-world no-host 2.9 1.6 18.3 6.3 5.9 6.34 2.18

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 800 1 2 2.6 8.0 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 14,801 1 62 15.3 29.1 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,162 3 63 21.6 30.3 2,704,674 53,757 65,725 114,372 1,293,957 1,296,345 32,241 41 131,450 1
configure.ocaml no-host 3,800 1 2 2.6 22.5 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,842 1 2 2.6 26.1 139,684 8,041 6,700 6,395 68,253 65,036 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,321 64,419 42,627 4,544 54,454 57,323 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 792 1 2 2.6 7.6 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 15,208 2 65 15.3 29.2 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,034 3 65 21.6 30.3 2,704,674 53,734 65,720 114,374 1,293,957 1,296,343 32,241 41 131,440 1
configure.ocaml no-host 3,778 1 2 2.6 22.6 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,804 1 2 2.6 26.4 139,684 8,030 6,689 6,397 68,253 65,034 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,320 64,414 42,622 4,545 54,454 57,321 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 4 5 3.4 dash
23 no-host abuild-print-help 470 415 58 22.9 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 9 12 8.4 osh-native-souffle
1 no-host bin-true 672 308 394 2.9 bash
9 no-host bin-true 529 276 264 1.4 dash
17 no-host bin-true 2,400 783 1,870 18.5 osh-cpython
25 no-host bin-true 800 311 505 8.0 osh-native
33 no-host bin-true 792 291 517 7.6 osh-native-souffle
2 no-host configure.cpython 15,003 6,721 8,690 29.1 bash
10 no-host configure.cpython 14,616 6,588 8,446 29.0 dash
18 no-host configure.cpython 28,534 14,204 16,193 29.1 osh-cpython
26 no-host configure.cpython 14,801 6,430 8,651 29.1 osh-native
34 no-host configure.cpython 15,208 6,682 8,675 29.2 osh-native-souffle
4 no-host configure.ocaml 3,777 1,323 1,497 22.6 bash
12 no-host configure.ocaml 3,663 1,267 1,418 22.6 dash
20 no-host configure.ocaml 4,559 1,829 1,943 22.5 osh-cpython
28 no-host configure.ocaml 3,800 1,298 1,543 22.5 osh-native
36 no-host configure.ocaml 3,778 1,301 1,516 22.6 osh-native-souffle
5 no-host configure.tcc 46 22 24 19.7 bash
13 no-host configure.tcc 40 20 21 19.6 dash
21 no-host configure.tcc 208 151 60 19.5 osh-cpython
29 no-host configure.tcc 48 19 29 19.4 osh-native
37 no-host configure.tcc 48 23 25 19.6 osh-native-souffle
3 no-host configure.util-linux 13,879 5,876 8,496 30.3 bash
11 no-host configure.util-linux 14,668 5,861 9,322 30.4 dash
19 no-host configure.util-linux 30,959 17,501 14,527 30.2 osh-cpython
27 no-host configure.util-linux 14,162 5,653 8,718 30.3 osh-native
35 no-host configure.util-linux 14,034 5,638 8,602 30.3 osh-native-souffle
6 no-host configure.yash 1,828 906 916 26.3 bash
14 no-host configure.yash 1,722 865 862 26.3 dash
22 no-host configure.yash 2,426 1,314 1,152 26.4 osh-cpython
30 no-host configure.yash 1,842 908 938 26.1 osh-native
38 no-host configure.yash 1,804 940 870 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 38 19 18.3 osh-cpython
24 no-host hello-world 3 2 1 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,514 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,422 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,110 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 105,325 0 0 0 8 0 1,986 98 bash
9 no-host bin-true 66,389 0 0 0 8 0 1,978 106 dash
17 no-host bin-true 811,530 0 0 0 8 0 1,983 336 osh-cpython
25 no-host bin-true 126,118 0 0 0 16 0 1,974 164 osh-native
33 no-host bin-true 127,154 0 0 0 16 0 1,982 171 osh-native-souffle
2 no-host configure.cpython 1,997,099 1 0 0 32,928 0 14,192 1,192 bash
10 no-host configure.cpython 2,017,427 0 0 0 32,992 0 14,342 1,270 dash
18 no-host configure.cpython 6,097,255 0 0 0 27,512 0 13,036 1,204 osh-cpython
26 no-host configure.cpython 2,007,025 3 0 0 27,520 0 13,081 1,254 osh-native
34 no-host configure.cpython 1,999,749 0 0 0 27,520 0 13,026 1,121 osh-native-souffle
4 no-host configure.ocaml 373,549 1 0 0 5,120 0 1,943 197 bash
12 no-host configure.ocaml 354,305 0 0 0 5,112 0 1,942 212 dash
20 no-host configure.ocaml 614,907 0 0 0 5,112 0 1,850 214 osh-cpython
28 no-host configure.ocaml 376,980 0 0 0 5,120 0 1,923 200 osh-native
36 no-host configure.ocaml 375,778 0 0 0 5,120 0 1,918 204 osh-native-souffle
5 no-host configure.tcc 6,119 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,028 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,051 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,520 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,465 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,909,160 0 0 0 42,400 0 18,421 1,147 bash
11 no-host configure.util-linux 2,073,692 0 0 0 42,584 0 17,215 1,440 dash
19 no-host configure.util-linux 5,323,208 18 0 0 39,112 0 17,016 1,299 osh-cpython
27 no-host configure.util-linux 1,824,020 1 0 0 39,120 0 16,830 1,177 osh-native
35 no-host configure.util-linux 1,802,223 1 0 0 39,128 0 16,572 1,249 osh-native-souffle
6 no-host configure.yash 233,272 0 0 0 4,120 0 883 80 bash
14 no-host configure.yash 222,384 0 0 0 3,720 0 868 76 dash
22 no-host configure.yash 370,024 0 0 0 3,728 0 854 82 osh-cpython
30 no-host configure.yash 235,968 0 0 0 3,736 0 844 90 osh-native
38 no-host configure.yash 235,173 0 0 0 3,736 0 849 99 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,968 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 344 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-4e2b5db8
dash dash-0ebcf347
osh-cpython osh-65ae7a86
osh-native osh-1dce31bd
osh-native-souffle osh-528462e5
host label host id
no-host no-host-e4839999