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 468 22 21 24.90 1.15
bin-true no-host 659 527 2,346 794 796 3.56 1.20
configure.cpython no-host 14,638 14,696 28,496 15,010 14,935 1.95 1.03
configure.ocaml no-host 3,743 3,675 4,618 3,764 3,762 1.23 1.01
configure.tcc no-host 47 40 202 47 47 4.30 1.00
configure.util-linux no-host 13,624 14,462 31,071 14,000 14,010 2.28 1.03
configure.yash no-host 1,794 1,737 2,441 1,800 1,804 1.36 1.00
hello-world no-host 1 1 56 3 3 42.96 2.12

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,555 1,094 23,904 3,186 3,131 9.36 1.25
bin-true no-host 108,293 67,463 783,275 127,144 128,211 7.23 1.17
configure.cpython no-host 2,002,044 2,030,161 6,016,658 2,005,694 1,988,264 3.01 1.00
configure.ocaml no-host 373,314 354,503 611,088 375,842 375,362 1.64 1.01
configure.tcc no-host 6,075 5,000 23,818 6,527 6,453 3.92 1.07
configure.util-linux no-host 1,908,225 2,069,541 5,218,210 1,801,580 1,800,505 2.73 0.94
configure.yash no-host 233,833 221,711 366,658 234,902 234,887 1.57 1.00
hello-world no-host 146 77 3,961 343 335 27.13 2.35

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.4 22.6 9.0 8.8 5.07 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.7 6.10 2.70
configure.cpython no-host 29.3 29.1 29.3 29.3 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.5 22.6 22.5 1.00 1.00
configure.tcc no-host 19.7 19.7 19.5 19.6 19.7 0.99 0.99
configure.util-linux no-host 30.5 30.3 30.2 30.3 30.3 0.99 1.00
configure.yash no-host 26.4 26.3 26.3 26.3 26.3 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.3 5.9 6.64 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,799 3,799 0 695 1,865 1,239 2 0 50,000 0
bin-true no-host 794 1 2 2.6 8.1 153,763 12,331 2,896 8,744 76,329 68,690 3,008 3 50,000 0
configure.cpython no-host 15,010 1 67 14.9 29.3 1,767,685 49,062 28,521 85,428 875,388 806,869 25,736 60 50,000 0
configure.util-linux no-host 14,000 3 65 21.2 30.3 2,699,001 29,942 65,720 108,700 1,288,285 1,302,016 32,241 41 131,440 1
configure.ocaml no-host 3,764 1 2 2.6 22.6 149,563 11,121 5,216 7,509 70,620 71,434 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,549 30,549 0 1,519 14,612 14,418 271 0 50,000 0
configure.yash no-host 1,800 1 2 2.5 26.3 139,279 8,033 6,695 5,990 67,849 65,440 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,309 64,412 42,622 4,533 54,443 57,333 277 3 85,244 1
hello-world no-host 3 0 0 0.2 5.9 3,798 3,798 0 696 1,865 1,237 2 0 50,000 0
bin-true no-host 796 1 2 2.6 7.7 153,762 12,118 2,832 8,745 76,329 68,688 3,008 3 50,000 0
configure.cpython no-host 14,935 1 67 14.9 29.2 1,767,684 37,983 24,932 85,429 875,388 806,867 25,736 60 50,000 0
configure.util-linux no-host 14,010 3 64 21.2 30.3 2,699,001 29,878 65,656 108,702 1,288,285 1,302,014 32,241 41 131,312 1
configure.ocaml no-host 3,762 1 2 2.6 22.5 149,563 11,057 5,152 7,511 70,620 71,432 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,549 30,549 0 1,521 14,612 14,416 271 0 50,000 0
configure.yash no-host 1,804 1 2 2.5 26.3 139,279 7,969 6,631 5,992 67,849 65,438 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,308 64,348 42,558 4,534 54,443 57,331 277 3 85,116 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 5 4.5 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 468 413 59 22.6 osh-cpython
31 no-host abuild-print-help 22 13 9 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.8 osh-native-souffle
1 no-host bin-true 659 310 383 3.0 bash
9 no-host bin-true 527 264 274 1.4 dash
17 no-host bin-true 2,346 778 1,825 18.4 osh-cpython
25 no-host bin-true 794 306 504 8.1 osh-native
33 no-host bin-true 796 287 525 7.7 osh-native-souffle
2 no-host configure.cpython 14,638 6,676 8,356 29.3 bash
10 no-host configure.cpython 14,696 6,595 8,529 29.1 dash
18 no-host configure.cpython 28,496 14,117 16,264 29.3 osh-cpython
26 no-host configure.cpython 15,010 6,505 8,784 29.3 osh-native
34 no-host configure.cpython 14,935 6,615 8,597 29.2 osh-native-souffle
4 no-host configure.ocaml 3,743 1,324 1,461 22.5 bash
12 no-host configure.ocaml 3,675 1,280 1,418 22.6 dash
20 no-host configure.ocaml 4,618 1,891 1,936 22.5 osh-cpython
28 no-host configure.ocaml 3,764 1,292 1,512 22.6 osh-native
36 no-host configure.ocaml 3,762 1,300 1,500 22.5 osh-native-souffle
5 no-host configure.tcc 47 25 23 19.7 bash
13 no-host configure.tcc 40 19 22 19.7 dash
21 no-host configure.tcc 202 142 64 19.5 osh-cpython
29 no-host configure.tcc 47 21 26 19.6 osh-native
37 no-host configure.tcc 47 21 26 19.7 osh-native-souffle
3 no-host configure.util-linux 13,624 5,805 8,309 30.5 bash
11 no-host configure.util-linux 14,462 5,898 9,081 30.3 dash
19 no-host configure.util-linux 31,071 17,610 14,552 30.2 osh-cpython
27 no-host configure.util-linux 14,000 5,632 8,587 30.3 osh-native
35 no-host configure.util-linux 14,010 5,549 8,666 30.3 osh-native-souffle
6 no-host configure.yash 1,794 897 907 26.4 bash
14 no-host configure.yash 1,737 864 878 26.3 dash
22 no-host configure.yash 2,441 1,416 1,067 26.3 osh-cpython
30 no-host configure.yash 1,800 927 876 26.3 osh-native
38 no-host configure.yash 1,804 900 909 26.3 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 41 15 18.3 osh-cpython
24 no-host hello-world 3 1 2 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,555 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,904 0 0 0 8 0 44 6 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 38 0 osh-native
39 no-host abuild-print-help 3,131 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 108,293 0 0 0 8 0 1,984 104 bash
9 no-host bin-true 67,463 0 0 0 8 0 1,977 103 dash
17 no-host bin-true 783,275 0 0 0 8 0 1,999 622 osh-cpython
25 no-host bin-true 127,144 0 0 0 16 0 1,977 156 osh-native
33 no-host bin-true 128,211 0 0 0 16 0 1,962 100 osh-native-souffle
2 no-host configure.cpython 2,002,044 0 0 0 32,952 0 14,224 1,251 bash
10 no-host configure.cpython 2,030,161 0 0 0 32,992 0 14,323 1,238 dash
18 no-host configure.cpython 6,016,658 0 0 0 27,512 0 13,040 1,152 osh-cpython
26 no-host configure.cpython 2,005,694 0 0 0 27,520 0 13,130 1,124 osh-native
34 no-host configure.cpython 1,988,264 1 0 0 27,520 0 13,166 1,146 osh-native-souffle
4 no-host configure.ocaml 373,314 0 0 0 5,120 0 1,941 183 bash
12 no-host configure.ocaml 354,503 1 0 0 5,112 0 1,944 191 dash
20 no-host configure.ocaml 611,088 0 0 0 5,112 0 1,859 323 osh-cpython
28 no-host configure.ocaml 375,842 0 0 0 5,120 0 1,923 186 osh-native
36 no-host configure.ocaml 375,362 0 0 0 5,120 0 1,921 219 osh-native-souffle
5 no-host configure.tcc 6,075 0 0 0 104 0 47 5 bash
13 no-host configure.tcc 5,000 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,818 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,527 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,453 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,908,225 0 0 0 42,400 0 18,529 1,277 bash
11 no-host configure.util-linux 2,069,541 0 0 0 42,584 0 17,321 1,305 dash
19 no-host configure.util-linux 5,218,210 2 0 0 39,112 0 17,015 1,306 osh-cpython
27 no-host configure.util-linux 1,801,580 0 0 0 39,120 0 16,986 1,184 osh-native
35 no-host configure.util-linux 1,800,505 1 0 0 39,128 0 16,990 1,189 osh-native-souffle
6 no-host configure.yash 233,833 0 0 0 4,120 0 872 89 bash
14 no-host configure.yash 221,711 0 0 0 3,720 0 871 86 dash
22 no-host configure.yash 366,658 0 0 0 3,728 0 850 92 osh-cpython
30 no-host configure.yash 234,902 0 0 0 3,736 0 852 95 osh-native
38 no-host configure.yash 234,887 0 0 0 3,736 0 852 98 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,961 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2c92696a
dash dash-0ebcf347
osh-cpython osh-0ad1178b
osh-native osh-b734de4a
osh-native-souffle osh-346a324b
host label host id
no-host no-host-e4839999