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 20 9 454 22 21 23.13 1.12
bin-true no-host 678 540 2,239 816 805 3.30 1.20
configure.cpython no-host 14,887 15,178 28,442 15,142 15,252 1.91 1.02
configure.ocaml no-host 3,768 3,735 4,611 3,798 3,806 1.22 1.01
configure.tcc no-host 47 41 194 49 48 4.13 1.05
configure.util-linux no-host 14,006 14,951 31,084 14,288 14,385 2.22 1.02
configure.yash no-host 1,804 1,761 2,439 1,817 1,809 1.35 1.01
hello-world no-host 1 1 48 3 3 33.03 1.92

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,579 1,105 23,305 3,233 3,128 9.04 1.25
bin-true no-host 108,318 65,460 760,267 125,071 125,893 7.02 1.15
configure.cpython no-host 2,217,112 2,244,970 6,213,834 2,230,775 2,213,759 2.80 1.01
configure.ocaml no-host 410,605 391,083 644,509 413,584 412,959 1.57 1.01
configure.tcc no-host 6,548 5,469 23,509 6,998 6,912 3.59 1.07
configure.util-linux no-host 2,106,251 2,260,885 5,332,280 1,999,654 1,993,829 2.53 0.95
configure.yash no-host 256,061 244,972 387,425 258,366 256,490 1.51 1.01
hello-world no-host 152 82 3,738 351 341 24.59 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.5 3.7 21.8 9.0 8.7 4.88 2.03
bin-true no-host 3.0 1.4 17.7 8.1 7.6 5.87 2.70
configure.cpython no-host 27.4 27.5 27.3 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.1 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.0 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.5 24.5 1.00 1.01
hello-world no-host 2.9 1.4 17.7 6.3 5.9 6.14 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.1 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,142 1 61 15.0 27.4 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,288 3 60 21.3 30.3 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,798 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 49 0 0 1.3 19.1 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,817 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 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 805 1 2 2.6 7.6 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,252 1 58 14.9 27.3 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,385 3 58 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,806 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 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,809 1 2 2.6 24.5 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 20 15 5 4.5 bash
15 no-host abuild-print-help 9 8 1 3.7 dash
23 no-host abuild-print-help 454 408 49 21.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 678 500 208 3.0 bash
9 no-host bin-true 540 405 144 1.4 dash
17 no-host bin-true 2,239 1,502 997 17.7 osh-cpython
25 no-host bin-true 816 606 224 8.1 osh-native
33 no-host bin-true 805 571 250 7.6 osh-native-souffle
2 no-host configure.cpython 14,887 8,880 6,389 27.4 bash
10 no-host configure.cpython 15,178 9,076 6,525 27.5 dash
18 no-host configure.cpython 28,442 17,226 13,054 27.3 osh-cpython
26 no-host configure.cpython 15,142 8,877 6,524 27.4 osh-native
34 no-host configure.cpython 15,252 8,878 6,446 27.3 osh-native-souffle
4 no-host configure.ocaml 3,768 1,593 1,213 20.6 bash
12 no-host configure.ocaml 3,735 1,571 1,183 20.4 dash
20 no-host configure.ocaml 4,611 2,164 1,655 20.6 osh-cpython
28 no-host configure.ocaml 3,798 1,613 1,222 20.4 osh-native
36 no-host configure.ocaml 3,806 1,602 1,240 20.6 osh-native-souffle
5 no-host configure.tcc 47 24 24 19.3 bash
13 no-host configure.tcc 41 28 13 19.4 dash
21 no-host configure.tcc 194 146 51 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.1 osh-native
37 no-host configure.tcc 48 31 17 19.3 osh-native-souffle
3 no-host configure.util-linux 14,006 8,750 5,722 30.1 bash
11 no-host configure.util-linux 14,951 9,142 6,298 30.0 dash
19 no-host configure.util-linux 31,084 20,800 11,352 30.0 osh-cpython
27 no-host configure.util-linux 14,288 8,618 5,863 30.3 osh-native
35 no-host configure.util-linux 14,385 8,656 5,917 30.1 osh-native-souffle
6 no-host configure.yash 1,804 1,025 784 24.2 bash
14 no-host configure.yash 1,761 1,026 738 24.4 dash
22 no-host configure.yash 2,439 1,450 1,027 24.2 osh-cpython
30 no-host configure.yash 1,817 1,100 722 24.5 osh-native
38 no-host configure.yash 1,809 1,056 756 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 40 8 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,579 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,305 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,233 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,128 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,318 0 0 0 8 0 1,995 167 bash
9 no-host bin-true 65,460 0 0 0 8 0 1,992 41 dash
17 no-host bin-true 760,267 0 0 0 8 0 1,999 94 osh-cpython
25 no-host bin-true 125,071 0 0 0 16 0 1,993 193 osh-native
33 no-host bin-true 125,893 0 0 0 16 0 1,986 91 osh-native-souffle
2 no-host configure.cpython 2,217,112 0 0 0 32,928 0 14,517 1,249 bash
10 no-host configure.cpython 2,244,970 0 0 0 32,992 0 14,630 1,348 dash
18 no-host configure.cpython 6,213,834 0 0 0 27,512 0 13,290 1,198 osh-cpython
26 no-host configure.cpython 2,230,775 0 0 0 27,520 0 13,284 1,095 osh-native
34 no-host configure.cpython 2,213,759 0 0 0 27,520 0 13,276 1,045 osh-native-souffle
4 no-host configure.ocaml 410,605 0 0 0 5,120 0 1,949 194 bash
12 no-host configure.ocaml 391,083 0 0 0 5,112 0 1,882 145 dash
20 no-host configure.ocaml 644,509 0 0 0 5,112 0 1,853 186 osh-cpython
28 no-host configure.ocaml 413,584 0 0 0 5,120 0 1,922 172 osh-native
36 no-host configure.ocaml 412,959 0 0 0 5,120 0 1,934 152 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,509 0 0 0 96 0 52 9 osh-cpython
29 no-host configure.tcc 6,998 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,106,251 0 0 0 42,400 0 18,540 1,023 bash
11 no-host configure.util-linux 2,260,885 0 0 0 42,592 0 17,471 1,012 dash
19 no-host configure.util-linux 5,332,280 13 0 0 39,112 0 17,006 1,222 osh-cpython
27 no-host configure.util-linux 1,999,654 0 0 0 39,120 0 16,921 1,090 osh-native
35 no-host configure.util-linux 1,993,829 4 0 0 39,128 0 17,016 983 osh-native-souffle
6 no-host configure.yash 256,061 0 0 0 4,120 0 873 76 bash
14 no-host configure.yash 244,972 0 0 0 3,720 0 866 81 dash
22 no-host configure.yash 387,425 0 0 0 3,728 0 857 94 osh-cpython
30 no-host configure.yash 258,366 0 0 0 3,736 0 848 79 osh-native
38 no-host configure.yash 256,490 0 0 0 3,736 0 845 77 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,738 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4b6a591f
dash dash-0ebcf347
osh-cpython osh-514b1ce0
osh-native osh-5dc70f46
osh-native-souffle osh-82c4e9a1
host label host id
no-host no-host-556df3ee