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 469 22 20 25.33 1.18
bin-true no-host 650 527 2,330 792 782 3.59 1.22
configure.cpython no-host 14,555 14,675 28,450 14,982 14,776 1.95 1.03
configure.ocaml no-host 3,765 3,673 4,599 3,770 3,751 1.22 1.00
configure.tcc no-host 46 40 202 47 47 4.37 1.02
configure.util-linux no-host 13,564 14,424 31,207 13,983 13,871 2.30 1.03
configure.yash no-host 1,787 1,737 2,432 1,797 1,787 1.36 1.01
hello-world no-host 1 1 56 3 3 42.67 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,547 1,096 23,947 3,196 3,111 9.40 1.25
bin-true no-host 105,411 67,444 783,568 125,151 124,212 7.43 1.19
configure.cpython no-host 1,995,858 2,017,711 6,057,479 2,003,046 1,986,527 3.04 1.00
configure.ocaml no-host 373,185 353,956 611,129 376,464 375,764 1.64 1.01
configure.tcc no-host 6,090 4,988 23,762 6,475 6,422 3.90 1.06
configure.util-linux no-host 1,901,445 2,070,316 5,228,594 1,803,627 1,795,928 2.75 0.95
configure.yash no-host 233,429 221,897 367,244 235,640 234,843 1.57 1.01
hello-world no-host 144 77 3,966 343 335 27.54 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.5 3.5 22.6 9.0 8.7 5.07 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.5 6.10 2.70
configure.cpython no-host 29.3 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.7 19.6 19.7 19.7 1.00 1.01
configure.util-linux no-host 30.2 30.2 30.2 30.2 30.5 1.00 1.00
configure.yash no-host 26.2 26.4 26.4 26.4 26.3 1.01 1.01
hello-world no-host 2.8 1.4 18.3 6.2 5.9 6.64 2.24

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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 792 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,982 1 64 14.9 29.2 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 13,983 3 63 21.2 30.2 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,770 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 47 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,797 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 22 1 2 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 782 1 2 2.6 7.5 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,776 1 66 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,871 3 62 21.2 30.5 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,751 1 2 2.6 22.6 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.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,787 1 2 2.5 26.3 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 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 10 9 4.5 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 469 409 63 22.6 osh-cpython
31 no-host abuild-print-help 22 13 9 9.0 osh-native
39 no-host abuild-print-help 20 12 9 8.7 osh-native-souffle
1 no-host bin-true 650 300 384 3.0 bash
9 no-host bin-true 527 277 263 1.4 dash
17 no-host bin-true 2,330 777 1,813 18.4 osh-cpython
25 no-host bin-true 792 287 522 8.1 osh-native
33 no-host bin-true 782 303 496 7.5 osh-native-souffle
2 no-host configure.cpython 14,555 6,623 8,338 29.3 bash
10 no-host configure.cpython 14,675 6,616 8,443 29.2 dash
18 no-host configure.cpython 28,450 14,222 16,097 29.2 osh-cpython
26 no-host configure.cpython 14,982 6,615 8,645 29.2 osh-native
34 no-host configure.cpython 14,776 6,522 8,530 29.2 osh-native-souffle
4 no-host configure.ocaml 3,765 1,309 1,487 22.6 bash
12 no-host configure.ocaml 3,673 1,315 1,380 22.5 dash
20 no-host configure.ocaml 4,599 1,838 1,974 22.6 osh-cpython
28 no-host configure.ocaml 3,770 1,322 1,487 22.6 osh-native
36 no-host configure.ocaml 3,751 1,288 1,502 22.6 osh-native-souffle
5 no-host configure.tcc 46 21 26 19.6 bash
13 no-host configure.tcc 40 24 16 19.7 dash
21 no-host configure.tcc 202 142 64 19.6 osh-cpython
29 no-host configure.tcc 47 23 25 19.7 osh-native
37 no-host configure.tcc 47 24 24 19.7 osh-native-souffle
3 no-host configure.util-linux 13,564 5,854 8,196 30.2 bash
11 no-host configure.util-linux 14,424 5,738 9,201 30.2 dash
19 no-host configure.util-linux 31,207 17,764 14,520 30.2 osh-cpython
27 no-host configure.util-linux 13,983 5,618 8,571 30.2 osh-native
35 no-host configure.util-linux 13,871 5,562 8,522 30.5 osh-native-souffle
6 no-host configure.yash 1,787 891 903 26.2 bash
14 no-host configure.yash 1,737 889 853 26.4 dash
22 no-host configure.yash 2,432 1,318 1,157 26.4 osh-cpython
30 no-host configure.yash 1,797 913 889 26.4 osh-native
38 no-host configure.yash 1,787 900 891 26.3 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 35 21 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.2 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,547 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,947 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 38 7 osh-native
39 no-host abuild-print-help 3,111 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,411 0 0 0 8 0 1,988 101 bash
9 no-host bin-true 67,444 0 0 0 8 0 1,971 130 dash
17 no-host bin-true 783,568 0 0 0 8 0 1,997 481 osh-cpython
25 no-host bin-true 125,151 0 0 0 16 0 1,981 121 osh-native
33 no-host bin-true 124,212 0 0 0 16 0 1,986 103 osh-native-souffle
2 no-host configure.cpython 1,995,858 0 0 0 32,928 0 14,229 1,182 bash
10 no-host configure.cpython 2,017,711 0 0 0 32,992 0 14,360 1,250 dash
18 no-host configure.cpython 6,057,479 0 0 0 27,512 0 13,068 1,209 osh-cpython
26 no-host configure.cpython 2,003,046 0 0 0 27,520 0 13,136 1,203 osh-native
34 no-host configure.cpython 1,986,527 0 0 0 27,520 0 13,080 1,179 osh-native-souffle
4 no-host configure.ocaml 373,185 0 0 0 5,120 0 1,956 203 bash
12 no-host configure.ocaml 353,956 0 0 0 5,112 0 1,946 162 dash
20 no-host configure.ocaml 611,129 0 0 0 5,112 0 1,850 207 osh-cpython
28 no-host configure.ocaml 376,464 0 0 0 5,120 0 1,932 218 osh-native
36 no-host configure.ocaml 375,764 0 0 0 5,120 0 1,933 206 osh-native-souffle
5 no-host configure.tcc 6,090 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,988 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,762 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,475 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,422 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 1,901,445 0 0 0 42,400 0 18,532 1,261 bash
11 no-host configure.util-linux 2,070,316 1 0 0 42,584 0 17,350 1,391 dash
19 no-host configure.util-linux 5,228,594 9 0 0 39,112 0 17,025 1,348 osh-cpython
27 no-host configure.util-linux 1,803,627 0 0 0 39,120 0 17,005 1,212 osh-native
35 no-host configure.util-linux 1,795,928 1 0 0 39,136 0 16,974 1,194 osh-native-souffle
6 no-host configure.yash 233,429 0 0 0 4,120 0 870 93 bash
14 no-host configure.yash 221,897 0 0 0 3,720 0 873 78 dash
22 no-host configure.yash 367,244 0 0 0 3,728 0 854 81 osh-cpython
30 no-host configure.yash 235,640 0 0 0 3,736 0 851 99 osh-native
38 no-host configure.yash 234,843 0 0 0 3,736 0 851 160 osh-native-souffle
0 no-host hello-world 144 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 3,966 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-debd8d26
dash dash-0ebcf347
osh-cpython osh-c8adb384
osh-native osh-d7cefc96
osh-native-souffle osh-e94bc53b
host label host id
no-host no-host-e4839999