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 471 22 22 24.46 1.16
bin-true no-host 685 546 2,350 817 813 3.43 1.19
configure.cpython no-host 15,199 15,984 29,582 15,383 15,505 1.95 1.01
configure.ocaml no-host 3,908 3,843 4,741 3,815 3,814 1.21 0.98
configure.tcc no-host 48 42 208 50 49 4.33 1.04
configure.util-linux no-host 14,424 15,635 32,486 14,371 14,554 2.25 1.00
configure.yash no-host 1,875 1,834 2,536 1,861 1,857 1.35 0.99
hello-world no-host 2 1 62 3 3 40.13 1.82

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,534 1,100 23,665 3,189 3,060 9.34 1.26
bin-true no-host 105,381 66,397 774,756 126,275 124,153 7.35 1.20
configure.cpython no-host 2,219,549 2,247,244 6,212,015 2,222,044 2,203,186 2.80 1.00
configure.ocaml no-host 410,700 391,515 646,842 412,863 412,423 1.57 1.01
configure.tcc no-host 6,552 5,476 24,098 6,943 6,932 3.68 1.06
configure.util-linux no-host 2,103,399 2,259,630 5,381,497 1,994,801 1,988,788 2.56 0.95
configure.yash no-host 256,629 245,158 389,318 257,620 258,161 1.52 1.00
hello-world no-host 152 78 3,948 347 336 25.97 2.28

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.5 22.7 9.2 8.7 5.25 2.12
bin-true no-host 3.0 1.4 18.4 8.1 7.5 6.09 2.70
configure.cpython no-host 27.4 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.1 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.2 24.2 24.4 24.2 0.99 0.99
hello-world no-host 2.9 1.3 18.4 6.2 5.9 6.37 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 817 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,383 2 65 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,371 3 60 21.2 30.1 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,815 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 50 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,861 1 2 2.5 24.4 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 813 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,505 2 64 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,554 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,814 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,857 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 22 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 13 6 4.3 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 471 434 40 22.7 osh-cpython
31 no-host abuild-print-help 22 18 5 9.2 osh-native
39 no-host abuild-print-help 22 14 8 8.7 osh-native-souffle
1 no-host bin-true 685 494 222 3.0 bash
9 no-host bin-true 546 421 134 1.4 dash
17 no-host bin-true 2,350 1,543 1,078 18.4 osh-cpython
25 no-host bin-true 817 581 250 8.1 osh-native
33 no-host bin-true 813 570 257 7.5 osh-native-souffle
2 no-host configure.cpython 15,199 9,132 6,474 27.4 bash
10 no-host configure.cpython 15,984 9,479 6,942 27.4 dash
18 no-host configure.cpython 29,582 17,943 13,561 27.5 osh-cpython
26 no-host configure.cpython 15,383 8,921 6,740 27.4 osh-native
34 no-host configure.cpython 15,505 8,966 6,633 27.4 osh-native-souffle
4 no-host configure.ocaml 3,908 1,589 1,362 20.6 bash
12 no-host configure.ocaml 3,843 1,706 1,156 20.4 dash
20 no-host configure.ocaml 4,741 2,289 1,666 20.6 osh-cpython
28 no-host configure.ocaml 3,815 1,579 1,275 20.6 osh-native
36 no-host configure.ocaml 3,814 1,664 1,185 20.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 19.3 bash
13 no-host configure.tcc 42 22 21 19.1 dash
21 no-host configure.tcc 208 152 59 19.4 osh-cpython
29 no-host configure.tcc 50 31 19 19.3 osh-native
37 no-host configure.tcc 49 31 18 19.3 osh-native-souffle
3 no-host configure.util-linux 14,424 9,060 5,839 30.3 bash
11 no-host configure.util-linux 15,635 9,604 6,531 30.1 dash
19 no-host configure.util-linux 32,486 21,752 11,862 30.1 osh-cpython
27 no-host configure.util-linux 14,371 8,830 5,742 30.1 osh-native
35 no-host configure.util-linux 14,554 8,748 6,005 30.3 osh-native-souffle
6 no-host configure.yash 1,875 1,083 798 24.5 bash
14 no-host configure.yash 1,834 1,036 802 24.2 dash
22 no-host configure.yash 2,536 1,600 979 24.2 osh-cpython
30 no-host configure.yash 1,861 1,016 850 24.4 osh-native
38 no-host configure.yash 1,857 1,106 755 24.2 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 62 25 36 18.4 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,534 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,665 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,060 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 105,381 0 0 0 8 0 1,994 77 bash
9 no-host bin-true 66,397 0 0 0 8 0 1,986 49 dash
17 no-host bin-true 774,756 0 0 0 8 0 2,000 233 osh-cpython
25 no-host bin-true 126,275 0 0 0 16 0 1,988 42 osh-native
33 no-host bin-true 124,153 0 0 0 16 0 1,995 147 osh-native-souffle
2 no-host configure.cpython 2,219,549 0 0 0 32,928 0 14,416 1,018 bash
10 no-host configure.cpython 2,247,244 1 0 0 32,992 0 14,653 1,056 dash
18 no-host configure.cpython 6,212,015 0 0 0 27,512 0 13,303 1,137 osh-cpython
26 no-host configure.cpython 2,222,044 0 0 0 27,520 0 13,152 1,092 osh-native
34 no-host configure.cpython 2,203,186 0 0 0 27,520 0 13,236 1,040 osh-native-souffle
4 no-host configure.ocaml 410,700 0 0 0 5,120 0 1,951 139 bash
12 no-host configure.ocaml 391,515 0 0 0 5,112 0 1,926 140 dash
20 no-host configure.ocaml 646,842 0 0 0 5,112 0 1,850 179 osh-cpython
28 no-host configure.ocaml 412,863 0 0 0 5,120 0 1,928 183 osh-native
36 no-host configure.ocaml 412,423 0 0 0 5,120 0 1,931 148 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,098 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,943 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,932 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,103,399 0 0 0 42,400 0 18,509 1,035 bash
11 no-host configure.util-linux 2,259,630 0 0 0 42,584 0 17,439 1,154 dash
19 no-host configure.util-linux 5,381,497 10 0 0 39,112 0 16,979 1,302 osh-cpython
27 no-host configure.util-linux 1,994,801 1 0 0 39,128 0 17,000 983 osh-native
35 no-host configure.util-linux 1,988,788 1 0 0 39,136 0 17,009 916 osh-native-souffle
6 no-host configure.yash 256,629 0 0 0 4,120 0 871 69 bash
14 no-host configure.yash 245,158 0 0 0 3,720 0 864 63 dash
22 no-host configure.yash 389,318 1 0 0 3,728 0 856 97 osh-cpython
30 no-host configure.yash 257,620 0 0 0 3,736 0 850 89 osh-native
38 no-host configure.yash 258,161 0 0 0 3,736 0 847 81 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 347 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-9f30f116
dash dash-0ebcf347
osh-cpython osh-0195d6cc
osh-native osh-c2e82a65
osh-native-souffle osh-82d6b5ad
host label host id
no-host no-host-556df3ee