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 20 24.98 1.17
bin-true no-host 681 529 2,300 799 797 3.38 1.17
configure.cpython no-host 14,815 14,609 28,384 14,816 14,907 1.92 1.00
configure.ocaml no-host 3,746 3,666 4,571 3,770 3,762 1.22 1.01
configure.tcc no-host 46 41 202 48 46 4.40 1.04
configure.util-linux no-host 13,587 14,377 31,026 13,930 13,875 2.28 1.03
configure.yash no-host 1,780 1,717 2,429 1,795 1,786 1.36 1.01
hello-world no-host 1 1 56 3 3 39.22 1.96

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,510 1,098 23,959 3,189 3,118 9.55 1.27
bin-true no-host 108,351 66,447 779,066 127,190 123,136 7.19 1.17
configure.cpython no-host 2,002,131 2,018,337 6,056,939 2,001,191 1,993,343 3.03 1.00
configure.ocaml no-host 373,066 353,919 610,863 376,193 375,163 1.64 1.01
configure.tcc no-host 6,100 5,030 23,786 6,496 6,411 3.90 1.06
configure.util-linux no-host 1,903,606 2,065,208 5,245,111 1,806,883 1,792,995 2.76 0.95
configure.yash no-host 234,013 222,298 367,009 235,885 234,771 1.57 1.01
hello-world no-host 147 78 4,003 346 336 27.23 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.3 3.4 22.6 9.0 8.8 5.23 2.09
bin-true no-host 2.9 1.6 18.3 8.1 7.6 6.34 2.82
configure.cpython no-host 29.2 29.3 29.1 29.1 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.5 1.00 0.99
configure.tcc no-host 19.6 19.6 19.7 19.7 19.8 1.01 1.01
configure.util-linux no-host 30.2 30.2 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 26.5 26.4 26.3 26.4 26.4 0.99 1.00
hello-world no-host 2.9 1.4 18.0 6.3 5.8 6.25 2.18

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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 799 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,816 2 66 14.9 29.1 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 13,930 3 64 21.2 30.3 2,698,991 29,940 65,698 108,700 1,288,281 1,302,010 32,241 41 131,396 1
configure.ocaml no-host 3,770 1 2 2.6 22.5 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,795 1 2 2.5 26.4 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.8 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 797 1 2 2.6 7.6 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,907 1 68 14.9 29.1 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,875 3 64 21.2 30.0 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,762 1 2 2.6 22.5 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.8 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,786 1 2 2.5 26.4 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.8 116,298 64,348 42,558 4,534 54,439 57,325 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 11 8 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 468 412 59 22.6 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
39 no-host abuild-print-help 20 12 9 8.8 osh-native-souffle
1 no-host bin-true 681 297 418 2.9 bash
9 no-host bin-true 529 274 266 1.6 dash
17 no-host bin-true 2,300 756 1,810 18.3 osh-cpython
25 no-host bin-true 799 315 500 8.1 osh-native
33 no-host bin-true 797 289 522 7.6 osh-native-souffle
2 no-host configure.cpython 14,815 6,779 8,435 29.2 bash
10 no-host configure.cpython 14,609 6,617 8,425 29.3 dash
18 no-host configure.cpython 28,384 14,089 16,192 29.1 osh-cpython
26 no-host configure.cpython 14,816 6,516 8,585 29.1 osh-native
34 no-host configure.cpython 14,907 6,639 8,541 29.1 osh-native-souffle
4 no-host configure.ocaml 3,746 1,287 1,498 22.6 bash
12 no-host configure.ocaml 3,666 1,256 1,431 22.6 dash
20 no-host configure.ocaml 4,571 1,839 1,946 22.6 osh-cpython
28 no-host configure.ocaml 3,770 1,327 1,485 22.5 osh-native
36 no-host configure.ocaml 3,762 1,304 1,498 22.5 osh-native-souffle
5 no-host configure.tcc 46 25 21 19.6 bash
13 no-host configure.tcc 41 15 25 19.6 dash
21 no-host configure.tcc 202 139 66 19.7 osh-cpython
29 no-host configure.tcc 48 23 25 19.7 osh-native
37 no-host configure.tcc 46 24 23 19.8 osh-native-souffle
3 no-host configure.util-linux 13,587 5,857 8,236 30.2 bash
11 no-host configure.util-linux 14,377 5,796 9,110 30.2 dash
19 no-host configure.util-linux 31,026 17,528 14,583 30.3 osh-cpython
27 no-host configure.util-linux 13,930 5,551 8,601 30.3 osh-native
35 no-host configure.util-linux 13,875 5,619 8,479 30.0 osh-native-souffle
6 no-host configure.yash 1,780 921 870 26.5 bash
14 no-host configure.yash 1,717 879 842 26.4 dash
22 no-host configure.yash 2,429 1,323 1,149 26.3 osh-cpython
30 no-host configure.yash 1,795 910 891 26.4 osh-native
38 no-host configure.yash 1,786 882 909 26.4 osh-native-souffle
0 no-host hello-world 1 1 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 31 25 18.0 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 2 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,510 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,959 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,118 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,351 0 0 0 8 0 1,990 83 bash
9 no-host bin-true 66,447 0 0 0 8 0 1,979 179 dash
17 no-host bin-true 779,066 0 0 0 8 0 1,980 209 osh-cpython
25 no-host bin-true 127,190 0 0 0 16 0 1,977 229 osh-native
33 no-host bin-true 123,136 0 0 0 16 0 1,969 116 osh-native-souffle
2 no-host configure.cpython 2,002,131 0 0 0 32,928 0 14,239 1,071 bash
10 no-host configure.cpython 2,018,337 0 0 0 32,992 0 14,360 1,122 dash
18 no-host configure.cpython 6,056,939 0 0 0 27,512 0 13,031 1,191 osh-cpython
26 no-host configure.cpython 2,001,191 0 0 0 27,520 0 13,143 1,165 osh-native
34 no-host configure.cpython 1,993,343 0 0 0 27,520 0 13,026 1,069 osh-native-souffle
4 no-host configure.ocaml 373,066 0 0 0 5,120 0 1,948 273 bash
12 no-host configure.ocaml 353,919 0 0 0 5,112 0 1,915 185 dash
20 no-host configure.ocaml 610,863 0 0 0 5,112 0 1,857 193 osh-cpython
28 no-host configure.ocaml 376,193 0 0 0 5,120 0 1,925 195 osh-native
36 no-host configure.ocaml 375,163 0 0 0 5,120 0 1,923 186 osh-native-souffle
5 no-host configure.tcc 6,100 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,030 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,786 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,411 0 0 0 104 0 47 7 osh-native-souffle
3 no-host configure.util-linux 1,903,606 0 0 0 42,400 0 18,424 1,326 bash
11 no-host configure.util-linux 2,065,208 0 0 0 42,584 0 17,415 1,348 dash
19 no-host configure.util-linux 5,245,111 6 0 0 39,120 0 17,027 1,368 osh-cpython
27 no-host configure.util-linux 1,806,883 0 0 0 39,120 0 16,989 1,206 osh-native
35 no-host configure.util-linux 1,792,995 1 0 0 39,128 0 16,988 1,208 osh-native-souffle
6 no-host configure.yash 234,013 0 0 0 4,120 0 869 94 bash
14 no-host configure.yash 222,298 0 0 0 3,720 0 870 93 dash
22 no-host configure.yash 367,009 0 0 0 3,728 0 857 82 osh-cpython
30 no-host configure.yash 235,885 0 0 0 3,736 0 852 92 osh-native
38 no-host configure.yash 234,771 0 0 0 3,736 0 851 103 osh-native-souffle
0 no-host hello-world 147 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 4,003 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 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-45dda011
dash dash-0ebcf347
osh-cpython osh-e17b0444
osh-native osh-c856e2fa
osh-native-souffle osh-8a857e75
host label host id
no-host no-host-e4839999