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 18 9 472 21 20 25.68 1.17
bin-true no-host 640 528 2,300 769 760 3.59 1.20
configure.cpython no-host 14,512 14,592 28,412 14,649 14,763 1.96 1.01
configure.ocaml no-host 3,740 3,644 4,574 3,721 3,736 1.22 1.00
configure.tcc no-host 46 40 206 47 46 4.44 1.02
configure.util-linux no-host 13,499 14,317 31,338 13,813 13,736 2.32 1.02
configure.yash no-host 1,774 1,729 2,425 1,775 1,777 1.37 1.00
hello-world no-host 1 1 56 3 3 43.28 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,539 1,104 24,320 3,173 3,089 9.58 1.25
bin-true no-host 103,336 66,495 800,335 127,182 125,186 7.74 1.23
configure.cpython no-host 2,000,539 2,014,969 6,136,024 2,013,256 2,008,561 3.07 1.01
configure.ocaml no-host 373,648 353,844 618,230 377,063 376,523 1.65 1.01
configure.tcc no-host 6,081 4,998 24,033 6,477 6,438 3.95 1.07
configure.util-linux no-host 1,911,757 2,071,829 5,319,999 1,824,313 1,812,438 2.78 0.95
configure.yash no-host 233,801 221,701 369,498 235,682 234,903 1.58 1.01
hello-world no-host 148 77 4,001 347 341 27.03 2.34

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.9 9.2 8.7 5.13 2.06
bin-true no-host 3.0 1.4 18.6 8.1 7.6 6.15 2.70
configure.cpython no-host 29.2 29.3 29.2 29.2 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.4 19.6 19.7 19.5 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.2 26.4 26.4 26.3 1.00 1.00
hello-world no-host 2.8 1.6 18.3 6.4 5.9 6.64 2.33

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.3 6.4 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 769 1 2 2.6 8.1 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 14,649 1 69 15.2 29.2 1,785,027 49,179 25,898 91,515 886,574 806,938 25,736 62 50,000 0
configure.util-linux no-host 13,813 3 66 21.6 30.3 2,709,212 56,216 66,561 114,377 1,295,026 1,299,809 32,241 42 133,122 1
configure.ocaml no-host 3,721 1 2 2.6 22.6 149,879 12,467 6,510 7,749 70,874 71,256 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,775 1 2 2.6 26.4 139,886 8,047 6,702 6,399 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,340 64,422 42,627 4,546 54,461 57,333 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,870 1,236 2 0 50,000 0
bin-true no-host 760 1 2 2.6 7.6 156,776 15,411 2,898 8,755 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 14,763 2 72 15.2 29.3 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 13,736 3 66 21.6 30.3 2,709,212 56,191 66,554 114,379 1,295,026 1,299,807 32,241 42 133,108 1
configure.ocaml no-host 3,736 1 2 2.6 22.6 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.5 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,777 1 2 2.6 26.3 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,339 64,417 42,622 4,547 54,461 57,331 277 3 85,244 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 18 9 10 4.5 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 472 418 58 22.9 osh-cpython
31 no-host abuild-print-help 21 9 13 9.2 osh-native
39 no-host abuild-print-help 20 11 9 8.7 osh-native-souffle
1 no-host bin-true 640 306 366 3.0 bash
9 no-host bin-true 528 277 262 1.4 dash
17 no-host bin-true 2,300 825 1,735 18.6 osh-cpython
25 no-host bin-true 769 301 486 8.1 osh-native
33 no-host bin-true 760 304 471 7.6 osh-native-souffle
2 no-host configure.cpython 14,512 6,730 8,183 29.2 bash
10 no-host configure.cpython 14,592 6,715 8,302 29.3 dash
18 no-host configure.cpython 28,412 14,387 15,882 29.2 osh-cpython
26 no-host configure.cpython 14,649 6,554 8,385 29.2 osh-native
34 no-host configure.cpython 14,763 6,535 8,389 29.3 osh-native-souffle
4 no-host configure.ocaml 3,740 1,291 1,483 22.6 bash
12 no-host configure.ocaml 3,644 1,290 1,375 22.6 dash
20 no-host configure.ocaml 4,574 1,857 1,930 22.6 osh-cpython
28 no-host configure.ocaml 3,721 1,283 1,479 22.6 osh-native
36 no-host configure.ocaml 3,736 1,356 1,418 22.6 osh-native-souffle
5 no-host configure.tcc 46 24 23 19.7 bash
13 no-host configure.tcc 40 19 21 19.4 dash
21 no-host configure.tcc 206 141 68 19.6 osh-cpython
29 no-host configure.tcc 47 29 19 19.7 osh-native
37 no-host configure.tcc 46 23 24 19.5 osh-native-souffle
3 no-host configure.util-linux 13,499 5,816 8,165 30.2 bash
11 no-host configure.util-linux 14,317 5,887 8,934 30.2 dash
19 no-host configure.util-linux 31,338 18,179 14,185 30.2 osh-cpython
27 no-host configure.util-linux 13,813 5,667 8,376 30.3 osh-native
35 no-host configure.util-linux 13,736 5,572 8,381 30.3 osh-native-souffle
6 no-host configure.yash 1,774 907 875 26.4 bash
14 no-host configure.yash 1,729 874 859 26.2 dash
22 no-host configure.yash 2,425 1,365 1,102 26.4 osh-cpython
30 no-host configure.yash 1,775 882 897 26.4 osh-native
38 no-host configure.yash 1,777 905 877 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 42 14 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 1 2 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,539 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,320 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 39 7 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 103,336 0 0 0 8 0 1,987 99 bash
9 no-host bin-true 66,495 0 0 0 8 0 1,990 240 dash
17 no-host bin-true 800,335 0 0 0 8 0 1,991 359 osh-cpython
25 no-host bin-true 127,182 0 0 0 16 0 1,992 136 osh-native
33 no-host bin-true 125,186 0 0 0 16 0 1,986 145 osh-native-souffle
2 no-host configure.cpython 2,000,539 0 0 0 32,928 0 14,283 1,330 bash
10 no-host configure.cpython 2,014,969 0 0 0 32,992 0 14,360 1,241 dash
18 no-host configure.cpython 6,136,024 1 0 0 27,512 0 13,030 1,298 osh-cpython
26 no-host configure.cpython 2,013,256 2 0 0 27,520 0 13,025 1,050 osh-native
34 no-host configure.cpython 2,008,561 0 0 0 27,520 0 13,077 1,241 osh-native-souffle
4 no-host configure.ocaml 373,648 0 0 0 5,120 0 1,950 169 bash
12 no-host configure.ocaml 353,844 0 0 0 5,112 0 1,938 175 dash
20 no-host configure.ocaml 618,230 0 0 0 5,112 0 1,851 166 osh-cpython
28 no-host configure.ocaml 377,063 0 0 0 5,120 0 1,926 200 osh-native
36 no-host configure.ocaml 376,523 0 0 0 5,120 0 1,920 205 osh-native-souffle
5 no-host configure.tcc 6,081 0 0 0 104 0 48 6 bash
13 no-host configure.tcc 4,998 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,033 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,477 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,438 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,911,757 3 0 0 42,400 0 18,493 1,377 bash
11 no-host configure.util-linux 2,071,829 0 0 0 42,584 0 17,290 1,522 dash
19 no-host configure.util-linux 5,319,999 7 0 0 39,120 0 17,035 1,382 osh-cpython
27 no-host configure.util-linux 1,824,313 0 0 0 39,120 0 17,031 1,176 osh-native
35 no-host configure.util-linux 1,812,438 0 0 0 39,128 0 16,999 1,137 osh-native-souffle
6 no-host configure.yash 233,801 0 0 0 4,120 0 873 87 bash
14 no-host configure.yash 221,701 0 0 0 3,720 0 867 95 dash
22 no-host configure.yash 369,498 0 0 0 3,728 0 853 93 osh-cpython
30 no-host configure.yash 235,682 0 0 0 3,736 0 854 86 osh-native
38 no-host configure.yash 234,903 0 0 0 3,736 0 850 104 osh-native-souffle
0 no-host hello-world 148 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 4,001 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-772735f1
dash dash-0ebcf347
osh-cpython osh-a7f96333
osh-native osh-cfec53cc
osh-native-souffle osh-ef57c0b9
host label host id
no-host no-host-20fc69f9