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 23 21 23.79 1.20
bin-true no-host 680 544 2,247 822 820 3.30 1.21
configure.cpython no-host 15,270 15,421 29,125 15,641 15,700 1.91 1.02
configure.ocaml no-host 3,845 3,775 4,757 3,901 3,896 1.24 1.01
configure.tcc no-host 48 42 202 49 49 4.20 1.02
configure.util-linux no-host 14,289 15,177 31,843 14,660 14,502 2.23 1.03
configure.yash no-host 1,862 1,827 2,488 1,884 1,867 1.34 1.01
hello-world no-host 2 1 49 3 3 32.57 1.87

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,551 1,113 23,235 3,236 3,100 9.11 1.27
bin-true no-host 105,305 67,415 756,872 125,194 124,890 7.19 1.19
configure.cpython no-host 2,218,461 2,243,362 6,211,875 2,224,274 2,211,150 2.80 1.00
configure.ocaml no-host 410,565 390,986 645,903 413,386 412,862 1.57 1.01
configure.tcc no-host 6,528 5,490 23,524 7,004 6,929 3.60 1.07
configure.util-linux no-host 2,104,191 2,269,516 5,334,037 2,006,404 1,992,236 2.53 0.95
configure.yash no-host 255,651 244,578 386,411 258,262 258,360 1.51 1.01
hello-world no-host 152 82 3,735 348 345 24.57 2.29

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 22.0 9.0 8.7 5.09 2.09
bin-true no-host 2.8 1.4 17.7 8.3 7.5 6.43 3.00
configure.cpython no-host 27.4 27.1 27.4 27.5 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.1 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.5 24.5 24.5 24.4 1.01 1.01
hello-world no-host 2.8 1.6 17.6 6.3 5.8 6.38 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 822 1 2 2.6 8.3 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,641 1 65 15.0 27.5 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,660 3 63 21.3 30.1 2,703,490 29,745 65,870 109,675 1,320,579 1,273,236 27,391 41 131,740 1
configure.ocaml no-host 3,901 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,884 1 2 2.6 24.5 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 23 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.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 820 1 2 2.6 7.5 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,700 2 65 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,502 3 61 21.3 30.1 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,896 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,867 1 2 2.6 24.4 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.7 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 14 5 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 458 406 55 22.0 osh-cpython
31 no-host abuild-print-help 23 17 6 9.0 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 680 496 215 2.8 bash
9 no-host bin-true 544 423 135 1.4 dash
17 no-host bin-true 2,247 1,470 1,033 17.7 osh-cpython
25 no-host bin-true 822 571 267 8.3 osh-native
33 no-host bin-true 820 571 263 7.5 osh-native-souffle
2 no-host configure.cpython 15,270 9,188 6,495 27.4 bash
10 no-host configure.cpython 15,421 9,304 6,552 27.1 dash
18 no-host configure.cpython 29,125 17,831 13,192 27.4 osh-cpython
26 no-host configure.cpython 15,641 9,366 6,551 27.5 osh-native
34 no-host configure.cpython 15,700 9,322 6,557 27.4 osh-native-souffle
4 no-host configure.ocaml 3,845 1,699 1,185 20.6 bash
12 no-host configure.ocaml 3,775 1,612 1,184 20.4 dash
20 no-host configure.ocaml 4,757 2,246 1,725 20.6 osh-cpython
28 no-host configure.ocaml 3,901 1,675 1,266 20.6 osh-native
36 no-host configure.ocaml 3,896 1,718 1,216 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 26 19.4 bash
13 no-host configure.tcc 42 24 19 19.1 dash
21 no-host configure.tcc 202 146 59 19.4 osh-cpython
29 no-host configure.tcc 49 25 24 19.4 osh-native
37 no-host configure.tcc 49 23 27 19.4 osh-native-souffle
3 no-host configure.util-linux 14,289 9,154 5,621 30.1 bash
11 no-host configure.util-linux 15,177 9,388 6,294 30.0 dash
19 no-host configure.util-linux 31,843 20,897 12,061 30.1 osh-cpython
27 no-host configure.util-linux 14,660 8,986 5,874 30.1 osh-native
35 no-host configure.util-linux 14,502 8,786 5,905 30.1 osh-native-souffle
6 no-host configure.yash 1,862 1,055 816 24.2 bash
14 no-host configure.yash 1,827 1,083 747 24.5 dash
22 no-host configure.yash 2,488 1,537 993 24.5 osh-cpython
30 no-host configure.yash 1,884 1,077 811 24.5 osh-native
38 no-host configure.yash 1,867 1,021 850 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 49 37 12 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 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,551 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,235 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,236 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,305 0 0 0 8 0 1,986 47 bash
9 no-host bin-true 67,415 0 0 0 8 0 1,988 54 dash
17 no-host bin-true 756,872 0 0 0 8 0 1,994 264 osh-cpython
25 no-host bin-true 125,194 0 0 0 16 0 1,993 96 osh-native
33 no-host bin-true 124,890 0 0 0 16 0 1,992 95 osh-native-souffle
2 no-host configure.cpython 2,218,461 0 0 0 32,928 0 14,569 1,236 bash
10 no-host configure.cpython 2,243,362 0 0 0 32,992 0 14,625 1,054 dash
18 no-host configure.cpython 6,211,875 0 0 0 27,512 0 13,296 1,252 osh-cpython
26 no-host configure.cpython 2,224,274 0 0 0 27,520 0 13,250 1,000 osh-native
34 no-host configure.cpython 2,211,150 0 0 0 27,520 0 13,176 947 osh-native-souffle
4 no-host configure.ocaml 410,565 0 0 0 5,120 0 1,941 155 bash
12 no-host configure.ocaml 390,986 0 0 0 5,112 0 1,926 134 dash
20 no-host configure.ocaml 645,903 0 0 0 5,112 0 1,853 192 osh-cpython
28 no-host configure.ocaml 413,386 0 0 0 5,120 0 1,928 166 osh-native
36 no-host configure.ocaml 412,862 0 0 0 5,120 0 1,925 142 osh-native-souffle
5 no-host configure.tcc 6,528 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,524 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,929 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,104,191 0 0 0 42,400 0 18,525 1,134 bash
11 no-host configure.util-linux 2,269,516 0 0 0 42,584 0 17,475 1,152 dash
19 no-host configure.util-linux 5,334,037 17 0 0 39,112 0 16,987 1,347 osh-cpython
27 no-host configure.util-linux 2,006,404 0 0 0 39,128 0 16,942 1,026 osh-native
35 no-host configure.util-linux 1,992,236 1 0 0 39,136 0 16,973 873 osh-native-souffle
6 no-host configure.yash 255,651 0 0 0 4,120 0 870 90 bash
14 no-host configure.yash 244,578 0 0 0 3,720 0 869 176 dash
22 no-host configure.yash 386,411 0 0 0 3,728 0 854 101 osh-cpython
30 no-host configure.yash 258,262 0 0 0 3,736 0 851 81 osh-native
38 no-host configure.yash 258,360 0 0 0 3,736 0 849 89 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,735 0 0 0 8 0 7 6 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-4af0c19a
dash dash-0ebcf347
osh-cpython osh-ed4903ef
osh-native osh-d461c62e
osh-native-souffle osh-dd7de8a8
host label host id
no-host no-host-556df3ee