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 461 22 21 23.89 1.15
bin-true no-host 675 540 2,260 814 810 3.35 1.21
configure.cpython no-host 15,040 15,110 28,858 15,247 15,422 1.92 1.01
configure.ocaml no-host 3,828 3,758 4,665 3,831 3,841 1.22 1.00
configure.tcc no-host 48 41 195 48 49 4.08 1.01
configure.util-linux no-host 14,032 14,906 31,275 14,467 14,376 2.23 1.03
configure.yash no-host 1,821 1,776 2,467 1,842 1,831 1.35 1.01
hello-world no-host 2 1 50 3 3 29.86 1.71

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,543 1,109 23,286 3,223 3,133 9.16 1.27
bin-true no-host 107,298 65,392 769,968 127,160 124,884 7.18 1.19
configure.cpython no-host 2,229,362 2,238,564 6,210,888 2,229,396 2,218,780 2.79 1.00
configure.ocaml no-host 410,795 391,338 647,208 413,882 412,897 1.58 1.01
configure.tcc no-host 6,548 5,480 23,554 6,990 6,914 3.60 1.07
configure.util-linux no-host 2,111,720 2,268,214 5,335,559 2,001,877 1,994,780 2.53 0.95
configure.yash no-host 256,608 244,580 387,136 258,437 257,340 1.51 1.01
hello-world no-host 155 81 3,739 349 343 24.12 2.25

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 21.9 9.0 8.8 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.4 27.4 27.4 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.1 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.0 30.1 30.3 0.99 1.00
configure.yash no-host 24.2 24.5 24.2 24.5 24.5 1.00 1.01
hello-world no-host 2.9 1.4 17.7 6.3 5.6 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 814 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,247 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,467 3 61 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,831 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.4 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,842 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.6 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 810 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,422 1 60 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,376 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,841 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,831 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.8 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.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 461 425 40 21.9 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.8 osh-native-souffle
1 no-host bin-true 675 491 213 3.0 bash
9 no-host bin-true 540 410 139 1.6 dash
17 no-host bin-true 2,260 1,430 1,088 17.7 osh-cpython
25 no-host bin-true 814 585 244 7.9 osh-native
33 no-host bin-true 810 578 246 7.7 osh-native-souffle
2 no-host configure.cpython 15,040 9,004 6,427 27.3 bash
10 no-host configure.cpython 15,110 9,001 6,516 27.4 dash
18 no-host configure.cpython 28,858 17,548 13,194 27.4 osh-cpython
26 no-host configure.cpython 15,247 9,001 6,509 27.4 osh-native
34 no-host configure.cpython 15,422 8,948 6,546 27.4 osh-native-souffle
4 no-host configure.ocaml 3,828 1,633 1,232 20.6 bash
12 no-host configure.ocaml 3,758 1,562 1,214 20.4 dash
20 no-host configure.ocaml 4,665 2,223 1,651 20.6 osh-cpython
28 no-host configure.ocaml 3,831 1,721 1,148 20.6 osh-native
36 no-host configure.ocaml 3,841 1,684 1,194 20.6 osh-native-souffle
5 no-host configure.tcc 48 31 17 19.1 bash
13 no-host configure.tcc 41 18 23 19.3 dash
21 no-host configure.tcc 195 142 56 19.3 osh-cpython
29 no-host configure.tcc 48 25 24 19.4 osh-native
37 no-host configure.tcc 49 21 28 19.4 osh-native-souffle
3 no-host configure.util-linux 14,032 8,824 5,683 30.3 bash
11 no-host configure.util-linux 14,906 9,217 6,187 30.3 dash
19 no-host configure.util-linux 31,275 20,849 11,521 30.0 osh-cpython
27 no-host configure.util-linux 14,467 8,700 5,965 30.1 osh-native
35 no-host configure.util-linux 14,376 8,658 5,902 30.3 osh-native-souffle
6 no-host configure.yash 1,821 1,036 793 24.2 bash
14 no-host configure.yash 1,776 981 797 24.5 dash
22 no-host configure.yash 2,467 1,490 1,020 24.2 osh-cpython
30 no-host configure.yash 1,842 1,068 778 24.5 osh-native
38 no-host configure.yash 1,831 1,079 754 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 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 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.6 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,543 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,286 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,223 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,133 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,298 0 0 0 8 0 1,993 56 bash
9 no-host bin-true 65,392 0 0 0 8 0 1,986 69 dash
17 no-host bin-true 769,968 0 0 0 8 0 1,999 328 osh-cpython
25 no-host bin-true 127,160 0 0 0 16 0 1,992 55 osh-native
33 no-host bin-true 124,884 0 0 0 16 0 1,989 135 osh-native-souffle
2 no-host configure.cpython 2,229,362 0 0 0 32,928 0 14,541 1,207 bash
10 no-host configure.cpython 2,238,564 0 0 0 32,992 0 14,689 1,229 dash
18 no-host configure.cpython 6,210,888 0 0 0 27,512 0 13,206 1,328 osh-cpython
26 no-host configure.cpython 2,229,396 0 0 0 27,520 0 13,315 1,077 osh-native
34 no-host configure.cpython 2,218,780 0 0 0 27,520 0 13,267 982 osh-native-souffle
4 no-host configure.ocaml 410,795 0 0 0 5,120 0 1,946 163 bash
12 no-host configure.ocaml 391,338 0 0 0 5,112 0 1,868 172 dash
20 no-host configure.ocaml 647,208 0 0 0 5,112 0 1,849 184 osh-cpython
28 no-host configure.ocaml 413,882 0 0 0 5,120 0 1,929 175 osh-native
36 no-host configure.ocaml 412,897 0 0 0 5,120 0 1,930 175 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,554 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,990 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 47 13 osh-native-souffle
3 no-host configure.util-linux 2,111,720 0 0 0 42,400 0 18,527 990 bash
11 no-host configure.util-linux 2,268,214 0 0 0 42,584 0 17,469 1,242 dash
19 no-host configure.util-linux 5,335,559 9 0 0 39,128 0 16,979 1,272 osh-cpython
27 no-host configure.util-linux 2,001,877 0 0 0 39,128 0 16,949 1,217 osh-native
35 no-host configure.util-linux 1,994,780 0 0 0 39,136 0 16,995 1,088 osh-native-souffle
6 no-host configure.yash 256,608 0 0 0 4,120 0 873 82 bash
14 no-host configure.yash 244,580 0 0 0 3,720 0 868 84 dash
22 no-host configure.yash 387,136 0 0 0 3,728 0 852 79 osh-cpython
30 no-host configure.yash 258,437 0 0 0 3,736 0 849 67 osh-native
38 no-host configure.yash 257,340 0 0 0 3,736 0 852 78 osh-native-souffle
0 no-host hello-world 155 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,739 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b333785b
dash dash-0ebcf347
osh-cpython osh-111c026f
osh-native osh-5daf49a0
osh-native-souffle osh-4a630762
host label host id
no-host no-host-556df3ee