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 10 471 22 21 24.68 1.16
bin-true no-host 695 539 2,322 825 812 3.34 1.19
configure.cpython no-host 15,674 15,436 30,029 15,888 16,067 1.92 1.01
configure.ocaml no-host 3,957 3,852 4,824 3,945 3,897 1.22 1.00
configure.tcc no-host 49 43 202 50 49 4.14 1.03
configure.util-linux no-host 14,557 15,138 32,753 14,965 14,976 2.25 1.03
configure.yash no-host 1,846 1,855 2,592 1,899 1,877 1.40 1.03
hello-world no-host 2 1 55 3 3 32.55 1.75

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,567 1,096 23,391 3,138 3,121 9.11 1.22
bin-true no-host 102,342 65,461 777,808 124,135 124,852 7.60 1.21
configure.cpython no-host 2,230,170 2,238,114 6,216,472 2,226,028 2,204,839 2.79 1.00
configure.ocaml no-host 410,963 390,808 647,214 412,442 412,105 1.57 1.00
configure.tcc no-host 6,574 5,475 23,783 7,003 6,916 3.62 1.07
configure.util-linux no-host 2,102,756 2,260,310 5,380,410 2,000,195 1,994,114 2.56 0.95
configure.yash no-host 256,814 245,104 386,510 257,967 257,836 1.51 1.00
hello-world no-host 150 83 3,747 353 344 24.98 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.2 8.9 8.7 4.97 2.00
bin-true no-host 3.0 1.4 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.4 27.3 27.3 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.0 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.9 1.4 17.6 6.0 5.8 6.09 2.09

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.0 3,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.0 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,888 1 64 15.0 27.4 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,965 3 64 21.3 30.0 2,703,495 29,752 65,877 109,676 1,320,584 1,273,235 27,391 41 131,754 1
configure.ocaml no-host 3,945 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,899 1 2 2.6 24.2 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 16,067 1 65 14.9 27.5 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,976 3 65 21.3 30.1 2,703,495 42,748 65,815 109,678 1,320,584 1,273,233 27,391 41 131,630 1
configure.ocaml no-host 3,897 1 2 2.6 20.4 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,877 1 2 2.6 24.2 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 13 7 4.5 bash
15 no-host abuild-print-help 10 4 5 3.4 dash
23 no-host abuild-print-help 471 415 59 22.2 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 695 516 212 3.0 bash
9 no-host bin-true 539 424 125 1.4 dash
17 no-host bin-true 2,322 1,523 1,071 17.7 osh-cpython
25 no-host bin-true 825 577 261 8.0 osh-native
33 no-host bin-true 812 556 271 7.7 osh-native-souffle
2 no-host configure.cpython 15,674 9,301 6,774 27.4 bash
10 no-host configure.cpython 15,436 9,427 6,421 27.3 dash
18 no-host configure.cpython 30,029 18,251 13,735 27.3 osh-cpython
26 no-host configure.cpython 15,888 9,494 6,628 27.4 osh-native
34 no-host configure.cpython 16,067 9,214 6,975 27.5 osh-native-souffle
4 no-host configure.ocaml 3,957 1,677 1,315 20.6 bash
12 no-host configure.ocaml 3,852 1,630 1,241 20.6 dash
20 no-host configure.ocaml 4,824 2,318 1,725 20.6 osh-cpython
28 no-host configure.ocaml 3,945 1,669 1,310 20.6 osh-native
36 no-host configure.ocaml 3,897 1,582 1,344 20.4 osh-native-souffle
5 no-host configure.tcc 49 32 17 19.4 bash
13 no-host configure.tcc 43 35 8 19.3 dash
21 no-host configure.tcc 202 155 50 19.4 osh-cpython
29 no-host configure.tcc 50 34 17 19.4 osh-native
37 no-host configure.tcc 49 27 22 19.4 osh-native-souffle
3 no-host configure.util-linux 14,557 9,080 5,935 30.1 bash
11 no-host configure.util-linux 15,138 9,383 6,235 30.1 dash
19 no-host configure.util-linux 32,753 21,685 12,190 30.0 osh-cpython
27 no-host configure.util-linux 14,965 8,957 6,202 30.0 osh-native
35 no-host configure.util-linux 14,976 8,975 6,174 30.1 osh-native-souffle
6 no-host configure.yash 1,846 1,113 740 24.4 bash
14 no-host configure.yash 1,855 1,064 794 24.4 dash
22 no-host configure.yash 2,592 1,630 1,007 24.4 osh-cpython
30 no-host configure.yash 1,899 1,069 834 24.2 osh-native
38 no-host configure.yash 1,877 1,008 869 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 38 16 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.0 osh-native
32 no-host hello-world 3 0 3 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,567 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,391 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,138 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,121 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 102,342 0 0 0 8 0 1,988 91 bash
9 no-host bin-true 65,461 0 0 0 8 0 1,987 42 dash
17 no-host bin-true 777,808 0 0 0 8 0 1,995 95 osh-cpython
25 no-host bin-true 124,135 0 0 0 16 0 1,988 134 osh-native
33 no-host bin-true 124,852 0 0 0 16 0 1,991 76 osh-native-souffle
2 no-host configure.cpython 2,230,170 0 0 0 32,928 0 14,444 1,063 bash
10 no-host configure.cpython 2,238,114 0 0 0 32,992 0 14,652 1,135 dash
18 no-host configure.cpython 6,216,472 0 0 0 27,512 0 13,175 1,312 osh-cpython
26 no-host configure.cpython 2,226,028 1 0 0 27,520 0 13,221 982 osh-native
34 no-host configure.cpython 2,204,839 0 0 0 27,520 0 13,260 1,086 osh-native-souffle
4 no-host configure.ocaml 410,963 0 0 0 5,120 0 1,953 144 bash
12 no-host configure.ocaml 390,808 0 0 0 5,112 0 1,888 147 dash
20 no-host configure.ocaml 647,214 0 0 0 5,112 0 1,856 181 osh-cpython
28 no-host configure.ocaml 412,442 0 0 0 5,120 0 1,924 148 osh-native
36 no-host configure.ocaml 412,105 0 0 0 5,120 0 1,935 154 osh-native-souffle
5 no-host configure.tcc 6,574 0 0 0 104 0 49 6 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,783 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,003 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,916 0 0 0 104 0 47 7 osh-native-souffle
3 no-host configure.util-linux 2,102,756 0 0 0 42,400 0 18,536 1,051 bash
11 no-host configure.util-linux 2,260,310 0 0 0 42,584 0 17,480 1,141 dash
19 no-host configure.util-linux 5,380,410 6 0 0 39,112 0 16,996 1,381 osh-cpython
27 no-host configure.util-linux 2,000,195 0 0 0 39,128 0 16,998 1,010 osh-native
35 no-host configure.util-linux 1,994,114 2 0 0 39,136 0 17,011 1,039 osh-native-souffle
6 no-host configure.yash 256,814 0 0 0 4,120 0 869 71 bash
14 no-host configure.yash 245,104 0 0 0 3,720 0 867 90 dash
22 no-host configure.yash 386,510 0 0 0 3,728 0 855 98 osh-cpython
30 no-host configure.yash 257,967 0 0 0 3,736 0 850 74 osh-native
38 no-host configure.yash 257,836 0 0 0 3,736 0 849 85 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,747 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7722a5a6
dash dash-0ebcf347
osh-cpython osh-e38b888e
osh-native osh-58ef9cde
osh-native-souffle osh-a0b5a9f9
host label host id
no-host no-host-556df3ee