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 466 22 21 24.67 1.18
bin-true no-host 682 541 2,311 815 814 3.39 1.20
configure.cpython no-host 14,985 15,051 28,806 15,219 15,350 1.92 1.02
configure.ocaml no-host 3,799 3,721 4,655 3,814 3,819 1.23 1.00
configure.tcc no-host 48 42 202 49 48 4.21 1.03
configure.util-linux no-host 13,928 14,817 31,570 14,337 14,269 2.27 1.03
configure.yash no-host 1,813 1,764 2,457 1,841 1,832 1.36 1.02
hello-world no-host 1 1 56 3 3 37.50 1.90

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,098 23,815 3,186 3,125 9.32 1.25
bin-true no-host 109,364 66,457 769,472 125,228 125,257 7.04 1.15
configure.cpython no-host 2,224,482 2,245,012 6,229,000 2,214,905 2,209,615 2.80 1.00
configure.ocaml no-host 410,614 390,769 646,356 412,644 412,190 1.57 1.00
configure.tcc no-host 6,536 5,506 24,053 6,951 6,937 3.68 1.06
configure.util-linux no-host 2,100,025 2,264,268 5,377,147 1,994,012 1,987,019 2.56 0.95
configure.yash no-host 256,048 244,668 388,515 256,920 257,970 1.52 1.00
hello-world no-host 153 81 3,932 344 340 25.70 2.25

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.6 9.2 8.5 5.21 2.12
bin-true no-host 2.9 1.6 18.2 8.0 7.9 6.32 2.77
configure.cpython no-host 27.4 27.4 27.5 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.4 1.01 1.01
configure.tcc no-host 19.4 19.3 19.1 19.4 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.4 18.2 6.3 6.0 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,219 1 61 14.9 27.3 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,337 2 59 21.2 30.0 2,702,513 45,898 65,711 108,691 1,320,585 1,273,237 32,239 41 131,422 1
configure.ocaml no-host 3,814 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,841 1 2 2.5 24.2 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,527 57,233 277 3 85,226 1
hello-world no-host 3 0 0 0.2 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.9 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,350 1 62 14.9 27.4 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,269 3 60 21.2 30.3 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,819 1 2 2.6 20.4 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,832 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,527 57,231 277 3 85,102 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 17 2 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 466 423 45 22.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.2 osh-native
39 no-host abuild-print-help 21 13 9 8.5 osh-native-souffle
1 no-host bin-true 682 505 208 2.9 bash
9 no-host bin-true 541 414 136 1.6 dash
17 no-host bin-true 2,311 1,538 1,035 18.2 osh-cpython
25 no-host bin-true 815 570 261 8.0 osh-native
33 no-host bin-true 814 575 255 7.9 osh-native-souffle
2 no-host configure.cpython 14,985 9,031 6,359 27.4 bash
10 no-host configure.cpython 15,051 9,142 6,334 27.4 dash
18 no-host configure.cpython 28,806 18,026 12,624 27.5 osh-cpython
26 no-host configure.cpython 15,219 9,024 6,463 27.3 osh-native
34 no-host configure.cpython 15,350 9,069 6,392 27.4 osh-native-souffle
4 no-host configure.ocaml 3,799 1,596 1,240 20.4 bash
12 no-host configure.ocaml 3,721 1,620 1,116 20.6 dash
20 no-host configure.ocaml 4,655 2,305 1,561 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,630 1,221 20.6 osh-native
36 no-host configure.ocaml 3,819 1,617 1,238 20.4 osh-native-souffle
5 no-host configure.tcc 48 31 17 19.4 bash
13 no-host configure.tcc 42 32 10 19.3 dash
21 no-host configure.tcc 202 161 44 19.1 osh-cpython
29 no-host configure.tcc 49 31 19 19.4 osh-native
37 no-host configure.tcc 48 29 20 19.4 osh-native-souffle
3 no-host configure.util-linux 13,928 8,824 5,577 30.1 bash
11 no-host configure.util-linux 14,817 9,073 6,233 30.0 dash
19 no-host configure.util-linux 31,570 21,142 11,502 30.1 osh-cpython
27 no-host configure.util-linux 14,337 8,707 5,823 30.0 osh-native
35 no-host configure.util-linux 14,269 8,561 5,897 30.3 osh-native-souffle
6 no-host configure.yash 1,813 1,101 722 24.2 bash
14 no-host configure.yash 1,764 1,000 765 24.4 dash
22 no-host configure.yash 2,457 1,484 1,014 24.4 osh-cpython
30 no-host configure.yash 1,841 1,084 760 24.2 osh-native
38 no-host configure.yash 1,832 1,084 751 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 28 27 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 6.0 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,098 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,815 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,125 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 109,364 0 0 0 8 0 1,985 34 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,983 64 dash
17 no-host bin-true 769,472 0 0 0 8 0 1,993 288 osh-cpython
25 no-host bin-true 125,228 0 0 0 16 0 1,991 82 osh-native
33 no-host bin-true 125,257 0 0 0 16 0 1,983 53 osh-native-souffle
2 no-host configure.cpython 2,224,482 0 0 0 32,928 0 14,467 1,030 bash
10 no-host configure.cpython 2,245,012 0 0 0 32,992 0 14,568 926 dash
18 no-host configure.cpython 6,229,000 0 0 0 27,512 0 13,215 1,195 osh-cpython
26 no-host configure.cpython 2,214,905 0 0 0 27,520 0 13,217 964 osh-native
34 no-host configure.cpython 2,209,615 0 0 0 27,520 0 13,162 1,096 osh-native-souffle
4 no-host configure.ocaml 410,614 0 0 0 5,120 0 1,956 159 bash
12 no-host configure.ocaml 390,769 0 0 0 5,112 0 1,880 145 dash
20 no-host configure.ocaml 646,356 0 0 0 5,112 0 1,856 166 osh-cpython
28 no-host configure.ocaml 412,644 0 0 0 5,120 0 1,924 173 osh-native
36 no-host configure.ocaml 412,190 0 0 0 5,120 0 1,930 151 osh-native-souffle
5 no-host configure.tcc 6,536 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,506 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,053 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,951 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,937 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,100,025 0 0 0 42,400 0 18,589 982 bash
11 no-host configure.util-linux 2,264,268 0 0 0 42,584 0 17,462 1,159 dash
19 no-host configure.util-linux 5,377,147 15 0 0 39,144 0 17,015 1,235 osh-cpython
27 no-host configure.util-linux 1,994,012 0 0 0 39,128 0 16,985 1,014 osh-native
35 no-host configure.util-linux 1,987,019 0 0 0 39,136 0 16,989 967 osh-native-souffle
6 no-host configure.yash 256,048 0 0 0 4,120 0 870 63 bash
14 no-host configure.yash 244,668 0 0 0 3,720 0 869 95 dash
22 no-host configure.yash 388,515 0 0 0 3,728 0 850 102 osh-cpython
30 no-host configure.yash 256,920 0 0 0 3,736 0 853 72 osh-native
38 no-host configure.yash 257,970 0 0 0 3,736 0 853 79 osh-native-souffle
0 no-host hello-world 153 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,932 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-320084a3
dash dash-0ebcf347
osh-cpython osh-c37d4602
osh-native osh-7048e48f
osh-native-souffle osh-42e947d3
host label host id
no-host no-host-556df3ee