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 477 22 21 24.74 1.16
bin-true no-host 682 555 2,330 818 822 3.42 1.20
configure.cpython no-host 15,435 15,476 29,572 15,885 15,808 1.92 1.03
configure.ocaml no-host 3,904 3,777 4,787 3,849 3,885 1.23 0.99
configure.tcc no-host 50 42 204 49 49 4.12 0.99
configure.util-linux no-host 14,436 15,158 31,982 14,733 14,687 2.22 1.02
configure.yash no-host 1,882 1,816 2,531 1,864 1,873 1.34 0.99
hello-world no-host 2 1 58 3 3 38.34 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,509 1,102 23,668 3,221 3,122 9.43 1.28
bin-true no-host 103,381 66,476 773,745 125,293 127,215 7.48 1.21
configure.cpython no-host 2,224,953 2,245,610 6,215,319 2,218,491 2,203,801 2.79 1.00
configure.ocaml no-host 410,345 391,265 647,370 412,581 412,513 1.58 1.01
configure.tcc no-host 6,562 5,480 24,066 6,956 6,936 3.67 1.06
configure.util-linux no-host 2,101,264 2,260,448 5,385,514 1,998,314 1,995,925 2.56 0.95
configure.yash no-host 256,585 244,708 388,730 257,715 257,117 1.52 1.00
hello-world no-host 152 85 3,941 344 335 25.93 2.26

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.7 9.0 8.7 5.25 2.09
bin-true no-host 3.0 1.3 18.4 8.0 7.6 6.09 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.0 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.6 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,885 2 66 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,733 3 65 21.2 30.0 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,849 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,864 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 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,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 822 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,808 1 63 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,687 3 62 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,885 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,873 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 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,436 57,322 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 3 4.3 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 477 405 76 22.7 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 21 13 8 8.7 osh-native-souffle
1 no-host bin-true 682 510 203 3.0 bash
9 no-host bin-true 555 426 137 1.3 dash
17 no-host bin-true 2,330 1,527 1,070 18.4 osh-cpython
25 no-host bin-true 818 577 253 8.0 osh-native
33 no-host bin-true 822 580 258 7.6 osh-native-souffle
2 no-host configure.cpython 15,435 9,212 6,612 27.4 bash
10 no-host configure.cpython 15,476 9,560 6,336 27.4 dash
18 no-host configure.cpython 29,572 17,870 13,625 27.4 osh-cpython
26 no-host configure.cpython 15,885 9,165 6,985 27.4 osh-native
34 no-host configure.cpython 15,808 9,028 6,918 27.4 osh-native-souffle
4 no-host configure.ocaml 3,904 1,659 1,282 20.6 bash
12 no-host configure.ocaml 3,777 1,567 1,227 20.6 dash
20 no-host configure.ocaml 4,787 2,246 1,758 20.6 osh-cpython
28 no-host configure.ocaml 3,849 1,627 1,259 20.6 osh-native
36 no-host configure.ocaml 3,885 1,641 1,281 20.6 osh-native-souffle
5 no-host configure.tcc 50 30 20 19.3 bash
13 no-host configure.tcc 42 27 16 19.3 dash
21 no-host configure.tcc 204 149 58 19.4 osh-cpython
29 no-host configure.tcc 49 35 15 19.3 osh-native
37 no-host configure.tcc 49 45 5 19.3 osh-native-souffle
3 no-host configure.util-linux 14,436 8,949 5,958 30.1 bash
11 no-host configure.util-linux 15,158 9,330 6,316 30.1 dash
19 no-host configure.util-linux 31,982 21,330 11,768 30.0 osh-cpython
27 no-host configure.util-linux 14,733 8,763 6,158 30.0 osh-native
35 no-host configure.util-linux 14,687 8,778 6,093 30.3 osh-native-souffle
6 no-host configure.yash 1,882 1,084 807 24.2 bash
14 no-host configure.yash 1,816 1,124 695 24.2 dash
22 no-host configure.yash 2,531 1,614 960 24.4 osh-cpython
30 no-host configure.yash 1,864 1,102 766 24.2 osh-native
38 no-host configure.yash 1,873 1,079 798 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 58 35 23 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,668 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,122 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 103,381 0 0 0 8 0 1,991 58 bash
9 no-host bin-true 66,476 0 0 0 8 0 1,984 38 dash
17 no-host bin-true 773,745 0 0 0 8 0 2,001 99 osh-cpython
25 no-host bin-true 125,293 0 0 0 16 0 1,988 110 osh-native
33 no-host bin-true 127,215 0 0 0 16 0 1,992 46 osh-native-souffle
2 no-host configure.cpython 2,224,953 1 0 0 32,928 0 14,441 1,024 bash
10 no-host configure.cpython 2,245,610 0 0 0 32,992 0 14,656 965 dash
18 no-host configure.cpython 6,215,319 0 0 0 27,512 0 13,153 1,204 osh-cpython
26 no-host configure.cpython 2,218,491 0 0 0 27,520 0 13,264 1,030 osh-native
34 no-host configure.cpython 2,203,801 0 0 0 27,520 0 13,199 979 osh-native-souffle
4 no-host configure.ocaml 410,345 0 0 0 5,120 0 1,949 148 bash
12 no-host configure.ocaml 391,265 0 0 0 5,112 0 1,884 159 dash
20 no-host configure.ocaml 647,370 0 0 0 5,112 0 1,856 201 osh-cpython
28 no-host configure.ocaml 412,581 0 0 0 5,120 0 1,916 163 osh-native
36 no-host configure.ocaml 412,513 0 0 0 5,120 0 1,931 171 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,066 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,936 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,101,264 0 0 0 42,400 0 18,621 1,050 bash
11 no-host configure.util-linux 2,260,448 2 0 0 42,592 0 17,447 1,115 dash
19 no-host configure.util-linux 5,385,514 17 0 0 39,112 0 17,028 1,162 osh-cpython
27 no-host configure.util-linux 1,998,314 0 0 0 39,120 0 16,992 951 osh-native
35 no-host configure.util-linux 1,995,925 0 0 0 39,136 0 16,981 948 osh-native-souffle
6 no-host configure.yash 256,585 0 0 0 4,120 0 871 196 bash
14 no-host configure.yash 244,708 0 0 0 3,720 0 867 91 dash
22 no-host configure.yash 388,730 0 0 0 3,728 0 848 93 osh-cpython
30 no-host configure.yash 257,715 0 0 0 3,736 0 849 75 osh-native
38 no-host configure.yash 257,117 0 0 0 3,736 0 849 75 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,941 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-84d5b90e
dash dash-0ebcf347
osh-cpython osh-49597190
osh-native osh-2b9c1c3a
osh-native-souffle osh-32e27857
host label host id
no-host no-host-556df3ee