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 470 22 21 24.55 1.13
bin-true no-host 671 544 2,320 805 809 3.46 1.20
configure.cpython no-host 14,982 15,318 28,969 15,140 15,625 1.93 1.01
configure.ocaml no-host 3,822 3,742 4,671 3,801 3,792 1.22 0.99
configure.tcc no-host 48 42 204 48 48 4.27 1.01
configure.util-linux no-host 13,911 14,911 31,788 14,288 14,249 2.29 1.03
configure.yash no-host 1,837 1,788 2,479 1,836 1,811 1.35 1.00
hello-world no-host 2 1 55 3 3 33.10 1.76

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,529 1,101 23,837 3,182 3,126 9.43 1.26
bin-true no-host 106,318 65,461 771,523 125,201 126,267 7.26 1.18
configure.cpython no-host 2,225,659 2,235,904 6,238,381 2,216,443 2,202,508 2.80 1.00
configure.ocaml no-host 410,782 391,666 647,579 413,169 411,720 1.58 1.01
configure.tcc no-host 6,576 5,476 24,112 6,982 6,893 3.67 1.06
configure.util-linux no-host 2,103,937 2,262,573 5,396,552 1,997,748 1,993,870 2.56 0.95
configure.yash no-host 256,532 244,685 388,826 257,893 257,670 1.52 1.01
hello-world no-host 150 81 3,946 344 336 26.31 2.29

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.8 9.0 8.7 5.28 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.4 27.4 27.3 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.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.8 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 805 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,140 1 61 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,288 2 59 21.2 30.0 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,801 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 48 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,836 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.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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 809 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,625 1 62 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,249 2 58 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,792 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 48 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,811 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.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 14 6 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 470 441 33 22.8 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 671 507 196 2.9 bash
9 no-host bin-true 544 417 136 1.4 dash
17 no-host bin-true 2,320 1,519 1,056 18.4 osh-cpython
25 no-host bin-true 805 566 253 8.1 osh-native
33 no-host bin-true 809 574 250 7.6 osh-native-souffle
2 no-host configure.cpython 14,982 8,971 6,411 27.4 bash
10 no-host configure.cpython 15,318 9,166 6,575 27.4 dash
18 no-host configure.cpython 28,969 17,780 13,075 27.3 osh-cpython
26 no-host configure.cpython 15,140 8,954 6,454 27.4 osh-native
34 no-host configure.cpython 15,625 9,079 6,620 27.4 osh-native-souffle
4 no-host configure.ocaml 3,822 1,629 1,228 20.6 bash
12 no-host configure.ocaml 3,742 1,569 1,192 20.4 dash
20 no-host configure.ocaml 4,671 2,251 1,633 20.6 osh-cpython
28 no-host configure.ocaml 3,801 1,592 1,246 20.6 osh-native
36 no-host configure.ocaml 3,792 1,593 1,237 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 42 30 12 19.3 dash
21 no-host configure.tcc 204 137 70 19.3 osh-cpython
29 no-host configure.tcc 48 23 26 19.3 osh-native
37 no-host configure.tcc 48 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 13,911 8,779 5,599 30.1 bash
11 no-host configure.util-linux 14,911 9,109 6,294 30.1 dash
19 no-host configure.util-linux 31,788 21,084 11,809 30.3 osh-cpython
27 no-host configure.util-linux 14,288 8,629 5,850 30.0 osh-native
35 no-host configure.util-linux 14,249 8,595 5,834 30.1 osh-native-souffle
6 no-host configure.yash 1,837 1,046 800 24.4 bash
14 no-host configure.yash 1,788 1,046 745 24.4 dash
22 no-host configure.yash 2,479 1,539 982 24.4 osh-cpython
30 no-host configure.yash 1,836 1,046 793 24.2 osh-native
38 no-host configure.yash 1,811 1,071 742 24.2 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 55 24 31 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.8 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,529 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,837 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,182 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,126 0 0 0 16 0 40 0 osh-native-souffle
1 no-host bin-true 106,318 0 0 0 8 0 1,993 102 bash
9 no-host bin-true 65,461 0 0 0 8 0 1,984 42 dash
17 no-host bin-true 771,523 0 0 0 8 0 2,003 323 osh-cpython
25 no-host bin-true 125,201 0 0 0 16 0 1,995 68 osh-native
33 no-host bin-true 126,267 0 0 0 16 0 1,992 52 osh-native-souffle
2 no-host configure.cpython 2,225,659 0 0 0 32,928 0 14,497 1,050 bash
10 no-host configure.cpython 2,235,904 1 0 0 32,992 0 14,633 991 dash
18 no-host configure.cpython 6,238,381 0 0 0 27,512 0 13,286 1,167 osh-cpython
26 no-host configure.cpython 2,216,443 0 0 0 27,520 0 13,327 1,022 osh-native
34 no-host configure.cpython 2,202,508 0 0 0 27,520 0 13,174 897 osh-native-souffle
4 no-host configure.ocaml 410,782 0 0 0 5,120 0 1,964 261 bash
12 no-host configure.ocaml 391,666 0 0 0 5,112 0 1,929 141 dash
20 no-host configure.ocaml 647,579 1 0 0 5,112 0 1,858 152 osh-cpython
28 no-host configure.ocaml 413,169 0 0 0 5,120 0 1,930 197 osh-native
36 no-host configure.ocaml 411,720 0 0 0 5,120 0 1,930 159 osh-native-souffle
5 no-host configure.tcc 6,576 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 10 dash
21 no-host configure.tcc 24,112 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,982 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,893 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,103,937 1 0 0 42,400 0 18,584 998 bash
11 no-host configure.util-linux 2,262,573 0 0 0 42,592 0 17,412 951 dash
19 no-host configure.util-linux 5,396,552 6 0 0 39,112 0 17,010 1,149 osh-cpython
27 no-host configure.util-linux 1,997,748 1 0 0 39,128 0 16,980 896 osh-native
35 no-host configure.util-linux 1,993,870 2 0 0 39,136 0 16,984 938 osh-native-souffle
6 no-host configure.yash 256,532 0 0 0 4,120 0 868 74 bash
14 no-host configure.yash 244,685 0 0 0 3,720 0 867 74 dash
22 no-host configure.yash 388,826 0 0 0 3,728 0 855 84 osh-cpython
30 no-host configure.yash 257,893 0 0 0 3,736 0 850 79 osh-native
38 no-host configure.yash 257,670 0 0 0 3,736 0 846 88 osh-native-souffle
0 no-host hello-world 150 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,946 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 336 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3bc36c98
dash dash-0ebcf347
osh-cpython osh-9af8766a
osh-native osh-45049bf6
osh-native-souffle osh-329485ab
host label host id
no-host no-host-556df3ee