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 458 23 21 23.95 1.18
bin-true no-host 675 544 2,319 812 817 3.43 1.20
configure.cpython no-host 15,066 14,993 29,047 15,071 15,290 1.93 1.00
configure.ocaml no-host 4,079 3,751 4,630 3,805 3,798 1.14 0.93
configure.tcc no-host 48 42 203 49 48 4.27 1.02
configure.util-linux no-host 13,990 14,818 31,507 14,273 14,236 2.25 1.02
configure.yash no-host 1,813 1,753 2,459 1,813 1,800 1.36 1.00
hello-world no-host 1 1 57 3 3 38.05 1.93

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,503 1,104 23,925 3,212 3,072 9.56 1.28
bin-true no-host 104,309 66,453 793,555 123,255 126,232 7.61 1.18
configure.cpython no-host 2,221,199 2,236,790 6,272,669 2,214,524 2,202,033 2.82 1.00
configure.ocaml no-host 410,270 391,219 650,476 413,621 411,143 1.59 1.01
configure.tcc no-host 6,559 5,476 24,461 6,931 6,918 3.73 1.06
configure.util-linux no-host 2,102,289 2,261,636 5,420,877 1,997,319 1,989,364 2.58 0.95
configure.yash no-host 256,620 244,213 390,634 256,965 256,452 1.52 1.00
hello-world no-host 153 80 3,991 354 344 26.08 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.4 23.1 9.0 8.7 5.35 2.09
bin-true no-host 2.9 1.6 18.7 8.0 7.6 6.49 2.77
configure.cpython no-host 27.4 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.1 19.4 0.99 0.99
configure.util-linux no-host 30.1 30.3 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.1 24.2 24.2 24.2 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.8 6.2 5.8 6.52 2.14

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.2 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,071 2 62 14.9 27.4 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,273 3 59 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,805 1 2 2.6 20.6 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,813 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 23 1 2 2.8 9.0 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.8 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.6 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,290 1 63 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,236 3 60 21.2 30.0 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,798 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.4 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,800 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 10 9 1 3.4 dash
23 no-host abuild-print-help 458 398 63 23.1 osh-cpython
31 no-host abuild-print-help 23 15 9 9.0 osh-native
39 no-host abuild-print-help 21 20 2 8.7 osh-native-souffle
1 no-host bin-true 675 497 211 2.9 bash
9 no-host bin-true 544 415 137 1.6 dash
17 no-host bin-true 2,319 1,444 1,132 18.7 osh-cpython
25 no-host bin-true 812 577 250 8.0 osh-native
33 no-host bin-true 817 579 252 7.6 osh-native-souffle
2 no-host configure.cpython 15,066 9,102 6,363 27.4 bash
10 no-host configure.cpython 14,993 9,135 6,271 27.5 dash
18 no-host configure.cpython 29,047 17,640 13,297 27.4 osh-cpython
26 no-host configure.cpython 15,071 8,754 6,587 27.4 osh-native
34 no-host configure.cpython 15,290 8,902 6,425 27.4 osh-native-souffle
4 no-host configure.ocaml 4,079 1,601 1,229 20.6 bash
12 no-host configure.ocaml 3,751 1,631 1,140 20.4 dash
20 no-host configure.ocaml 4,630 2,255 1,588 20.6 osh-cpython
28 no-host configure.ocaml 3,805 1,649 1,196 20.6 osh-native
36 no-host configure.ocaml 3,798 1,577 1,253 20.6 osh-native-souffle
5 no-host configure.tcc 48 37 11 19.4 bash
13 no-host configure.tcc 42 34 8 19.3 dash
21 no-host configure.tcc 203 164 43 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.1 osh-native
37 no-host configure.tcc 48 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 13,990 8,988 5,470 30.1 bash
11 no-host configure.util-linux 14,818 9,078 6,235 30.3 dash
19 no-host configure.util-linux 31,507 20,750 11,842 30.1 osh-cpython
27 no-host configure.util-linux 14,273 8,655 5,819 30.1 osh-native
35 no-host configure.util-linux 14,236 8,502 5,927 30.0 osh-native-souffle
6 no-host configure.yash 1,813 1,025 795 24.1 bash
14 no-host configure.yash 1,753 959 797 24.2 dash
22 no-host configure.yash 2,459 1,451 1,051 24.2 osh-cpython
30 no-host configure.yash 1,813 1,018 799 24.2 osh-native
38 no-host configure.yash 1,800 1,098 706 24.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 29 28 18.8 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,503 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,925 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,212 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,072 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,309 0 0 0 8 0 1,989 41 bash
9 no-host bin-true 66,453 0 0 0 8 0 1,999 43 dash
17 no-host bin-true 793,555 0 0 0 8 0 1,998 88 osh-cpython
25 no-host bin-true 123,255 0 0 0 16 0 1,994 58 osh-native
33 no-host bin-true 126,232 0 0 0 16 0 1,988 126 osh-native-souffle
2 no-host configure.cpython 2,221,199 0 0 0 32,928 0 14,481 1,031 bash
10 no-host configure.cpython 2,236,790 1 0 0 32,992 0 14,594 1,072 dash
18 no-host configure.cpython 6,272,669 0 0 0 27,512 0 13,300 1,244 osh-cpython
26 no-host configure.cpython 2,214,524 1 0 0 27,520 0 13,287 1,029 osh-native
34 no-host configure.cpython 2,202,033 1 0 0 27,520 0 13,200 1,011 osh-native-souffle
4 no-host configure.ocaml 410,270 0 0 0 5,120 0 1,968 169 bash
12 no-host configure.ocaml 391,219 0 0 0 5,112 0 1,886 158 dash
20 no-host configure.ocaml 650,476 0 0 0 5,112 0 1,858 171 osh-cpython
28 no-host configure.ocaml 413,621 0 0 0 5,120 0 1,922 174 osh-native
36 no-host configure.ocaml 411,143 0 0 0 5,120 0 1,928 190 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,461 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,931 0 0 0 104 0 46 1 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,102,289 0 0 0 42,400 0 18,567 997 bash
11 no-host configure.util-linux 2,261,636 1 0 0 42,584 0 17,423 1,003 dash
19 no-host configure.util-linux 5,420,877 11 0 0 39,136 0 16,989 1,204 osh-cpython
27 no-host configure.util-linux 1,997,319 0 0 0 39,120 0 17,006 940 osh-native
35 no-host configure.util-linux 1,989,364 0 0 0 39,128 0 16,982 931 osh-native-souffle
6 no-host configure.yash 256,620 0 0 0 4,120 0 868 76 bash
14 no-host configure.yash 244,213 0 0 0 3,720 0 868 81 dash
22 no-host configure.yash 390,634 0 0 0 3,728 0 855 92 osh-cpython
30 no-host configure.yash 256,965 0 0 0 3,736 0 851 82 osh-native
38 no-host configure.yash 256,452 0 0 0 3,736 0 851 78 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,991 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 354 0 0 0 16 0 1 2 osh-native
32 no-host hello-world 344 0 0 0 16 0 0 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0fabfc72
dash dash-0ebcf347
osh-cpython osh-b0a5a9d6
osh-native osh-ca739d42
osh-native-souffle osh-91a018c2
host label host id
no-host no-host-556df3ee