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 9 466 22 21 24.18 1.16
bin-true no-host 676 546 2,293 821 816 3.39 1.21
configure.cpython no-host 15,201 15,320 28,961 15,561 15,503 1.91 1.02
configure.ocaml no-host 3,853 3,780 4,718 3,859 3,839 1.22 1.00
configure.tcc no-host 49 42 204 50 49 4.18 1.02
configure.util-linux no-host 14,262 15,084 31,838 14,527 14,481 2.23 1.02
configure.yash no-host 1,831 1,793 2,494 1,845 1,836 1.36 1.01
hello-world no-host 2 1 57 3 3 37.55 1.88

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,583 1,092 23,767 3,176 3,083 9.20 1.23
bin-true no-host 106,320 67,456 767,506 127,171 125,226 7.22 1.20
configure.cpython no-host 2,217,284 2,246,313 6,220,944 2,228,564 2,203,016 2.81 1.01
configure.ocaml no-host 410,886 390,887 647,000 413,211 411,476 1.57 1.01
configure.tcc no-host 6,566 5,459 24,027 6,980 6,912 3.66 1.06
configure.util-linux no-host 2,109,252 2,261,304 5,351,257 1,990,175 1,989,428 2.54 0.94
configure.yash no-host 256,016 245,027 388,516 257,861 258,049 1.52 1.01
hello-world no-host 153 81 3,928 346 338 25.67 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.6 9.0 8.7 5.06 2.03
bin-true no-host 3.0 1.4 18.2 8.0 7.7 6.05 2.65
configure.cpython no-host 27.3 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.1 19.4 19.4 0.99 1.01
configure.util-linux no-host 30.3 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.9 1.3 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 821 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,561 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,527 3 63 21.2 30.1 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,859 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 50 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,845 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.7 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,503 1 64 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,481 3 64 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,839 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,836 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 10 10 4.5 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 466 419 50 22.6 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 676 518 192 3.0 bash
9 no-host bin-true 546 409 148 1.4 dash
17 no-host bin-true 2,293 1,440 1,111 18.2 osh-cpython
25 no-host bin-true 821 585 250 8.0 osh-native
33 no-host bin-true 816 580 251 7.7 osh-native-souffle
2 no-host configure.cpython 15,201 9,171 6,436 27.3 bash
10 no-host configure.cpython 15,320 9,304 6,430 27.5 dash
18 no-host configure.cpython 28,961 17,570 13,258 27.4 osh-cpython
26 no-host configure.cpython 15,561 9,053 6,774 27.4 osh-native
34 no-host configure.cpython 15,503 8,951 6,676 27.4 osh-native-souffle
4 no-host configure.ocaml 3,853 1,602 1,267 20.6 bash
12 no-host configure.ocaml 3,780 1,658 1,140 20.6 dash
20 no-host configure.ocaml 4,718 2,303 1,624 20.4 osh-cpython
28 no-host configure.ocaml 3,859 1,622 1,276 20.6 osh-native
36 no-host configure.ocaml 3,839 1,627 1,250 20.6 osh-native-souffle
5 no-host configure.tcc 49 27 22 19.3 bash
13 no-host configure.tcc 42 30 12 19.3 dash
21 no-host configure.tcc 204 146 60 19.1 osh-cpython
29 no-host configure.tcc 50 32 18 19.4 osh-native
37 no-host configure.tcc 49 37 12 19.4 osh-native-souffle
3 no-host configure.util-linux 14,262 8,962 5,766 30.3 bash
11 no-host configure.util-linux 15,084 9,309 6,271 30.0 dash
19 no-host configure.util-linux 31,838 21,162 11,772 30.1 osh-cpython
27 no-host configure.util-linux 14,527 8,883 5,835 30.1 osh-native
35 no-host configure.util-linux 14,481 8,762 5,921 30.3 osh-native-souffle
6 no-host configure.yash 1,831 1,064 776 24.2 bash
14 no-host configure.yash 1,793 1,005 791 24.4 dash
22 no-host configure.yash 2,494 1,547 988 24.2 osh-cpython
30 no-host configure.yash 1,845 1,078 771 24.4 osh-native
38 no-host configure.yash 1,836 1,079 761 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.3 dash
16 no-host hello-world 57 39 18 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,583 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,767 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,083 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,320 0 0 0 8 0 1,992 81 bash
9 no-host bin-true 67,456 0 0 0 8 0 1,981 41 dash
17 no-host bin-true 767,506 0 0 0 8 0 1,995 217 osh-cpython
25 no-host bin-true 127,171 0 0 0 16 0 1,988 67 osh-native
33 no-host bin-true 125,226 0 0 0 16 0 1,994 178 osh-native-souffle
2 no-host configure.cpython 2,217,284 0 0 0 32,928 0 14,534 1,035 bash
10 no-host configure.cpython 2,246,313 1 0 0 32,992 0 14,624 878 dash
18 no-host configure.cpython 6,220,944 0 0 0 27,512 0 13,259 1,233 osh-cpython
26 no-host configure.cpython 2,228,564 0 0 0 27,520 0 13,298 977 osh-native
34 no-host configure.cpython 2,203,016 0 0 0 27,520 0 13,292 885 osh-native-souffle
4 no-host configure.ocaml 410,886 0 0 0 5,120 0 1,955 171 bash
12 no-host configure.ocaml 390,887 0 0 0 5,112 0 1,860 152 dash
20 no-host configure.ocaml 647,000 0 0 0 5,112 0 1,855 161 osh-cpython
28 no-host configure.ocaml 413,211 0 0 0 5,120 0 1,930 166 osh-native
36 no-host configure.ocaml 411,476 0 0 0 5,120 0 1,927 144 osh-native-souffle
5 no-host configure.tcc 6,566 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,459 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,027 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,980 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,109,252 0 0 0 42,400 0 18,541 1,106 bash
11 no-host configure.util-linux 2,261,304 0 0 0 42,584 0 17,371 1,021 dash
19 no-host configure.util-linux 5,351,257 17 0 0 39,112 0 16,982 1,146 osh-cpython
27 no-host configure.util-linux 1,990,175 0 0 0 39,128 0 16,970 881 osh-native
35 no-host configure.util-linux 1,989,428 0 0 0 39,136 0 16,960 1,107 osh-native-souffle
6 no-host configure.yash 256,016 0 0 0 4,120 0 870 86 bash
14 no-host configure.yash 245,027 0 0 0 3,720 0 868 72 dash
22 no-host configure.yash 388,516 0 0 0 3,728 0 851 197 osh-cpython
30 no-host configure.yash 257,861 0 0 0 3,736 0 852 83 osh-native
38 no-host configure.yash 258,049 0 0 0 3,736 0 849 61 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,928 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b7159720
dash dash-0ebcf347
osh-cpython osh-3b11a7a2
osh-native osh-885072ed
osh-native-souffle osh-47d08b17
host label host id
no-host no-host-556df3ee