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 463 22 21 24.11 1.15
bin-true no-host 685 548 2,281 824 817 3.33 1.20
configure.cpython no-host 15,267 15,188 28,939 15,272 15,438 1.90 1.00
configure.ocaml no-host 3,812 3,784 4,602 3,823 3,845 1.21 1.00
configure.tcc no-host 49 42 201 49 49 4.10 0.99
configure.util-linux no-host 14,156 14,961 31,825 14,443 14,458 2.25 1.02
configure.yash no-host 1,840 1,760 2,439 1,822 1,854 1.33 0.99
hello-world no-host 2 1 56 3 3 32.78 1.62

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,558 1,089 23,645 3,206 3,112 9.24 1.25
bin-true no-host 105,374 66,388 774,695 126,260 125,213 7.35 1.20
configure.cpython no-host 2,217,075 2,239,508 6,211,037 2,221,202 2,212,571 2.80 1.00
configure.ocaml no-host 410,093 391,322 647,138 412,396 412,518 1.58 1.01
configure.tcc no-host 6,561 5,480 24,068 6,934 6,913 3.67 1.06
configure.util-linux no-host 2,108,748 2,268,503 5,383,079 1,998,642 1,989,054 2.55 0.95
configure.yash no-host 256,554 244,659 388,068 258,095 257,259 1.51 1.01
hello-world no-host 152 82 3,951 343 344 25.99 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.2 8.5 5.25 2.12
bin-true no-host 2.9 1.3 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.3 27.3 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.1 19.3 19.3 19.1 19.4 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.0 30.3 30.4 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 18.1 6.2 5.9 6.58 2.24

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 824 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,272 1 63 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,443 3 60 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,823 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.1 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,822 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.2 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 817 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,438 2 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,458 3 62 21.2 30.4 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,845 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.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,854 1 2 2.5 24.2 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.5 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 18 2 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 463 416 51 22.7 osh-cpython
31 no-host abuild-print-help 22 16 7 9.2 osh-native
39 no-host abuild-print-help 21 20 2 8.5 osh-native-souffle
1 no-host bin-true 685 518 196 2.9 bash
9 no-host bin-true 548 417 139 1.3 dash
17 no-host bin-true 2,281 1,446 1,096 18.4 osh-cpython
25 no-host bin-true 824 577 260 8.1 osh-native
33 no-host bin-true 817 566 265 7.6 osh-native-souffle
2 no-host configure.cpython 15,267 9,216 6,454 27.3 bash
10 no-host configure.cpython 15,188 9,319 6,295 27.3 dash
18 no-host configure.cpython 28,939 17,575 13,238 27.4 osh-cpython
26 no-host configure.cpython 15,272 8,978 6,569 27.4 osh-native
34 no-host configure.cpython 15,438 8,912 6,658 27.4 osh-native-souffle
4 no-host configure.ocaml 3,812 1,679 1,173 20.6 bash
12 no-host configure.ocaml 3,784 1,632 1,172 20.6 dash
20 no-host configure.ocaml 4,602 2,217 1,591 20.6 osh-cpython
28 no-host configure.ocaml 3,823 1,592 1,271 20.6 osh-native
36 no-host configure.ocaml 3,845 1,610 1,270 20.6 osh-native-souffle
5 no-host configure.tcc 49 24 24 19.1 bash
13 no-host configure.tcc 42 21 21 19.3 dash
21 no-host configure.tcc 201 139 65 19.3 osh-cpython
29 no-host configure.tcc 49 36 13 19.1 osh-native
37 no-host configure.tcc 49 32 17 19.4 osh-native-souffle
3 no-host configure.util-linux 14,156 9,056 5,576 30.1 bash
11 no-host configure.util-linux 14,961 9,262 6,183 30.1 dash
19 no-host configure.util-linux 31,825 21,430 11,504 30.0 osh-cpython
27 no-host configure.util-linux 14,443 8,566 6,072 30.3 osh-native
35 no-host configure.util-linux 14,458 8,785 5,857 30.4 osh-native-souffle
6 no-host configure.yash 1,840 1,076 774 24.4 bash
14 no-host configure.yash 1,760 994 769 24.4 dash
22 no-host configure.yash 2,439 1,501 980 24.2 osh-cpython
30 no-host configure.yash 1,822 1,114 713 24.2 osh-native
38 no-host configure.yash 1,854 1,090 768 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 32 24 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,558 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,645 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,374 0 0 0 8 0 1,985 76 bash
9 no-host bin-true 66,388 0 0 0 8 0 1,989 29 dash
17 no-host bin-true 774,695 0 0 0 8 0 2,000 101 osh-cpython
25 no-host bin-true 126,260 0 0 0 16 0 1,992 150 osh-native
33 no-host bin-true 125,213 0 0 0 16 0 1,983 111 osh-native-souffle
2 no-host configure.cpython 2,217,075 1 0 0 32,928 0 14,506 1,148 bash
10 no-host configure.cpython 2,239,508 0 0 0 32,992 0 14,527 933 dash
18 no-host configure.cpython 6,211,037 1 0 0 27,512 0 13,291 1,112 osh-cpython
26 no-host configure.cpython 2,221,202 1 0 0 27,520 0 13,326 939 osh-native
34 no-host configure.cpython 2,212,571 0 0 0 27,520 0 13,205 996 osh-native-souffle
4 no-host configure.ocaml 410,093 0 0 0 5,120 0 1,944 146 bash
12 no-host configure.ocaml 391,322 0 0 0 5,112 0 1,886 146 dash
20 no-host configure.ocaml 647,138 0 0 0 5,112 0 1,857 182 osh-cpython
28 no-host configure.ocaml 412,396 0 0 0 5,120 0 1,925 175 osh-native
36 no-host configure.ocaml 412,518 0 0 0 5,120 0 1,931 149 osh-native-souffle
5 no-host configure.tcc 6,561 0 0 0 104 0 50 1 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,068 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,934 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,913 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,108,748 4 0 0 42,400 0 18,520 1,164 bash
11 no-host configure.util-linux 2,268,503 1 0 0 42,592 0 17,478 956 dash
19 no-host configure.util-linux 5,383,079 5 0 0 39,112 0 17,094 1,106 osh-cpython
27 no-host configure.util-linux 1,998,642 0 0 0 39,120 0 16,992 955 osh-native
35 no-host configure.util-linux 1,989,054 0 0 0 39,136 0 16,980 972 osh-native-souffle
6 no-host configure.yash 256,554 0 0 0 4,120 0 871 82 bash
14 no-host configure.yash 244,659 0 0 0 3,720 0 866 91 dash
22 no-host configure.yash 388,068 0 0 0 3,728 0 852 102 osh-cpython
30 no-host configure.yash 258,095 0 0 0 3,736 0 852 97 osh-native
38 no-host configure.yash 257,259 0 0 0 3,736 0 849 70 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 1 dash
16 no-host hello-world 3,951 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a91cff21
dash dash-0ebcf347
osh-cpython osh-93323108
osh-native osh-44ffcf19
osh-native-souffle osh-56efc79d
host label host id
no-host no-host-556df3ee