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 491 22 20 25.23 1.14
bin-true no-host 677 552 2,283 819 816 3.37 1.21
configure.cpython no-host 15,308 15,080 29,639 15,328 15,497 1.94 1.00
configure.ocaml no-host 3,847 3,803 4,712 3,812 3,813 1.23 0.99
configure.tcc no-host 48 43 204 48 49 4.26 1.01
configure.util-linux no-host 14,034 14,878 32,063 14,365 14,375 2.28 1.02
configure.yash no-host 1,850 1,811 2,504 1,819 1,823 1.35 0.98
hello-world no-host 2 1 58 3 3 37.93 1.89

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,559 1,136 23,663 3,191 3,091 9.25 1.25
bin-true no-host 105,401 65,452 770,182 125,184 127,317 7.31 1.19
configure.cpython no-host 2,220,232 2,235,502 6,237,710 2,219,910 2,209,501 2.81 1.00
configure.ocaml no-host 410,415 391,189 648,292 413,202 412,707 1.58 1.01
configure.tcc no-host 6,531 5,487 24,103 6,979 6,907 3.69 1.07
configure.util-linux no-host 2,102,882 2,259,422 5,400,627 1,999,823 1,989,797 2.57 0.95
configure.yash no-host 256,323 245,109 387,747 258,151 257,011 1.51 1.01
hello-world no-host 151 84 3,945 342 336 26.13 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.5 3.5 22.4 9.0 8.5 5.03 2.03
bin-true no-host 2.9 1.4 18.4 8.3 7.5 6.37 2.86
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.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.1 19.4 19.1 19.4 1.01 0.99
configure.util-linux no-host 30.3 30.3 30.3 30.0 30.0 1.00 0.99
configure.yash no-host 24.4 24.4 24.4 24.4 24.5 1.00 1.00
hello-world no-host 2.8 1.6 18.1 6.4 5.9 6.58 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 819 1 2 2.6 8.3 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,328 1 62 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,365 3 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,812 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.1 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.5 24.4 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.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.5 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,497 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,375 3 60 21.2 30.0 2,702,513 53,693 65,629 108,693 1,320,585 1,273,235 32,239 41 131,258 1
configure.ocaml no-host 3,813 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 49 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,823 1 2 2.5 24.5 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 20 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 12 8 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 491 438 56 22.4 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
39 no-host abuild-print-help 20 13 8 8.5 osh-native-souffle
1 no-host bin-true 677 508 199 2.9 bash
9 no-host bin-true 552 419 143 1.4 dash
17 no-host bin-true 2,283 1,496 1,041 18.4 osh-cpython
25 no-host bin-true 819 559 271 8.3 osh-native
33 no-host bin-true 816 595 235 7.5 osh-native-souffle
2 no-host configure.cpython 15,308 9,247 6,463 27.4 bash
10 no-host configure.cpython 15,080 9,226 6,269 27.4 dash
18 no-host configure.cpython 29,639 18,086 13,471 27.5 osh-cpython
26 no-host configure.cpython 15,328 8,917 6,678 27.3 osh-native
34 no-host configure.cpython 15,497 8,937 6,676 27.4 osh-native-souffle
4 no-host configure.ocaml 3,847 1,542 1,337 20.4 bash
12 no-host configure.ocaml 3,803 1,651 1,171 20.4 dash
20 no-host configure.ocaml 4,712 2,284 1,643 20.6 osh-cpython
28 no-host configure.ocaml 3,812 1,617 1,224 20.6 osh-native
36 no-host configure.ocaml 3,813 1,575 1,275 20.6 osh-native-souffle
5 no-host configure.tcc 48 24 25 19.3 bash
13 no-host configure.tcc 43 29 14 19.1 dash
21 no-host configure.tcc 204 129 79 19.4 osh-cpython
29 no-host configure.tcc 48 22 27 19.1 osh-native
37 no-host configure.tcc 49 30 19 19.4 osh-native-souffle
3 no-host configure.util-linux 14,034 8,915 5,596 30.3 bash
11 no-host configure.util-linux 14,878 9,174 6,187 30.3 dash
19 no-host configure.util-linux 32,063 21,211 11,935 30.3 osh-cpython
27 no-host configure.util-linux 14,365 8,697 5,859 30.0 osh-native
35 no-host configure.util-linux 14,375 8,710 5,852 30.0 osh-native-souffle
6 no-host configure.yash 1,850 1,125 733 24.4 bash
14 no-host configure.yash 1,811 1,085 729 24.4 dash
22 no-host configure.yash 2,504 1,528 1,019 24.4 osh-cpython
30 no-host configure.yash 1,819 972 850 24.4 osh-native
38 no-host configure.yash 1,823 1,110 715 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 58 49 8 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.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,559 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,663 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,401 0 0 0 8 0 1,986 72 bash
9 no-host bin-true 65,452 0 0 0 8 0 1,989 157 dash
17 no-host bin-true 770,182 0 0 0 8 0 1,995 115 osh-cpython
25 no-host bin-true 125,184 0 0 0 16 0 1,988 103 osh-native
33 no-host bin-true 127,317 0 0 0 16 0 1,995 98 osh-native-souffle
2 no-host configure.cpython 2,220,232 0 0 0 32,928 0 14,537 1,045 bash
10 no-host configure.cpython 2,235,502 0 0 0 32,992 0 14,581 1,023 dash
18 no-host configure.cpython 6,237,710 0 0 0 27,512 0 13,191 1,257 osh-cpython
26 no-host configure.cpython 2,219,910 0 0 0 27,520 0 13,201 1,074 osh-native
34 no-host configure.cpython 2,209,501 0 0 0 27,520 0 13,272 942 osh-native-souffle
4 no-host configure.ocaml 410,415 0 0 0 5,120 0 1,949 195 bash
12 no-host configure.ocaml 391,189 0 0 0 5,112 0 1,923 155 dash
20 no-host configure.ocaml 648,292 0 0 0 5,112 0 1,863 167 osh-cpython
28 no-host configure.ocaml 413,202 0 0 0 5,120 0 1,925 171 osh-native
36 no-host configure.ocaml 412,707 0 0 0 5,120 0 1,931 166 osh-native-souffle
5 no-host configure.tcc 6,531 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,103 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,907 0 0 0 104 0 47 12 osh-native-souffle
3 no-host configure.util-linux 2,102,882 0 0 0 42,400 0 18,563 987 bash
11 no-host configure.util-linux 2,259,422 0 0 0 42,584 0 17,579 1,027 dash
19 no-host configure.util-linux 5,400,627 8 0 0 39,144 0 16,970 1,179 osh-cpython
27 no-host configure.util-linux 1,999,823 2 0 0 39,128 0 16,981 932 osh-native
35 no-host configure.util-linux 1,989,797 0 0 0 39,136 0 17,001 963 osh-native-souffle
6 no-host configure.yash 256,323 0 0 0 4,120 0 868 150 bash
14 no-host configure.yash 245,109 0 0 0 3,720 0 862 70 dash
22 no-host configure.yash 387,747 0 0 0 3,728 0 854 105 osh-cpython
30 no-host configure.yash 258,151 0 0 0 3,736 0 848 92 osh-native
38 no-host configure.yash 257,011 0 0 0 3,736 0 852 87 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-97d9ea78
dash dash-0ebcf347
osh-cpython osh-75719a0d
osh-native osh-c63307dd
osh-native-souffle osh-92d2cb99
host label host id
no-host no-host-556df3ee