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 467 23 22 23.96 1.19
bin-true no-host 676 547 2,324 824 848 3.44 1.22
configure.cpython no-host 15,248 15,259 29,011 15,533 16,143 1.90 1.02
configure.ocaml no-host 3,860 3,777 4,699 3,975 3,976 1.22 1.03
configure.tcc no-host 48 42 209 51 51 4.34 1.06
configure.util-linux no-host 14,148 15,014 31,792 14,835 15,003 2.25 1.05
configure.yash no-host 1,835 1,809 2,493 1,904 1,919 1.36 1.04
hello-world no-host 2 1 56 3 3 36.83 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,529 1,129 23,415 3,165 3,088 9.26 1.25
bin-true no-host 106,363 65,437 757,866 126,239 123,191 7.13 1.19
configure.cpython no-host 2,222,617 2,244,109 6,197,683 2,227,578 2,208,945 2.79 1.00
configure.ocaml no-host 410,349 391,207 643,505 413,355 412,768 1.57 1.01
configure.tcc no-host 6,537 5,486 23,902 6,946 6,896 3.66 1.06
configure.util-linux no-host 2,093,374 2,260,212 5,360,183 2,001,262 1,993,384 2.56 0.96
configure.yash no-host 256,086 244,498 386,103 258,085 258,363 1.51 1.01
hello-world no-host 153 81 3,952 348 338 25.83 2.27

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.7 9.0 8.7 5.25 2.09
bin-true no-host 2.8 1.6 18.5 8.0 7.7 6.73 2.90
configure.cpython no-host 27.4 27.4 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.4 30.1 30.1 30.1 30.3 0.99 0.99
configure.yash no-host 24.4 24.4 24.2 24.4 24.2 0.99 1.00
hello-world no-host 2.9 1.3 18.3 6.3 6.0 6.33 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.0 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,533 1 66 14.9 27.5 1,771,804 49,616 28,523 85,427 878,138 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,835 3 65 21.2 30.1 2,702,550 53,777 65,702 108,699 1,290,655 1,303,196 32,241 41 131,404 1
configure.ocaml no-host 3,975 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,904 1 2 2.5 24.4 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 6.0 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 848 1 2 2.6 7.7 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 16,143 1 68 14.9 27.4 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 15,003 3 65 21.2 30.3 2,702,550 53,704 65,640 108,701 1,290,655 1,303,194 32,241 41 131,280 1
configure.ocaml no-host 3,976 1 2 2.6 20.6 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,919 1 2 2.5 24.2 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 10 10 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 467 410 60 22.7 osh-cpython
31 no-host abuild-print-help 23 17 7 9.0 osh-native
39 no-host abuild-print-help 22 22 0 8.7 osh-native-souffle
1 no-host bin-true 676 486 220 2.8 bash
9 no-host bin-true 547 422 132 1.6 dash
17 no-host bin-true 2,324 1,447 1,148 18.5 osh-cpython
25 no-host bin-true 824 559 278 8.0 osh-native
33 no-host bin-true 848 595 266 7.7 osh-native-souffle
2 no-host configure.cpython 15,248 9,272 6,387 27.4 bash
10 no-host configure.cpython 15,259 9,310 6,383 27.4 dash
18 no-host configure.cpython 29,011 17,549 13,289 27.3 osh-cpython
26 no-host configure.cpython 15,533 9,207 6,520 27.5 osh-native
34 no-host configure.cpython 16,143 9,647 6,616 27.4 osh-native-souffle
4 no-host configure.ocaml 3,860 1,620 1,273 20.6 bash
12 no-host configure.ocaml 3,777 1,606 1,190 20.6 dash
20 no-host configure.ocaml 4,699 2,320 1,591 20.6 osh-cpython
28 no-host configure.ocaml 3,975 1,807 1,210 20.6 osh-native
36 no-host configure.ocaml 3,976 1,659 1,361 20.6 osh-native-souffle
5 no-host configure.tcc 48 24 25 19.3 bash
13 no-host configure.tcc 42 34 8 19.3 dash
21 no-host configure.tcc 209 154 58 19.4 osh-cpython
29 no-host configure.tcc 51 29 22 19.3 osh-native
37 no-host configure.tcc 51 25 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,148 8,811 5,817 30.4 bash
11 no-host configure.util-linux 15,014 9,255 6,259 30.1 dash
19 no-host configure.util-linux 31,792 21,289 11,578 30.1 osh-cpython
27 no-host configure.util-linux 14,835 8,898 6,136 30.1 osh-native
35 no-host configure.util-linux 15,003 8,985 6,227 30.3 osh-native-souffle
6 no-host configure.yash 1,835 1,054 788 24.4 bash
14 no-host configure.yash 1,809 1,045 767 24.4 dash
22 no-host configure.yash 2,493 1,481 1,054 24.2 osh-cpython
30 no-host configure.yash 1,904 1,106 802 24.4 osh-native
38 no-host configure.yash 1,919 1,165 756 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 56 32 24 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,529 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,415 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,088 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,363 0 0 0 8 0 1,993 128 bash
9 no-host bin-true 65,437 0 0 0 8 0 1,986 40 dash
17 no-host bin-true 757,866 0 0 0 8 0 1,994 188 osh-cpython
25 no-host bin-true 126,239 0 0 0 16 0 1,989 124 osh-native
33 no-host bin-true 123,191 0 0 0 16 0 1,981 110 osh-native-souffle
2 no-host configure.cpython 2,222,617 0 0 0 32,928 0 14,456 1,017 bash
10 no-host configure.cpython 2,244,109 0 0 0 32,992 0 14,521 878 dash
18 no-host configure.cpython 6,197,683 1 0 0 27,512 0 13,232 1,063 osh-cpython
26 no-host configure.cpython 2,227,578 0 0 0 27,520 0 13,386 988 osh-native
34 no-host configure.cpython 2,208,945 0 0 0 27,520 0 13,411 1,063 osh-native-souffle
4 no-host configure.ocaml 410,349 0 0 0 5,120 0 1,946 152 bash
12 no-host configure.ocaml 391,207 0 0 0 5,112 0 1,927 150 dash
20 no-host configure.ocaml 643,505 0 0 0 5,112 0 1,868 162 osh-cpython
28 no-host configure.ocaml 413,355 0 0 0 5,120 0 1,929 153 osh-native
36 no-host configure.ocaml 412,768 0 0 0 5,120 0 1,930 167 osh-native-souffle
5 no-host configure.tcc 6,537 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,902 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,946 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,896 0 0 0 104 0 46 3 osh-native-souffle
3 no-host configure.util-linux 2,093,374 3 0 0 42,400 0 18,586 867 bash
11 no-host configure.util-linux 2,260,212 1 0 0 42,584 0 17,426 1,186 dash
19 no-host configure.util-linux 5,360,183 13 0 0 39,128 0 16,928 1,195 osh-cpython
27 no-host configure.util-linux 2,001,262 1 0 0 39,128 0 16,938 991 osh-native
35 no-host configure.util-linux 1,993,384 0 0 0 39,136 0 16,890 927 osh-native-souffle
6 no-host configure.yash 256,086 0 0 0 4,120 0 866 89 bash
14 no-host configure.yash 244,498 0 0 0 3,720 0 862 88 dash
22 no-host configure.yash 386,103 0 0 0 3,728 0 845 86 osh-cpython
30 no-host configure.yash 258,085 0 0 0 3,736 0 847 94 osh-native
38 no-host configure.yash 258,363 0 0 0 3,736 0 845 96 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,952 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d2d991be
dash dash-0ebcf347
osh-cpython osh-f1df893a
osh-native osh-83d4f518
osh-native-souffle osh-b76edf43
host label host id
no-host no-host-556df3ee