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 10 451 22 22 23.27 1.14
bin-true no-host 679 541 2,230 815 817 3.28 1.20
configure.cpython no-host 15,150 15,276 28,728 15,457 15,507 1.90 1.02
configure.ocaml no-host 3,808 3,767 4,671 3,866 3,842 1.23 1.02
configure.tcc no-host 47 42 195 48 49 4.13 1.02
configure.util-linux no-host 14,160 14,960 31,226 14,526 14,433 2.21 1.03
configure.yash no-host 1,836 1,799 2,469 1,852 1,854 1.34 1.01
hello-world no-host 2 1 50 3 3 32.14 1.85

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,541 1,111 23,261 3,218 3,110 9.15 1.27
bin-true no-host 104,391 65,453 758,904 126,125 125,807 7.27 1.21
configure.cpython no-host 2,220,563 2,238,295 6,218,710 2,224,142 2,213,450 2.80 1.00
configure.ocaml no-host 410,331 390,985 646,475 413,527 412,665 1.58 1.01
configure.tcc no-host 6,566 5,477 23,533 6,988 6,923 3.58 1.06
configure.util-linux no-host 2,105,941 2,265,475 5,320,315 2,005,086 1,995,655 2.53 0.95
configure.yash no-host 256,261 243,357 387,206 258,663 257,620 1.51 1.01
hello-world no-host 153 81 3,738 351 346 24.43 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.5 21.9 9.0 8.5 5.06 2.09
bin-true no-host 2.9 1.4 17.7 7.9 7.6 6.14 2.73
configure.cpython no-host 27.3 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.1 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.5 24.3 24.4 24.5 26.4 0.99 1.00
hello-world no-host 2.8 1.4 17.7 6.2 5.8 6.43 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 815 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,457 1 62 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,526 2 61 21.3 30.3 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,866 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 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,852 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.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 817 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,507 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,433 3 59 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,842 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 49 0 0 1.3 19.1 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,854 1 2 2.6 26.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 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 19 1 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 451 388 66 21.9 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 22 18 4 8.5 osh-native-souffle
1 no-host bin-true 679 499 212 2.9 bash
9 no-host bin-true 541 414 136 1.4 dash
17 no-host bin-true 2,230 1,453 1,037 17.7 osh-cpython
25 no-host bin-true 815 609 221 7.9 osh-native
33 no-host bin-true 817 579 252 7.6 osh-native-souffle
2 no-host configure.cpython 15,150 9,224 6,331 27.3 bash
10 no-host configure.cpython 15,276 9,285 6,409 27.3 dash
18 no-host configure.cpython 28,728 17,386 13,216 27.4 osh-cpython
26 no-host configure.cpython 15,457 9,243 6,475 27.4 osh-native
34 no-host configure.cpython 15,507 9,147 6,472 27.4 osh-native-souffle
4 no-host configure.ocaml 3,808 1,629 1,217 20.6 bash
12 no-host configure.ocaml 3,767 1,543 1,243 20.6 dash
20 no-host configure.ocaml 4,671 2,277 1,605 20.6 osh-cpython
28 no-host configure.ocaml 3,866 1,630 1,276 20.6 osh-native
36 no-host configure.ocaml 3,842 1,620 1,259 20.4 osh-native-souffle
5 no-host configure.tcc 47 21 26 19.3 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 195 141 57 19.3 osh-cpython
29 no-host configure.tcc 48 23 26 19.3 osh-native
37 no-host configure.tcc 49 24 25 19.1 osh-native-souffle
3 no-host configure.util-linux 14,160 8,880 5,757 30.3 bash
11 no-host configure.util-linux 14,960 9,176 6,279 30.1 dash
19 no-host configure.util-linux 31,226 20,904 11,410 30.3 osh-cpython
27 no-host configure.util-linux 14,526 8,788 5,936 30.3 osh-native
35 no-host configure.util-linux 14,433 8,681 5,948 30.3 osh-native-souffle
6 no-host configure.yash 1,836 1,096 748 24.5 bash
14 no-host configure.yash 1,799 1,052 749 24.3 dash
22 no-host configure.yash 2,469 1,502 1,007 24.4 osh-cpython
30 no-host configure.yash 1,852 1,050 805 24.5 osh-native
38 no-host configure.yash 1,854 1,028 830 26.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 33 16 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,541 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,261 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,218 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,110 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 104,391 0 0 0 8 0 1,992 199 bash
9 no-host bin-true 65,453 0 0 0 8 0 1,988 45 dash
17 no-host bin-true 758,904 0 0 0 8 0 1,990 134 osh-cpython
25 no-host bin-true 126,125 0 0 0 16 0 1,994 63 osh-native
33 no-host bin-true 125,807 0 0 0 16 0 1,987 67 osh-native-souffle
2 no-host configure.cpython 2,220,563 0 0 0 32,928 0 14,541 985 bash
10 no-host configure.cpython 2,238,295 0 0 0 32,992 0 14,584 1,154 dash
18 no-host configure.cpython 6,218,710 0 0 0 27,512 0 13,228 1,135 osh-cpython
26 no-host configure.cpython 2,224,142 1 0 0 27,520 0 13,180 1,135 osh-native
34 no-host configure.cpython 2,213,450 0 0 0 27,520 0 13,159 1,063 osh-native-souffle
4 no-host configure.ocaml 410,331 0 0 0 5,120 0 1,949 162 bash
12 no-host configure.ocaml 390,985 0 0 0 5,112 0 1,911 134 dash
20 no-host configure.ocaml 646,475 0 0 0 5,112 0 1,851 217 osh-cpython
28 no-host configure.ocaml 413,527 0 0 0 5,120 0 1,924 159 osh-native
36 no-host configure.ocaml 412,665 0 0 0 5,120 0 1,938 139 osh-native-souffle
5 no-host configure.tcc 6,566 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,533 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,988 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,923 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,105,941 1 0 0 42,400 0 18,614 1,165 bash
11 no-host configure.util-linux 2,265,475 0 0 0 42,584 0 17,402 1,156 dash
19 no-host configure.util-linux 5,320,315 7 0 0 39,128 0 16,979 1,384 osh-cpython
27 no-host configure.util-linux 2,005,086 0 0 0 39,128 0 16,937 1,054 osh-native
35 no-host configure.util-linux 1,995,655 1 0 0 39,136 0 16,945 956 osh-native-souffle
6 no-host configure.yash 256,261 0 0 0 4,120 0 870 78 bash
14 no-host configure.yash 243,357 0 0 0 3,720 0 870 90 dash
22 no-host configure.yash 387,206 0 0 0 3,728 0 851 89 osh-cpython
30 no-host configure.yash 258,663 0 0 0 3,736 0 848 79 osh-native
38 no-host configure.yash 257,620 0 0 0 3,736 0 850 87 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,738 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c1bb811f
dash dash-0ebcf347
osh-cpython osh-25c41805
osh-native osh-6f19c29a
osh-native-souffle osh-3ce5c09d
host label host id
no-host no-host-556df3ee