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 463 22 21 24.15 1.14
bin-true no-host 676 538 2,252 821 804 3.33 1.21
configure.cpython no-host 14,838 14,909 28,391 15,103 15,046 1.91 1.02
configure.ocaml no-host 3,756 3,740 4,618 3,802 3,787 1.23 1.01
configure.tcc no-host 47 41 192 48 48 4.12 1.03
configure.util-linux no-host 13,846 14,744 31,147 14,179 14,120 2.25 1.02
configure.yash no-host 1,840 1,745 2,464 1,807 1,824 1.34 0.98
hello-world no-host 1 1 54 3 3 37.52 1.99

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,087 23,440 3,151 3,118 9.17 1.23
bin-true no-host 106,355 66,467 779,188 127,308 127,227 7.33 1.20
configure.cpython no-host 2,222,854 2,243,484 6,264,139 2,227,697 2,211,533 2.82 1.00
configure.ocaml no-host 410,212 389,766 646,700 412,246 412,325 1.58 1.00
configure.tcc no-host 6,545 5,488 23,788 6,990 6,927 3.63 1.07
configure.util-linux no-host 2,107,893 2,263,925 5,389,654 1,993,625 1,989,438 2.56 0.95
configure.yash no-host 254,937 244,570 388,296 257,637 257,122 1.52 1.01
hello-world no-host 151 82 3,750 349 350 24.83 2.31

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.0 9.2 8.7 5.09 2.12
bin-true no-host 3.0 1.4 17.7 8.0 7.6 5.87 2.65
configure.cpython no-host 27.1 27.5 27.4 27.4 27.3 1.01 1.01
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.4 19.4 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.5 24.2 24.4 24.5 0.99 1.00
hello-world no-host 2.9 1.4 17.4 6.3 5.9 6.04 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,782 3,782 0 695 1,857 1,230 2 0 50,000 0
bin-true no-host 821 1 2 2.6 8.0 153,746 12,266 2,886 8,744 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,103 1 58 14.9 27.4 1,771,747 49,906 28,595 85,416 908,078 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,179 3 57 21.2 30.1 2,702,513 29,656 65,899 108,692 1,320,584 1,273,237 32,239 41 131,798 1
configure.ocaml no-host 3,802 0 2 2.6 20.6 150,080 11,130 5,225 7,509 71,611 70,960 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,519 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,807 1 2 2.5 24.4 139,406 8,026 6,688 5,987 70,286 63,133 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,539 42,749 4,533 54,526 57,233 277 3 85,498 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 696 1,857 1,228 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.6 153,745 12,110 2,824 8,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,046 1 59 14.9 27.3 1,771,746 49,108 28,533 85,417 908,078 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,120 2 58 21.2 30.3 2,702,513 29,765 65,837 108,694 1,320,584 1,273,235 32,239 41 131,674 1
configure.ocaml no-host 3,787 1 2 2.6 20.6 150,080 11,068 5,163 7,511 71,611 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 271 0 50,000 0
configure.yash no-host 1,824 1 2 2.5 24.5 139,406 7,964 6,626 5,989 70,286 63,131 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,477 42,687 4,534 54,526 57,231 277 3 85,374 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 18 2 4.3 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 463 420 46 22.0 osh-cpython
31 no-host abuild-print-help 22 19 3 9.2 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 676 505 202 3.0 bash
9 no-host bin-true 538 431 116 1.4 dash
17 no-host bin-true 2,252 1,446 1,053 17.7 osh-cpython
25 no-host bin-true 821 590 246 8.0 osh-native
33 no-host bin-true 804 581 238 7.6 osh-native-souffle
2 no-host configure.cpython 14,838 8,933 6,297 27.1 bash
10 no-host configure.cpython 14,909 8,885 6,440 27.5 dash
18 no-host configure.cpython 28,391 16,949 13,250 27.4 osh-cpython
26 no-host configure.cpython 15,103 8,909 6,463 27.4 osh-native
34 no-host configure.cpython 15,046 8,847 6,374 27.3 osh-native-souffle
4 no-host configure.ocaml 3,756 1,623 1,173 20.4 bash
12 no-host configure.ocaml 3,740 1,569 1,189 20.6 dash
20 no-host configure.ocaml 4,618 2,208 1,618 20.6 osh-cpython
28 no-host configure.ocaml 3,802 1,591 1,249 20.6 osh-native
36 no-host configure.ocaml 3,787 1,628 1,195 20.6 osh-native-souffle
5 no-host configure.tcc 47 45 2 19.4 bash
13 no-host configure.tcc 41 32 9 19.4 dash
21 no-host configure.tcc 192 136 59 19.4 osh-cpython
29 no-host configure.tcc 48 37 11 19.4 osh-native
37 no-host configure.tcc 48 26 22 19.3 osh-native-souffle
3 no-host configure.util-linux 13,846 8,804 5,514 30.0 bash
11 no-host configure.util-linux 14,744 9,064 6,169 30.1 dash
19 no-host configure.util-linux 31,147 20,621 11,582 30.1 osh-cpython
27 no-host configure.util-linux 14,179 8,622 5,750 30.1 osh-native
35 no-host configure.util-linux 14,120 8,436 5,880 30.3 osh-native-souffle
6 no-host configure.yash 1,840 1,043 800 24.4 bash
14 no-host configure.yash 1,745 1,048 700 24.5 dash
22 no-host configure.yash 2,464 1,504 1,002 24.2 osh-cpython
30 no-host configure.yash 1,807 1,036 775 24.4 osh-native
38 no-host configure.yash 1,824 1,010 817 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 54 21 32 17.4 osh-cpython
24 no-host hello-world 3 0 3 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 42 1 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,440 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,151 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,118 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,355 0 0 0 8 0 1,993 206 bash
9 no-host bin-true 66,467 0 0 0 8 0 1,994 49 dash
17 no-host bin-true 779,188 0 0 0 8 0 1,987 159 osh-cpython
25 no-host bin-true 127,308 0 0 0 16 0 1,988 216 osh-native
33 no-host bin-true 127,227 0 0 0 16 0 1,988 113 osh-native-souffle
2 no-host configure.cpython 2,222,854 0 0 0 32,928 0 14,420 986 bash
10 no-host configure.cpython 2,243,484 0 0 0 32,992 0 14,599 1,120 dash
18 no-host configure.cpython 6,264,139 0 0 0 27,512 0 13,270 1,181 osh-cpython
26 no-host configure.cpython 2,227,697 0 0 0 27,520 0 13,226 953 osh-native
34 no-host configure.cpython 2,211,533 0 0 0 27,520 0 13,215 960 osh-native-souffle
4 no-host configure.ocaml 410,212 0 0 0 5,120 0 1,950 162 bash
12 no-host configure.ocaml 389,766 0 0 0 5,112 0 1,884 153 dash
20 no-host configure.ocaml 646,700 0 0 0 5,112 0 1,863 184 osh-cpython
28 no-host configure.ocaml 412,246 0 0 0 5,120 0 1,929 162 osh-native
36 no-host configure.ocaml 412,325 0 0 0 5,120 0 1,933 157 osh-native-souffle
5 no-host configure.tcc 6,545 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,788 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,990 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,927 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,107,893 3 0 0 42,400 0 18,596 952 bash
11 no-host configure.util-linux 2,263,925 2 0 0 42,592 0 17,490 1,047 dash
19 no-host configure.util-linux 5,389,654 9 0 0 39,112 0 16,920 1,211 osh-cpython
27 no-host configure.util-linux 1,993,625 0 0 0 39,120 0 16,911 1,195 osh-native
35 no-host configure.util-linux 1,989,438 0 0 0 39,128 0 16,952 882 osh-native-souffle
6 no-host configure.yash 254,937 0 0 0 4,120 0 874 87 bash
14 no-host configure.yash 244,570 0 0 0 3,720 0 868 77 dash
22 no-host configure.yash 388,296 0 0 0 3,728 0 855 97 osh-cpython
30 no-host configure.yash 257,637 0 0 0 3,736 0 846 89 osh-native
38 no-host configure.yash 257,122 0 0 0 3,736 0 849 89 osh-native-souffle
0 no-host hello-world 151 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,750 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 350 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-23e3a07e
dash dash-0ebcf347
osh-cpython osh-1b8aa67f
osh-native osh-0886a376
osh-native-souffle osh-becce775
host label host id
no-host no-host-556df3ee