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 473 22 21 25.12 1.17
bin-true no-host 667 546 2,281 803 804 3.42 1.20
configure.cpython no-host 14,992 15,052 28,730 15,511 15,581 1.92 1.03
configure.ocaml no-host 3,838 3,743 4,693 3,814 3,847 1.22 0.99
configure.tcc no-host 48 42 204 49 50 4.25 1.02
configure.util-linux no-host 14,074 14,831 31,532 14,330 14,571 2.24 1.02
configure.yash no-host 1,842 1,762 2,478 1,820 1,893 1.35 0.99
hello-world no-host 2 1 58 3 3 37.26 1.80

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,509 1,086 23,700 3,208 3,095 9.45 1.28
bin-true no-host 104,402 65,418 771,313 126,350 125,261 7.39 1.21
configure.cpython no-host 2,221,974 2,239,342 6,221,547 2,218,557 2,217,780 2.80 1.00
configure.ocaml no-host 410,786 390,833 646,195 412,589 411,739 1.57 1.00
configure.tcc no-host 6,557 5,475 24,063 6,990 6,904 3.67 1.07
configure.util-linux no-host 2,098,344 2,262,177 5,397,904 1,999,564 1,986,714 2.57 0.95
configure.yash no-host 255,505 244,581 388,882 257,757 258,139 1.52 1.01
hello-world no-host 154 81 3,940 342 337 25.58 2.22

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.7 5.25 2.12
bin-true no-host 2.9 1.4 18.2 8.0 7.7 6.32 2.77
configure.cpython no-host 27.4 27.3 27.5 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 20.4 1.00 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.1 24.4 1.01 0.99
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 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.2 6.3 3,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 803 1 2 2.6 8.0 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,511 1 62 14.9 27.5 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,330 3 60 21.2 30.1 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,814 1 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,820 1 2 2.5 24.1 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.7 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,581 2 62 14.9 27.5 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,571 3 60 21.2 30.1 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 3,847 1 2 2.6 20.4 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,893 1 2 2.5 24.4 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 7 4.3 bash
15 no-host abuild-print-help 9 9 0 3.5 dash
23 no-host abuild-print-help 473 415 60 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 9.2 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 667 498 200 2.9 bash
9 no-host bin-true 546 439 117 1.4 dash
17 no-host bin-true 2,281 1,481 1,055 18.2 osh-cpython
25 no-host bin-true 803 535 282 8.0 osh-native
33 no-host bin-true 804 585 234 7.7 osh-native-souffle
2 no-host configure.cpython 14,992 9,084 6,307 27.4 bash
10 no-host configure.cpython 15,052 9,003 6,462 27.3 dash
18 no-host configure.cpython 28,730 17,439 13,131 27.5 osh-cpython
26 no-host configure.cpython 15,511 9,184 6,556 27.5 osh-native
34 no-host configure.cpython 15,581 9,132 6,531 27.5 osh-native-souffle
4 no-host configure.ocaml 3,838 1,599 1,266 20.4 bash
12 no-host configure.ocaml 3,743 1,486 1,275 20.6 dash
20 no-host configure.ocaml 4,693 2,177 1,702 20.4 osh-cpython
28 no-host configure.ocaml 3,814 1,625 1,226 20.6 osh-native
36 no-host configure.ocaml 3,847 1,658 1,225 20.4 osh-native-souffle
5 no-host configure.tcc 48 25 23 19.3 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 204 152 56 19.3 osh-cpython
29 no-host configure.tcc 49 19 30 19.3 osh-native
37 no-host configure.tcc 50 12 38 19.3 osh-native-souffle
3 no-host configure.util-linux 14,074 8,820 5,728 30.3 bash
11 no-host configure.util-linux 14,831 9,206 6,119 30.1 dash
19 no-host configure.util-linux 31,532 21,100 11,512 30.3 osh-cpython
27 no-host configure.util-linux 14,330 8,674 5,860 30.1 osh-native
35 no-host configure.util-linux 14,571 8,708 6,061 30.1 osh-native-souffle
6 no-host configure.yash 1,842 1,036 813 24.2 bash
14 no-host configure.yash 1,762 998 767 24.2 dash
22 no-host configure.yash 2,478 1,536 983 24.4 osh-cpython
30 no-host configure.yash 1,820 1,080 744 24.1 osh-native
38 no-host configure.yash 1,893 998 899 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 29 28 18.2 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,509 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,700 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,208 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,095 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,402 0 0 0 8 0 1,994 87 bash
9 no-host bin-true 65,418 0 0 0 8 0 1,983 50 dash
17 no-host bin-true 771,313 0 0 0 8 0 1,992 157 osh-cpython
25 no-host bin-true 126,350 0 0 0 16 0 1,989 55 osh-native
33 no-host bin-true 125,261 0 0 0 16 0 1,993 51 osh-native-souffle
2 no-host configure.cpython 2,221,974 0 0 0 32,928 0 14,540 1,109 bash
10 no-host configure.cpython 2,239,342 0 0 0 32,992 0 14,604 960 dash
18 no-host configure.cpython 6,221,547 1 0 0 27,512 0 13,225 1,123 osh-cpython
26 no-host configure.cpython 2,218,557 0 0 0 27,520 0 13,286 941 osh-native
34 no-host configure.cpython 2,217,780 0 0 0 27,520 0 13,184 983 osh-native-souffle
4 no-host configure.ocaml 410,786 0 0 0 5,120 0 1,962 141 bash
12 no-host configure.ocaml 390,833 0 0 0 5,112 0 1,862 153 dash
20 no-host configure.ocaml 646,195 0 0 0 5,112 0 1,862 156 osh-cpython
28 no-host configure.ocaml 412,589 0 0 0 5,120 0 1,927 192 osh-native
36 no-host configure.ocaml 411,739 0 0 0 5,120 0 1,937 146 osh-native-souffle
5 no-host configure.tcc 6,557 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,063 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,990 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,098,344 0 0 0 42,408 0 18,561 916 bash
11 no-host configure.util-linux 2,262,177 1 0 0 42,592 0 17,467 1,014 dash
19 no-host configure.util-linux 5,397,904 1 0 0 39,112 0 16,960 1,330 osh-cpython
27 no-host configure.util-linux 1,999,564 0 0 0 39,128 0 16,975 955 osh-native
35 no-host configure.util-linux 1,986,714 0 0 0 39,136 0 17,005 884 osh-native-souffle
6 no-host configure.yash 255,505 0 0 0 4,120 0 869 76 bash
14 no-host configure.yash 244,581 0 0 0 3,720 0 864 86 dash
22 no-host configure.yash 388,882 0 0 0 3,728 0 851 93 osh-cpython
30 no-host configure.yash 257,757 0 0 0 3,736 0 847 82 osh-native
38 no-host configure.yash 258,139 0 0 0 3,736 0 849 73 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,940 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-33521be7
dash dash-0ebcf347
osh-cpython osh-01fad2da
osh-native osh-d2c30635
osh-native-souffle osh-1cdfd2ef
host label host id
no-host no-host-556df3ee