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 20 9 471 23 21 24.14 1.15
bin-true no-host 671 550 2,294 813 810 3.42 1.21
configure.cpython no-host 15,044 15,070 28,934 15,265 15,362 1.92 1.01
configure.ocaml no-host 3,797 3,746 4,653 3,818 3,808 1.23 1.01
configure.tcc no-host 48 42 205 49 48 4.24 1.02
configure.util-linux no-host 14,067 14,905 31,514 14,407 14,341 2.24 1.02
configure.yash no-host 1,847 1,776 2,510 1,831 1,822 1.36 0.99
hello-world no-host 2 1 56 3 3 34.83 1.72

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,539 1,105 23,771 3,171 3,095 9.36 1.25
bin-true no-host 106,339 65,417 765,496 126,281 126,255 7.20 1.19
configure.cpython no-host 2,219,885 2,243,963 6,227,448 2,223,174 2,204,000 2.81 1.00
configure.ocaml no-host 410,641 391,148 647,064 412,622 412,290 1.58 1.00
configure.tcc no-host 6,579 5,460 24,016 6,978 6,920 3.65 1.06
configure.util-linux no-host 2,101,936 2,264,384 5,368,697 2,002,253 1,987,637 2.55 0.95
configure.yash no-host 256,186 244,666 388,050 257,729 257,359 1.51 1.01
hello-world no-host 152 82 3,924 338 336 25.82 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.5 3.5 22.4 9.0 8.7 5.03 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.5 27.3 27.3 27.5 27.5 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.3 19.1 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.0 30.3 30.3 30.0 30.1 1.01 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.4 18.2 6.2 5.8 6.32 2.14

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 813 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,265 1 63 14.9 27.5 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,407 3 62 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,818 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.3 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,831 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 23 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.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,362 1 60 14.9 27.5 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,341 3 59 21.2 30.1 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,808 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,822 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 20 17 3 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 471 422 52 22.4 osh-cpython
31 no-host abuild-print-help 23 15 8 9.0 osh-native
39 no-host abuild-print-help 21 20 2 8.7 osh-native-souffle
1 no-host bin-true 671 494 209 2.9 bash
9 no-host bin-true 550 424 136 1.4 dash
17 no-host bin-true 2,294 1,506 1,047 18.4 osh-cpython
25 no-host bin-true 813 585 242 8.0 osh-native
33 no-host bin-true 810 568 256 7.6 osh-native-souffle
2 no-host configure.cpython 15,044 9,067 6,384 27.5 bash
10 no-host configure.cpython 15,070 9,044 6,452 27.3 dash
18 no-host configure.cpython 28,934 17,644 13,148 27.3 osh-cpython
26 no-host configure.cpython 15,265 8,994 6,544 27.5 osh-native
34 no-host configure.cpython 15,362 8,949 6,557 27.5 osh-native-souffle
4 no-host configure.ocaml 3,797 1,595 1,238 20.6 bash
12 no-host configure.ocaml 3,746 1,570 1,188 20.6 dash
20 no-host configure.ocaml 4,653 2,244 1,616 20.6 osh-cpython
28 no-host configure.ocaml 3,818 1,591 1,262 20.6 osh-native
36 no-host configure.ocaml 3,808 1,651 1,195 20.4 osh-native-souffle
5 no-host configure.tcc 48 34 15 19.4 bash
13 no-host configure.tcc 42 17 24 19.3 dash
21 no-host configure.tcc 205 125 84 19.1 osh-cpython
29 no-host configure.tcc 49 29 21 19.3 osh-native
37 no-host configure.tcc 48 26 22 19.3 osh-native-souffle
3 no-host configure.util-linux 14,067 8,741 5,809 30.0 bash
11 no-host configure.util-linux 14,905 9,288 6,127 30.3 dash
19 no-host configure.util-linux 31,514 20,953 11,632 30.3 osh-cpython
27 no-host configure.util-linux 14,407 8,659 5,967 30.0 osh-native
35 no-host configure.util-linux 14,341 8,645 5,890 30.1 osh-native-souffle
6 no-host configure.yash 1,847 1,102 747 24.2 bash
14 no-host configure.yash 1,776 998 782 24.2 dash
22 no-host configure.yash 2,510 1,555 994 24.4 osh-cpython
30 no-host configure.yash 1,831 1,007 828 24.2 osh-native
38 no-host configure.yash 1,822 1,037 789 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.4 dash
16 no-host hello-world 56 32 24 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 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,539 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,771 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,095 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,339 0 0 0 8 0 1,990 43 bash
9 no-host bin-true 65,417 0 0 0 8 0 1,988 132 dash
17 no-host bin-true 765,496 0 0 0 8 0 2,000 161 osh-cpython
25 no-host bin-true 126,281 0 0 0 16 0 1,995 175 osh-native
33 no-host bin-true 126,255 0 0 0 16 0 1,990 53 osh-native-souffle
2 no-host configure.cpython 2,219,885 0 0 0 32,928 0 14,500 971 bash
10 no-host configure.cpython 2,243,963 0 0 0 32,992 0 14,638 957 dash
18 no-host configure.cpython 6,227,448 0 0 0 27,512 0 13,226 1,093 osh-cpython
26 no-host configure.cpython 2,223,174 0 0 0 27,520 0 13,180 893 osh-native
34 no-host configure.cpython 2,204,000 0 0 0 27,520 0 13,232 1,002 osh-native-souffle
4 no-host configure.ocaml 410,641 0 0 0 5,120 0 1,944 150 bash
12 no-host configure.ocaml 391,148 0 0 0 5,112 0 1,896 158 dash
20 no-host configure.ocaml 647,064 1 0 0 5,112 0 1,859 170 osh-cpython
28 no-host configure.ocaml 412,622 0 0 0 5,120 0 1,931 150 osh-native
36 no-host configure.ocaml 412,290 0 0 0 5,120 0 1,931 152 osh-native-souffle
5 no-host configure.tcc 6,579 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,016 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,920 0 0 0 104 0 46 2 osh-native-souffle
3 no-host configure.util-linux 2,101,936 1 0 0 42,400 0 18,694 1,123 bash
11 no-host configure.util-linux 2,264,384 0 0 0 42,592 0 17,387 999 dash
19 no-host configure.util-linux 5,368,697 12 0 0 39,112 0 16,966 1,206 osh-cpython
27 no-host configure.util-linux 2,002,253 1 0 0 39,120 0 16,910 952 osh-native
35 no-host configure.util-linux 1,987,637 2 0 0 39,128 0 16,852 921 osh-native-souffle
6 no-host configure.yash 256,186 0 0 0 4,120 0 881 70 bash
14 no-host configure.yash 244,666 0 0 0 3,720 0 867 84 dash
22 no-host configure.yash 388,050 0 0 0 3,728 0 852 101 osh-cpython
30 no-host configure.yash 257,729 0 0 0 3,736 0 845 78 osh-native
38 no-host configure.yash 257,359 0 0 0 3,736 0 849 85 osh-native-souffle
0 no-host hello-world 152 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,924 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 338 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-fac7f6fd
dash dash-0ebcf347
osh-cpython osh-98dad225
osh-native osh-304ca996
osh-native-souffle osh-d931ee67
host label host id
no-host no-host-556df3ee