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 475 22 21 24.91 1.15
bin-true no-host 686 537 2,281 816 810 3.33 1.19
configure.cpython no-host 15,000 15,033 28,713 15,148 15,276 1.91 1.01
configure.ocaml no-host 3,785 3,732 4,652 3,808 3,805 1.23 1.01
configure.tcc no-host 48 41 202 48 48 4.22 1.01
configure.util-linux no-host 13,937 14,791 31,387 14,306 14,262 2.25 1.03
configure.yash no-host 1,816 1,766 2,458 1,816 1,814 1.35 1.00
hello-world no-host 2 1 57 3 3 37.08 1.84

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,532 1,103 23,742 3,173 3,100 9.38 1.25
bin-true no-host 105,300 65,492 765,492 128,226 123,247 7.27 1.22
configure.cpython no-host 2,224,921 2,239,913 6,232,336 2,216,949 2,208,780 2.80 1.00
configure.ocaml no-host 410,760 391,378 646,844 412,750 412,472 1.57 1.00
configure.tcc no-host 6,562 5,489 24,016 6,977 6,916 3.66 1.06
configure.util-linux no-host 2,101,631 2,257,381 5,369,392 2,004,761 1,991,838 2.55 0.95
configure.yash no-host 256,676 244,639 387,532 258,049 257,599 1.51 1.01
hello-world no-host 150 82 3,929 345 337 26.19 2.30

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.4 9.0 8.7 5.19 2.09
bin-true no-host 3.0 1.6 18.4 8.0 7.9 6.09 2.65
configure.cpython no-host 27.1 27.3 27.4 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.4 30.1 30.1 30.1 30.0 0.99 0.99
configure.yash no-host 24.4 24.4 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.1 6.4 5.8 6.56 2.33

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 816 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,148 1 63 14.9 27.4 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,306 3 60 21.2 30.1 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,808 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 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,816 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.0 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 5.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 810 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,276 1 60 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,262 3 59 21.2 30.0 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,805 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.3 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,814 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.7 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 13 6 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 475 433 46 22.4 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 686 478 239 3.0 bash
9 no-host bin-true 537 410 138 1.6 dash
17 no-host bin-true 2,281 1,520 1,017 18.4 osh-cpython
25 no-host bin-true 816 573 257 8.0 osh-native
33 no-host bin-true 810 560 263 7.9 osh-native-souffle
2 no-host configure.cpython 15,000 8,977 6,425 27.1 bash
10 no-host configure.cpython 15,033 8,893 6,564 27.3 dash
18 no-host configure.cpython 28,713 17,407 13,167 27.4 osh-cpython
26 no-host configure.cpython 15,148 8,887 6,529 27.4 osh-native
34 no-host configure.cpython 15,276 8,905 6,506 27.4 osh-native-souffle
4 no-host configure.ocaml 3,785 1,616 1,210 20.6 bash
12 no-host configure.ocaml 3,732 1,570 1,180 20.6 dash
20 no-host configure.ocaml 4,652 2,295 1,566 20.6 osh-cpython
28 no-host configure.ocaml 3,808 1,661 1,186 20.6 osh-native
36 no-host configure.ocaml 3,805 1,630 1,212 20.4 osh-native-souffle
5 no-host configure.tcc 48 21 27 19.3 bash
13 no-host configure.tcc 41 22 20 19.3 dash
21 no-host configure.tcc 202 153 53 19.3 osh-cpython
29 no-host configure.tcc 48 40 9 19.3 osh-native
37 no-host configure.tcc 48 34 14 19.3 osh-native-souffle
3 no-host configure.util-linux 13,937 8,887 5,521 30.4 bash
11 no-host configure.util-linux 14,791 9,088 6,197 30.1 dash
19 no-host configure.util-linux 31,387 20,894 11,568 30.1 osh-cpython
27 no-host configure.util-linux 14,306 8,554 5,952 30.1 osh-native
35 no-host configure.util-linux 14,262 8,627 5,832 30.0 osh-native-souffle
6 no-host configure.yash 1,816 1,002 822 24.4 bash
14 no-host configure.yash 1,766 1,021 747 24.4 dash
22 no-host configure.yash 2,458 1,518 981 24.2 osh-cpython
30 no-host configure.yash 1,816 1,064 757 24.2 osh-native
38 no-host configure.yash 1,814 1,053 766 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 16 41 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 0 3 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,532 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 23,742 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 105,300 0 0 0 8 0 1,993 178 bash
9 no-host bin-true 65,492 0 0 0 8 0 1,980 52 dash
17 no-host bin-true 765,492 0 0 0 8 0 1,997 195 osh-cpython
25 no-host bin-true 128,226 0 0 0 16 0 1,991 58 osh-native
33 no-host bin-true 123,247 0 0 0 16 0 1,992 107 osh-native-souffle
2 no-host configure.cpython 2,224,921 0 0 0 32,928 0 14,488 1,121 bash
10 no-host configure.cpython 2,239,913 0 0 0 32,992 0 14,626 1,018 dash
18 no-host configure.cpython 6,232,336 0 0 0 27,512 0 13,273 1,061 osh-cpython
26 no-host configure.cpython 2,216,949 0 0 0 27,520 0 13,188 983 osh-native
34 no-host configure.cpython 2,208,780 2 0 0 27,520 0 13,197 1,035 osh-native-souffle
4 no-host configure.ocaml 410,760 0 0 0 5,120 0 1,947 164 bash
12 no-host configure.ocaml 391,378 0 0 0 5,112 0 1,910 279 dash
20 no-host configure.ocaml 646,844 0 0 0 5,112 0 1,853 197 osh-cpython
28 no-host configure.ocaml 412,750 0 0 0 5,120 0 1,926 192 osh-native
36 no-host configure.ocaml 412,472 0 0 0 5,120 0 1,934 183 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,016 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,916 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,101,631 1 0 0 42,400 0 18,695 1,009 bash
11 no-host configure.util-linux 2,257,381 0 0 0 42,584 0 17,481 1,028 dash
19 no-host configure.util-linux 5,369,392 19 0 0 39,128 0 16,926 1,181 osh-cpython
27 no-host configure.util-linux 2,004,761 0 0 0 39,128 0 16,962 1,014 osh-native
35 no-host configure.util-linux 1,991,838 1 0 0 39,136 0 16,981 927 osh-native-souffle
6 no-host configure.yash 256,676 0 0 0 4,120 0 864 87 bash
14 no-host configure.yash 244,639 0 0 0 3,720 0 868 94 dash
22 no-host configure.yash 387,532 0 0 0 3,728 0 851 103 osh-cpython
30 no-host configure.yash 258,049 0 0 0 3,736 0 851 74 osh-native
38 no-host configure.yash 257,599 0 0 0 3,736 0 851 63 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,929 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 345 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-e8562fef
dash dash-0ebcf347
osh-cpython osh-40b347cd
osh-native osh-31b03a08
osh-native-souffle osh-6ceed163
host label host id
no-host no-host-556df3ee