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 10 468 23 21 23.97 1.16
bin-true no-host 683 548 2,274 820 826 3.33 1.20
configure.cpython no-host 15,696 15,905 29,211 15,484 15,521 1.86 0.99
configure.ocaml no-host 3,970 3,842 4,766 3,866 3,842 1.20 0.97
configure.tcc no-host 52 41 203 49 49 3.90 0.94
configure.util-linux no-host 14,694 15,094 31,989 14,806 14,608 2.18 1.01
configure.yash no-host 1,899 1,792 2,459 1,878 1,845 1.29 0.99
hello-world no-host 2 1 56 3 3 35.85 1.83

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,530 1,142 23,852 3,207 3,064 9.43 1.27
bin-true no-host 106,347 66,421 769,610 128,260 124,227 7.24 1.21
configure.cpython no-host 2,225,840 2,242,511 6,248,977 2,220,869 2,206,450 2.81 1.00
configure.ocaml no-host 410,624 391,225 647,335 413,731 412,844 1.58 1.01
configure.tcc no-host 6,554 5,495 24,110 6,992 6,919 3.68 1.07
configure.util-linux no-host 2,106,761 2,254,400 5,387,761 1,994,147 1,983,390 2.56 0.95
configure.yash no-host 255,900 244,555 388,262 258,364 257,815 1.52 1.01
hello-world no-host 152 82 3,941 346 339 25.93 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.5 3.5 22.7 9.0 8.4 5.09 2.03
bin-true no-host 2.9 1.4 18.2 7.9 7.9 6.32 2.73
configure.cpython no-host 27.5 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.3 30.0 30.1 1.00 0.99
configure.yash no-host 24.4 24.4 24.4 24.2 24.4 1.00 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 2.29

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 820 1 2 2.6 7.9 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,484 1 64 14.9 27.5 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,806 3 66 21.2 30.0 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,866 0 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.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,878 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 23 1 2 2.8 9.0 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 826 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,521 1 62 14.9 27.5 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,608 3 62 21.2 30.1 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,842 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,845 1 2 2.5 24.4 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.4 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 20 17 3 4.5 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 468 441 30 22.7 osh-cpython
31 no-host abuild-print-help 23 14 9 9.0 osh-native
39 no-host abuild-print-help 21 17 5 8.4 osh-native-souffle
1 no-host bin-true 683 514 202 2.9 bash
9 no-host bin-true 548 416 140 1.4 dash
17 no-host bin-true 2,274 1,512 1,017 18.2 osh-cpython
25 no-host bin-true 820 605 230 7.9 osh-native
33 no-host bin-true 826 576 263 7.9 osh-native-souffle
2 no-host configure.cpython 15,696 9,463 6,647 27.5 bash
10 no-host configure.cpython 15,905 9,435 6,905 27.4 dash
18 no-host configure.cpython 29,211 17,900 13,192 27.4 osh-cpython
26 no-host configure.cpython 15,484 9,236 6,526 27.5 osh-native
34 no-host configure.cpython 15,521 9,184 6,471 27.5 osh-native-souffle
4 no-host configure.ocaml 3,970 1,711 1,283 20.4 bash
12 no-host configure.ocaml 3,842 1,575 1,287 20.6 dash
20 no-host configure.ocaml 4,766 2,252 1,725 20.6 osh-cpython
28 no-host configure.ocaml 3,866 1,670 1,237 20.6 osh-native
36 no-host configure.ocaml 3,842 1,740 1,139 20.6 osh-native-souffle
5 no-host configure.tcc 52 24 29 19.4 bash
13 no-host configure.tcc 41 27 15 19.4 dash
21 no-host configure.tcc 203 138 68 19.3 osh-cpython
29 no-host configure.tcc 49 34 16 19.3 osh-native
37 no-host configure.tcc 49 26 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,694 9,358 5,820 30.3 bash
11 no-host configure.util-linux 15,094 9,152 6,426 30.0 dash
19 no-host configure.util-linux 31,989 21,555 11,551 30.3 osh-cpython
27 no-host configure.util-linux 14,806 9,008 5,988 30.0 osh-native
35 no-host configure.util-linux 14,608 8,692 6,091 30.1 osh-native-souffle
6 no-host configure.yash 1,899 1,156 753 24.4 bash
14 no-host configure.yash 1,792 1,018 778 24.4 dash
22 no-host configure.yash 2,459 1,481 1,020 24.4 osh-cpython
30 no-host configure.yash 1,878 1,067 816 24.2 osh-native
38 no-host configure.yash 1,845 1,051 798 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 28 27 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,530 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,142 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,852 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,064 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,347 0 0 0 8 0 1,997 98 bash
9 no-host bin-true 66,421 0 0 0 8 0 1,990 45 dash
17 no-host bin-true 769,610 0 0 0 8 0 1,997 117 osh-cpython
25 no-host bin-true 128,260 0 0 0 16 0 1,990 111 osh-native
33 no-host bin-true 124,227 0 0 0 16 0 1,991 279 osh-native-souffle
2 no-host configure.cpython 2,225,840 0 0 0 32,928 0 14,482 1,064 bash
10 no-host configure.cpython 2,242,511 0 0 0 32,992 0 14,580 1,034 dash
18 no-host configure.cpython 6,248,977 0 0 0 27,512 0 13,225 1,159 osh-cpython
26 no-host configure.cpython 2,220,869 0 0 0 27,520 0 13,291 1,000 osh-native
34 no-host configure.cpython 2,206,450 0 0 0 27,520 0 13,235 996 osh-native-souffle
4 no-host configure.ocaml 410,624 0 0 0 5,120 0 1,962 147 bash
12 no-host configure.ocaml 391,225 0 0 0 5,112 0 1,935 158 dash
20 no-host configure.ocaml 647,335 0 0 0 5,112 0 1,863 159 osh-cpython
28 no-host configure.ocaml 413,731 0 0 0 5,120 0 1,925 178 osh-native
36 no-host configure.ocaml 412,844 0 0 0 5,120 0 1,929 149 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,110 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,992 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,919 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,106,761 0 0 0 42,408 0 18,593 971 bash
11 no-host configure.util-linux 2,254,400 0 0 0 42,592 0 17,415 1,047 dash
19 no-host configure.util-linux 5,387,761 2 0 0 39,120 0 17,022 1,212 osh-cpython
27 no-host configure.util-linux 1,994,147 1 0 0 39,128 0 16,975 1,083 osh-native
35 no-host configure.util-linux 1,983,390 0 0 0 39,136 0 16,960 900 osh-native-souffle
6 no-host configure.yash 255,900 0 0 0 4,120 0 867 84 bash
14 no-host configure.yash 244,555 0 0 0 3,720 0 871 79 dash
22 no-host configure.yash 388,262 0 0 0 3,728 0 854 107 osh-cpython
30 no-host configure.yash 258,364 0 0 0 3,736 0 852 83 osh-native
38 no-host configure.yash 257,815 0 0 0 3,736 0 850 80 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,941 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b0b528e3
dash dash-0ebcf347
osh-cpython osh-f8706955
osh-native osh-ff34b0e9
osh-native-souffle osh-a021b72a
host label host id
no-host no-host-556df3ee