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 454 22 21 23.97 1.18
bin-true no-host 675 542 2,237 804 809 3.31 1.19
configure.cpython no-host 14,906 14,981 28,480 15,200 15,202 1.91 1.02
configure.ocaml no-host 3,813 3,725 4,618 3,801 3,791 1.21 1.00
configure.tcc no-host 47 41 195 48 48 4.13 1.02
configure.util-linux no-host 13,918 14,822 31,016 14,314 14,246 2.23 1.03
configure.yash no-host 1,811 1,759 2,436 1,820 1,806 1.35 1.01
hello-world no-host 2 1 49 3 3 32.03 1.88

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,562 1,105 23,120 3,219 3,076 9.02 1.26
bin-true no-host 107,414 66,477 759,032 125,044 126,869 7.07 1.16
configure.cpython no-host 2,222,534 2,239,580 6,208,401 2,222,927 2,219,909 2.79 1.00
configure.ocaml no-host 410,973 391,240 644,513 413,940 412,895 1.57 1.01
configure.tcc no-host 6,543 5,476 23,560 6,999 6,926 3.60 1.07
configure.util-linux no-host 2,101,827 2,260,578 5,330,445 2,006,594 1,987,968 2.54 0.95
configure.yash no-host 256,768 244,571 386,449 257,186 258,282 1.51 1.00
hello-world no-host 152 82 3,729 352 344 24.53 2.32

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 21.9 9.0 8.4 4.91 2.03
bin-true no-host 3.0 1.6 17.7 7.9 7.7 5.87 2.61
configure.cpython no-host 27.3 27.3 27.3 27.1 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.3 19.1 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 29.8 30.1 30.3 0.98 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.8 1.4 17.7 6.3 5.9 6.43 2.29

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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.9 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,200 1 62 15.0 27.1 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,314 3 59 21.3 30.1 2,703,490 29,146 65,890 109,675 1,320,579 1,273,236 27,391 41 131,780 1
configure.ocaml no-host 3,801 1 2 2.6 20.4 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.2 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 809 1 2 2.6 7.7 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,202 1 62 14.9 27.4 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,246 3 60 21.3 30.3 2,703,490 42,741 65,828 109,677 1,320,579 1,273,234 27,391 41 131,656 1
configure.ocaml no-host 3,791 1 2 2.6 20.4 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,806 1 2 2.6 24.2 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 16 3 4.5 bash
15 no-host abuild-print-help 9 6 3 3.5 dash
23 no-host abuild-print-help 454 399 57 21.9 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 19 2 8.4 osh-native-souffle
1 no-host bin-true 675 492 214 3.0 bash
9 no-host bin-true 542 417 134 1.6 dash
17 no-host bin-true 2,237 1,414 1,080 17.7 osh-cpython
25 no-host bin-true 804 561 258 7.9 osh-native
33 no-host bin-true 809 589 237 7.7 osh-native-souffle
2 no-host configure.cpython 14,906 8,866 6,437 27.3 bash
10 no-host configure.cpython 14,981 9,102 6,295 27.3 dash
18 no-host configure.cpython 28,480 17,157 13,159 27.3 osh-cpython
26 no-host configure.cpython 15,200 8,974 6,495 27.1 osh-native
34 no-host configure.cpython 15,202 8,815 6,566 27.4 osh-native-souffle
4 no-host configure.ocaml 3,813 1,621 1,221 20.6 bash
12 no-host configure.ocaml 3,725 1,543 1,200 20.4 dash
20 no-host configure.ocaml 4,618 2,266 1,559 20.6 osh-cpython
28 no-host configure.ocaml 3,801 1,603 1,237 20.4 osh-native
36 no-host configure.ocaml 3,791 1,624 1,204 20.4 osh-native-souffle
5 no-host configure.tcc 47 33 15 19.3 bash
13 no-host configure.tcc 41 30 11 19.1 dash
21 no-host configure.tcc 195 141 57 19.3 osh-cpython
29 no-host configure.tcc 48 25 23 19.3 osh-native
37 no-host configure.tcc 48 37 11 19.3 osh-native-souffle
3 no-host configure.util-linux 13,918 8,991 5,401 30.3 bash
11 no-host configure.util-linux 14,822 9,181 6,131 30.3 dash
19 no-host configure.util-linux 31,016 20,683 11,425 29.8 osh-cpython
27 no-host configure.util-linux 14,314 8,626 5,890 30.1 osh-native
35 no-host configure.util-linux 14,246 8,651 5,793 30.3 osh-native-souffle
6 no-host configure.yash 1,811 1,022 798 24.4 bash
14 no-host configure.yash 1,759 1,046 716 24.4 dash
22 no-host configure.yash 2,436 1,560 916 24.2 osh-cpython
30 no-host configure.yash 1,820 1,050 774 24.2 osh-native
38 no-host configure.yash 1,806 1,002 807 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 37 12 17.7 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,562 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,120 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,219 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,076 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,414 0 0 0 8 0 1,992 47 bash
9 no-host bin-true 66,477 0 0 0 8 0 1,986 128 dash
17 no-host bin-true 759,032 0 0 0 8 0 1,994 133 osh-cpython
25 no-host bin-true 125,044 0 0 0 16 0 1,995 69 osh-native
33 no-host bin-true 126,869 0 0 0 16 0 1,991 78 osh-native-souffle
2 no-host configure.cpython 2,222,534 0 0 0 32,928 0 14,444 950 bash
10 no-host configure.cpython 2,239,580 0 0 0 32,992 0 14,654 1,018 dash
18 no-host configure.cpython 6,208,401 1 0 0 27,512 0 13,179 1,044 osh-cpython
26 no-host configure.cpython 2,222,927 0 0 0 27,520 0 13,259 1,242 osh-native
34 no-host configure.cpython 2,219,909 0 0 0 27,520 0 13,296 1,049 osh-native-souffle
4 no-host configure.ocaml 410,973 0 0 0 5,120 0 1,959 182 bash
12 no-host configure.ocaml 391,240 0 0 0 5,112 0 1,892 157 dash
20 no-host configure.ocaml 644,513 1 0 0 5,112 0 1,860 181 osh-cpython
28 no-host configure.ocaml 413,940 0 0 0 5,120 0 1,926 185 osh-native
36 no-host configure.ocaml 412,895 0 0 0 5,120 0 1,933 136 osh-native-souffle
5 no-host configure.tcc 6,543 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,560 0 0 0 96 0 53 20 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,926 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,101,827 0 0 0 42,400 0 18,557 960 bash
11 no-host configure.util-linux 2,260,578 2 0 0 42,584 0 17,466 1,066 dash
19 no-host configure.util-linux 5,330,445 6 0 0 39,112 0 16,965 1,303 osh-cpython
27 no-host configure.util-linux 2,006,594 0 0 0 39,120 0 16,949 989 osh-native
35 no-host configure.util-linux 1,987,968 5 0 0 39,128 0 17,161 1,068 osh-native-souffle
6 no-host configure.yash 256,768 0 0 0 4,120 0 869 67 bash
14 no-host configure.yash 244,571 0 0 0 3,720 0 868 74 dash
22 no-host configure.yash 386,449 0 0 0 3,728 0 851 91 osh-cpython
30 no-host configure.yash 257,186 0 0 0 3,736 0 849 89 osh-native
38 no-host configure.yash 258,282 0 0 0 3,736 0 846 78 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,729 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cd2b3b77
dash dash-0ebcf347
osh-cpython osh-44a76446
osh-native osh-5c2db054
osh-native-souffle osh-a71d973d
host label host id
no-host no-host-556df3ee