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 458 22 21 24.01 1.15
bin-true no-host 678 539 2,333 822 810 3.44 1.21
configure.cpython no-host 14,990 14,872 28,651 15,049 15,169 1.91 1.00
configure.ocaml no-host 3,752 3,712 4,617 3,795 3,787 1.23 1.01
configure.tcc no-host 47 41 202 49 48 4.30 1.05
configure.util-linux no-host 13,836 14,725 31,262 14,203 14,183 2.26 1.03
configure.yash no-host 1,792 1,737 2,443 1,801 1,792 1.36 1.00
hello-world no-host 2 1 56 3 3 36.35 1.89

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,543 1,103 23,949 3,174 3,108 9.42 1.25
bin-true no-host 108,369 66,463 798,406 126,232 124,203 7.37 1.16
configure.cpython no-host 2,218,741 2,247,540 6,280,140 2,226,977 2,197,779 2.83 1.00
configure.ocaml no-host 410,646 390,553 650,481 412,527 411,648 1.58 1.00
configure.tcc no-host 6,549 5,492 24,446 6,987 6,918 3.73 1.07
configure.util-linux no-host 2,099,108 2,263,464 5,423,478 2,001,270 1,990,217 2.58 0.95
configure.yash no-host 256,183 243,106 390,824 257,669 257,371 1.53 1.01
hello-world no-host 147 84 3,989 350 344 27.14 2.38

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 23.3 9.2 8.7 5.38 2.12
bin-true no-host 2.9 1.3 18.8 7.9 7.5 6.52 2.73
configure.cpython no-host 27.4 27.4 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.3 19.4 19.1 19.3 1.01 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.6 1.6 18.8 6.3 5.9 7.17 2.40

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,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 822 1 2 2.6 7.9 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,049 1 59 14.9 27.5 1,771,745 49,904 28,593 85,416 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,203 3 58 21.2 30.1 2,702,511 29,654 65,897 108,692 1,320,583 1,273,236 32,239 41 131,794 1
configure.ocaml no-host 3,795 1 2 2.6 20.4 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,801 1 2 2.5 24.2 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,290 64,537 42,747 4,533 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.5 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,169 1 61 14.8 27.4 1,771,744 49,106 28,531 85,417 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,183 3 59 21.2 30.1 2,702,511 29,763 65,835 108,694 1,320,583 1,273,234 32,239 41 131,670 1
configure.ocaml no-host 3,787 1 2 2.6 20.6 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,792 1 2 2.5 24.2 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,289 64,475 42,685 4,534 54,525 57,230 277 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 6 4.3 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 458 416 44 23.3 osh-cpython
31 no-host abuild-print-help 22 18 5 9.2 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 678 499 210 2.9 bash
9 no-host bin-true 539 410 139 1.3 dash
17 no-host bin-true 2,333 1,509 1,081 18.8 osh-cpython
25 no-host bin-true 822 569 268 7.9 osh-native
33 no-host bin-true 810 562 262 7.5 osh-native-souffle
2 no-host configure.cpython 14,990 8,999 6,383 27.4 bash
10 no-host configure.cpython 14,872 8,990 6,300 27.4 dash
18 no-host configure.cpython 28,651 17,417 13,054 27.3 osh-cpython
26 no-host configure.cpython 15,049 8,908 6,398 27.5 osh-native
34 no-host configure.cpython 15,169 9,130 6,219 27.4 osh-native-souffle
4 no-host configure.ocaml 3,752 1,563 1,229 20.6 bash
12 no-host configure.ocaml 3,712 1,598 1,129 20.6 dash
20 no-host configure.ocaml 4,617 2,189 1,640 20.6 osh-cpython
28 no-host configure.ocaml 3,795 1,687 1,147 20.4 osh-native
36 no-host configure.ocaml 3,787 1,563 1,253 20.6 osh-native-souffle
5 no-host configure.tcc 47 38 9 19.3 bash
13 no-host configure.tcc 41 28 13 19.3 dash
21 no-host configure.tcc 202 149 55 19.4 osh-cpython
29 no-host configure.tcc 49 30 19 19.1 osh-native
37 no-host configure.tcc 48 33 15 19.3 osh-native-souffle
3 no-host configure.util-linux 13,836 8,779 5,527 30.1 bash
11 no-host configure.util-linux 14,725 9,043 6,164 30.1 dash
19 no-host configure.util-linux 31,262 20,867 11,459 30.1 osh-cpython
27 no-host configure.util-linux 14,203 8,592 5,803 30.1 osh-native
35 no-host configure.util-linux 14,183 8,622 5,741 30.1 osh-native-souffle
6 no-host configure.yash 1,792 1,066 734 24.4 bash
14 no-host configure.yash 1,737 981 759 24.4 dash
22 no-host configure.yash 2,443 1,543 942 24.2 osh-cpython
30 no-host configure.yash 1,801 1,012 793 24.2 osh-native
38 no-host configure.yash 1,792 1,075 722 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 36 19 18.8 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 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,543 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,949 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,108 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,369 0 0 0 8 0 1,994 115 bash
9 no-host bin-true 66,463 0 0 0 8 0 1,988 59 dash
17 no-host bin-true 798,406 0 0 0 8 0 1,993 178 osh-cpython
25 no-host bin-true 126,232 0 0 0 16 0 1,995 186 osh-native
33 no-host bin-true 124,203 0 0 0 16 0 1,989 191 osh-native-souffle
2 no-host configure.cpython 2,218,741 0 0 0 32,928 0 14,554 1,129 bash
10 no-host configure.cpython 2,247,540 0 0 0 32,992 0 14,609 925 dash
18 no-host configure.cpython 6,280,140 0 0 0 27,512 0 13,248 1,228 osh-cpython
26 no-host configure.cpython 2,226,977 0 0 0 27,520 0 13,202 1,136 osh-native
34 no-host configure.cpython 2,197,779 0 0 0 27,520 0 13,241 1,004 osh-native-souffle
4 no-host configure.ocaml 410,646 0 0 0 5,120 0 1,948 187 bash
12 no-host configure.ocaml 390,553 0 0 0 5,112 0 1,884 218 dash
20 no-host configure.ocaml 650,481 1 0 0 5,112 0 1,866 181 osh-cpython
28 no-host configure.ocaml 412,527 0 0 0 5,120 0 1,930 170 osh-native
36 no-host configure.ocaml 411,648 0 0 0 5,120 0 1,935 189 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,492 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,446 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,099,108 2 0 0 42,400 0 18,575 1,061 bash
11 no-host configure.util-linux 2,263,464 0 0 0 42,584 0 17,468 1,116 dash
19 no-host configure.util-linux 5,423,478 11 0 0 39,120 0 16,993 1,235 osh-cpython
27 no-host configure.util-linux 2,001,270 0 0 0 39,120 0 16,987 1,053 osh-native
35 no-host configure.util-linux 1,990,217 1 0 0 39,128 0 16,981 949 osh-native-souffle
6 no-host configure.yash 256,183 0 0 0 4,120 0 873 81 bash
14 no-host configure.yash 243,106 0 0 0 3,728 0 869 89 dash
22 no-host configure.yash 390,824 0 0 0 3,728 0 852 97 osh-cpython
30 no-host configure.yash 257,669 0 0 0 3,736 0 850 93 osh-native
38 no-host configure.yash 257,371 0 0 0 3,736 0 849 88 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,989 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e18a64a8
dash dash-0ebcf347
osh-cpython osh-bdec7ddf
osh-native osh-d5d6e70a
osh-native-souffle osh-981dccdd
host label host id
no-host no-host-556df3ee