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 481 26 21 25.93 1.40
bin-true no-host 668 531 2,349 801 790 3.52 1.20
configure.cpython no-host 14,844 14,959 29,215 15,144 15,044 1.97 1.02
configure.ocaml no-host 3,798 3,743 4,708 3,790 3,815 1.24 1.00
configure.tcc no-host 46 40 208 48 47 4.49 1.03
configure.util-linux no-host 13,930 14,637 32,092 14,212 14,094 2.30 1.02
configure.yash no-host 1,805 1,769 2,479 1,835 1,824 1.37 1.02
hello-world no-host 1 1 56 3 3 38.75 1.92

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,548 1,105 23,918 3,186 3,097 9.39 1.25
bin-true no-host 107,370 66,413 781,695 128,176 123,270 7.28 1.19
configure.cpython no-host 1,990,649 2,025,877 6,048,574 2,000,280 1,986,292 3.04 1.00
configure.ocaml no-host 372,803 354,140 612,256 376,173 375,190 1.64 1.01
configure.tcc no-host 6,083 5,030 23,751 6,495 6,439 3.90 1.07
configure.util-linux no-host 1,908,826 2,064,621 5,243,815 1,802,726 1,794,849 2.75 0.94
configure.yash no-host 233,635 221,707 367,115 234,633 235,371 1.57 1.00
hello-world no-host 146 73 4,006 343 338 27.44 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.5 22.7 9.0 8.8 5.10 2.03
bin-true no-host 2.9 1.4 18.4 8.3 7.7 6.38 2.86
configure.cpython no-host 29.2 29.2 29.2 29.1 29.1 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.5 22.6 22.4 1.00 1.01
configure.tcc no-host 19.6 19.6 19.4 19.6 19.4 0.99 1.00
configure.util-linux no-host 30.2 30.3 30.2 30.3 30.2 1.00 1.00
configure.yash no-host 26.3 26.4 26.3 26.4 26.1 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.3 5.9 6.34 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 801 1 2 2.6 8.3 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 15,144 1 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 14,212 3 64 21.2 30.3 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,790 1 2 2.6 22.6 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.6 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,835 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 26 1 3 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.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 790 1 2 2.6 7.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 15,044 1 66 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 14,094 3 63 21.2 30.2 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,815 1 2 2.6 22.4 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.4 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,824 1 2 2.5 26.1 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 21 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 9 10 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 481 420 64 22.7 osh-cpython
31 no-host abuild-print-help 26 15 12 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.8 osh-native-souffle
1 no-host bin-true 668 302 397 2.9 bash
9 no-host bin-true 531 279 264 1.4 dash
17 no-host bin-true 2,349 824 1,793 18.4 osh-cpython
25 no-host bin-true 801 304 514 8.3 osh-native
33 no-host bin-true 790 298 509 7.7 osh-native-souffle
2 no-host configure.cpython 14,844 6,719 8,553 29.2 bash
10 no-host configure.cpython 14,959 6,742 8,662 29.2 dash
18 no-host configure.cpython 29,215 14,528 16,632 29.2 osh-cpython
26 no-host configure.cpython 15,144 6,679 8,750 29.1 osh-native
34 no-host configure.cpython 15,044 6,504 8,822 29.1 osh-native-souffle
4 no-host configure.ocaml 3,798 1,317 1,513 22.5 bash
12 no-host configure.ocaml 3,743 1,290 1,476 22.6 dash
20 no-host configure.ocaml 4,708 1,880 2,054 22.5 osh-cpython
28 no-host configure.ocaml 3,790 1,329 1,502 22.6 osh-native
36 no-host configure.ocaml 3,815 1,326 1,529 22.4 osh-native-souffle
5 no-host configure.tcc 46 21 25 19.6 bash
13 no-host configure.tcc 40 23 18 19.6 dash
21 no-host configure.tcc 208 146 65 19.4 osh-cpython
29 no-host configure.tcc 48 24 25 19.6 osh-native
37 no-host configure.tcc 47 18 30 19.4 osh-native-souffle
3 no-host configure.util-linux 13,930 5,992 8,450 30.2 bash
11 no-host configure.util-linux 14,637 5,961 9,212 30.3 dash
19 no-host configure.util-linux 32,092 18,369 14,857 30.2 osh-cpython
27 no-host configure.util-linux 14,212 5,688 8,752 30.3 osh-native
35 no-host configure.util-linux 14,094 5,697 8,625 30.2 osh-native-souffle
6 no-host configure.yash 1,805 895 920 26.3 bash
14 no-host configure.yash 1,769 914 859 26.4 dash
22 no-host configure.yash 2,479 1,398 1,125 26.3 osh-cpython
30 no-host configure.yash 1,835 928 911 26.4 osh-native
38 no-host configure.yash 1,824 915 915 26.1 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 37 19 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 1 1 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,548 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,918 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,370 0 0 0 8 0 1,990 266 bash
9 no-host bin-true 66,413 0 0 0 8 0 1,981 131 dash
17 no-host bin-true 781,695 0 0 0 8 0 1,985 227 osh-cpython
25 no-host bin-true 128,176 0 0 0 16 0 1,980 174 osh-native
33 no-host bin-true 123,270 0 0 0 16 0 1,975 128 osh-native-souffle
2 no-host configure.cpython 1,990,649 0 0 0 32,928 0 14,207 1,232 bash
10 no-host configure.cpython 2,025,877 1 0 0 32,992 0 14,347 1,199 dash
18 no-host configure.cpython 6,048,574 0 0 0 27,512 0 13,039 1,074 osh-cpython
26 no-host configure.cpython 2,000,280 0 0 0 27,520 0 13,076 1,033 osh-native
34 no-host configure.cpython 1,986,292 0 0 0 27,520 0 13,083 1,058 osh-native-souffle
4 no-host configure.ocaml 372,803 0 0 0 5,120 0 1,951 182 bash
12 no-host configure.ocaml 354,140 0 0 0 5,112 0 1,933 177 dash
20 no-host configure.ocaml 612,256 0 0 0 5,112 0 1,856 179 osh-cpython
28 no-host configure.ocaml 376,173 0 0 0 5,120 0 1,930 197 osh-native
36 no-host configure.ocaml 375,190 0 0 0 5,120 0 1,920 204 osh-native-souffle
5 no-host configure.tcc 6,083 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,030 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,751 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,495 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,439 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,908,826 1 0 0 42,400 0 18,417 1,238 bash
11 no-host configure.util-linux 2,064,621 1 0 0 42,584 0 17,303 1,365 dash
19 no-host configure.util-linux 5,243,815 5 0 0 39,120 0 16,996 1,151 osh-cpython
27 no-host configure.util-linux 1,802,726 0 0 0 39,128 0 17,059 1,136 osh-native
35 no-host configure.util-linux 1,794,849 0 0 0 39,136 0 16,923 1,178 osh-native-souffle
6 no-host configure.yash 233,635 0 0 0 4,120 0 868 97 bash
14 no-host configure.yash 221,707 0 0 0 3,720 0 871 226 dash
22 no-host configure.yash 367,115 0 0 0 3,728 0 853 87 osh-cpython
30 no-host configure.yash 234,633 0 0 0 3,736 0 843 68 osh-native
38 no-host configure.yash 235,371 0 0 0 3,736 0 851 76 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 73 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,006 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8ba17025
dash dash-0ebcf347
osh-cpython osh-82d1f395
osh-native osh-6d1cd97d
osh-native-souffle osh-0796c747
host label host id
no-host no-host-e4839999