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 457 22 20 25.08 1.20
bin-true no-host 651 518 2,234 788 787 3.43 1.21
configure.cpython no-host 14,444 14,485 27,899 14,662 14,633 1.93 1.02
configure.ocaml no-host 3,712 3,634 4,537 3,722 3,712 1.22 1.00
configure.tcc no-host 46 40 191 47 47 4.15 1.03
configure.util-linux no-host 13,477 14,261 30,290 13,734 13,731 2.25 1.02
configure.yash no-host 1,755 1,728 2,372 1,766 1,754 1.35 1.01
hello-world no-host 1 1 48 3 3 37.40 2.23

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,550 1,115 23,355 3,213 3,080 9.16 1.26
bin-true no-host 106,342 67,425 768,897 126,163 128,070 7.23 1.19
configure.cpython no-host 2,000,203 2,028,135 5,992,475 2,013,643 1,991,018 3.00 1.01
configure.ocaml no-host 373,175 354,084 609,189 376,132 375,785 1.63 1.01
configure.tcc no-host 6,092 4,999 23,069 6,527 6,478 3.79 1.07
configure.util-linux no-host 1,909,483 2,074,207 5,151,779 1,811,213 1,816,208 2.70 0.95
configure.yash no-host 233,779 222,133 364,539 235,316 233,546 1.56 1.01
hello-world no-host 149 79 3,710 348 345 24.90 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.0 8.9 8.7 4.94 2.00
bin-true no-host 3.0 1.6 17.4 8.1 7.9 5.78 2.70
configure.cpython no-host 29.1 29.2 29.2 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.5 22.5 22.6 0.99 0.99
configure.tcc no-host 19.7 19.4 19.6 19.7 19.6 0.99 1.00
configure.util-linux no-host 30.3 30.2 30.2 30.3 30.2 1.00 1.00
configure.yash no-host 26.4 26.5 26.4 26.3 26.4 1.00 0.99
hello-world no-host 2.9 1.4 17.4 6.3 5.9 6.04 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,709 3,709 0 691 1,832 1,186 2 0 50,000 0
bin-true no-host 788 1 2 2.6 8.1 154,674 12,908 2,810 9,741 78,301 66,632 3,008 3 50,000 0
configure.cpython no-host 14,662 1 65 14.9 29.2 1,772,656 49,100 28,520 86,394 908,053 778,209 22,694 60 50,000 0
configure.util-linux no-host 13,734 3 62 21.3 30.3 2,703,392 42,737 65,824 109,656 1,320,551 1,273,185 27,391 41 131,648 1
configure.ocaml no-host 3,722 1 2 2.6 22.5 150,026 10,985 5,155 7,526 71,589 70,911 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,515 30,515 0 1,517 14,756 14,242 226 0 50,000 0
configure.yash no-host 1,766 1 2 2.6 26.3 139,683 7,953 6,612 6,333 70,261 63,089 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,258 64,463 42,673 4,568 54,501 57,189 270 3 85,346 1
hello-world no-host 3 0 0 0.2 5.9 3,708 3,708 0 692 1,832 1,184 2 0 50,000 0
bin-true no-host 787 1 2 2.6 7.9 154,673 12,773 2,748 9,742 78,301 66,630 3,008 3 50,000 0
configure.cpython no-host 14,633 1 62 15.0 29.1 1,772,655 44,552 28,458 86,395 908,053 778,207 22,694 60 50,000 0
configure.util-linux no-host 13,731 3 61 21.3 30.2 2,703,392 44,638 65,761 109,658 1,320,551 1,273,183 27,391 41 131,522 1
configure.ocaml no-host 3,712 0 2 2.6 22.6 150,026 10,922 5,092 7,528 71,589 70,909 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,515 30,515 0 1,519 14,756 14,240 226 0 50,000 0
configure.yash no-host 1,754 1 2 2.6 26.4 139,683 7,891 6,550 6,335 70,261 63,087 1,803 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,257 64,401 42,611 4,569 54,501 57,187 270 3 85,222 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 11 8 4.5 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 457 408 52 22.0 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 20 12 8 8.7 osh-native-souffle
1 no-host bin-true 651 304 381 3.0 bash
9 no-host bin-true 518 277 253 1.6 dash
17 no-host bin-true 2,234 776 1,725 17.4 osh-cpython
25 no-host bin-true 788 302 502 8.1 osh-native
33 no-host bin-true 787 309 494 7.9 osh-native-souffle
2 no-host configure.cpython 14,444 6,538 8,313 29.1 bash
10 no-host configure.cpython 14,485 6,574 8,346 29.2 dash
18 no-host configure.cpython 27,899 13,928 15,812 29.2 osh-cpython
26 no-host configure.cpython 14,662 6,455 8,489 29.2 osh-native
34 no-host configure.cpython 14,633 6,449 8,377 29.1 osh-native-souffle
4 no-host configure.ocaml 3,712 1,277 1,474 22.6 bash
12 no-host configure.ocaml 3,634 1,242 1,414 22.6 dash
20 no-host configure.ocaml 4,537 1,843 1,905 22.5 osh-cpython
28 no-host configure.ocaml 3,722 1,273 1,490 22.5 osh-native
36 no-host configure.ocaml 3,712 1,280 1,470 22.6 osh-native-souffle
5 no-host configure.tcc 46 16 31 19.7 bash
13 no-host configure.tcc 40 18 23 19.4 dash
21 no-host configure.tcc 191 142 53 19.6 osh-cpython
29 no-host configure.tcc 47 23 25 19.7 osh-native
37 no-host configure.tcc 47 24 23 19.6 osh-native-souffle
3 no-host configure.util-linux 13,477 5,798 8,175 30.3 bash
11 no-host configure.util-linux 14,261 5,860 8,920 30.2 dash
19 no-host configure.util-linux 30,290 17,256 14,139 30.2 osh-cpython
27 no-host configure.util-linux 13,734 5,486 8,471 30.3 osh-native
35 no-host configure.util-linux 13,731 5,507 8,445 30.2 osh-native-souffle
6 no-host configure.yash 1,755 892 873 26.4 bash
14 no-host configure.yash 1,728 871 862 26.5 dash
22 no-host configure.yash 2,372 1,306 1,109 26.4 osh-cpython
30 no-host configure.yash 1,766 917 854 26.3 osh-native
38 no-host configure.yash 1,754 873 886 26.4 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 48 33 15 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 2 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,550 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,355 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,080 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 106,342 0 0 0 8 0 1,979 154 bash
9 no-host bin-true 67,425 0 0 0 8 0 1,969 83 dash
17 no-host bin-true 768,897 0 0 0 8 0 1,975 300 osh-cpython
25 no-host bin-true 126,163 0 0 0 16 0 1,982 147 osh-native
33 no-host bin-true 128,070 0 0 0 16 0 1,974 91 osh-native-souffle
2 no-host configure.cpython 2,000,203 0 0 0 32,928 0 14,278 1,393 bash
10 no-host configure.cpython 2,028,135 0 0 0 32,992 0 14,342 1,558 dash
18 no-host configure.cpython 5,992,475 1 0 0 27,512 0 13,044 1,274 osh-cpython
26 no-host configure.cpython 2,013,643 0 0 0 27,520 0 13,164 1,306 osh-native
34 no-host configure.cpython 1,991,018 0 0 0 27,520 0 13,122 1,396 osh-native-souffle
4 no-host configure.ocaml 373,175 0 0 0 5,120 0 1,953 187 bash
12 no-host configure.ocaml 354,084 0 0 0 5,112 0 1,939 191 dash
20 no-host configure.ocaml 609,189 0 0 0 5,112 0 1,858 225 osh-cpython
28 no-host configure.ocaml 376,132 0 0 0 5,120 0 1,925 222 osh-native
36 no-host configure.ocaml 375,785 0 0 0 5,120 0 1,930 212 osh-native-souffle
5 no-host configure.tcc 6,092 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,999 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,069 0 0 0 96 0 53 1 osh-cpython
29 no-host configure.tcc 6,527 0 0 0 104 0 46 3 osh-native
37 no-host configure.tcc 6,478 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,909,483 0 0 0 42,400 0 18,596 1,294 bash
11 no-host configure.util-linux 2,074,207 1 0 0 42,584 0 17,269 1,566 dash
19 no-host configure.util-linux 5,151,779 13 0 0 39,120 0 17,042 1,289 osh-cpython
27 no-host configure.util-linux 1,811,213 0 0 0 39,120 0 17,018 1,488 osh-native
35 no-host configure.util-linux 1,816,208 0 0 0 39,128 0 17,005 1,229 osh-native-souffle
6 no-host configure.yash 233,779 0 0 0 4,120 0 872 82 bash
14 no-host configure.yash 222,133 0 0 0 3,720 0 870 76 dash
22 no-host configure.yash 364,539 0 0 0 3,728 0 852 79 osh-cpython
30 no-host configure.yash 235,316 0 0 0 3,736 0 847 87 osh-native
38 no-host configure.yash 233,546 0 0 0 3,736 0 849 95 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,710 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0e097317
dash dash-0ebcf347
osh-cpython osh-497b2076
osh-native osh-13b5a8ea
osh-native-souffle osh-971d231f
host label host id
no-host no-host-e5b8d3ee