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 470 22 21 24.87 1.15
bin-true no-host 662 528 2,338 791 793 3.53 1.20
configure.cpython no-host 14,805 14,817 28,839 14,970 14,905 1.95 1.01
configure.ocaml no-host 3,778 3,675 4,612 3,782 3,780 1.22 1.00
configure.tcc no-host 46 41 204 48 47 4.43 1.04
configure.util-linux no-host 13,786 14,506 31,453 14,069 13,904 2.28 1.02
configure.yash no-host 1,790 1,750 2,466 1,808 1,818 1.38 1.01
hello-world no-host 1 1 57 3 3 39.43 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,522 1,096 23,904 3,159 3,125 9.48 1.25
bin-true no-host 106,371 66,381 781,324 127,162 127,174 7.35 1.20
configure.cpython no-host 1,996,874 2,019,247 6,011,356 2,004,882 1,983,414 3.01 1.00
configure.ocaml no-host 373,362 353,834 610,818 376,118 375,677 1.64 1.01
configure.tcc no-host 6,083 5,010 23,806 6,499 6,451 3.91 1.07
configure.util-linux no-host 1,904,798 2,071,387 5,227,240 1,803,367 1,797,224 2.74 0.95
configure.yash no-host 232,924 222,370 366,250 234,587 235,203 1.57 1.01
hello-world no-host 147 76 3,966 340 340 26.98 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.5 22.9 9.2 8.7 5.13 2.06
bin-true no-host 2.9 1.4 18.5 8.3 7.9 6.43 2.86
configure.cpython no-host 29.1 29.2 29.2 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.5 22.6 22.6 1.00 1.01
configure.tcc no-host 19.8 19.7 19.5 19.6 19.7 0.99 0.99
configure.util-linux no-host 30.2 30.2 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.3 26.3 26.5 26.4 0.99 1.00
hello-world no-host 2.8 1.4 18.4 6.3 5.9 6.69 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,799 3,799 0 695 1,865 1,239 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.3 153,763 12,331 2,896 8,744 76,329 68,690 3,008 3 50,000 0
configure.cpython no-host 14,970 1 68 14.9 29.1 1,767,685 49,062 28,521 85,428 875,388 806,869 25,736 60 50,000 0
configure.util-linux no-host 14,069 3 65 21.2 30.3 2,699,001 29,942 65,720 108,700 1,288,285 1,302,016 32,241 41 131,440 1
configure.ocaml no-host 3,782 1 2 2.6 22.6 149,563 11,121 5,216 7,509 70,620 71,434 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,549 30,549 0 1,519 14,612 14,418 271 0 50,000 0
configure.yash no-host 1,808 1 2 2.5 26.5 139,279 8,033 6,695 5,990 67,849 65,440 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,309 64,412 42,622 4,533 54,443 57,333 277 3 85,244 1
hello-world no-host 3 0 0 0.2 5.9 3,798 3,798 0 696 1,865 1,237 2 0 50,000 0
bin-true no-host 793 1 2 2.6 7.9 153,762 12,118 2,832 8,745 76,329 68,688 3,008 3 50,000 0
configure.cpython no-host 14,905 2 68 14.9 29.2 1,767,684 37,983 24,932 85,429 875,388 806,867 25,736 60 50,000 0
configure.util-linux no-host 13,904 3 63 21.2 30.3 2,699,001 29,878 65,656 108,702 1,288,285 1,302,014 32,241 41 131,312 1
configure.ocaml no-host 3,780 1 2 2.6 22.6 149,563 11,057 5,152 7,511 70,620 71,432 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,549 30,549 0 1,521 14,612 14,416 271 0 50,000 0
configure.yash no-host 1,818 1 2 2.5 26.4 139,279 7,969 6,631 5,992 67,849 65,438 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,308 64,348 42,558 4,534 54,443 57,331 277 3 85,116 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 9 4.5 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 470 411 62 22.9 osh-cpython
31 no-host abuild-print-help 22 11 12 9.2 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 662 314 381 2.9 bash
9 no-host bin-true 528 273 264 1.4 dash
17 no-host bin-true 2,338 798 1,800 18.5 osh-cpython
25 no-host bin-true 791 301 507 8.3 osh-native
33 no-host bin-true 793 284 525 7.9 osh-native-souffle
2 no-host configure.cpython 14,805 6,688 8,541 29.1 bash
10 no-host configure.cpython 14,817 6,684 8,583 29.2 dash
18 no-host configure.cpython 28,839 14,456 16,325 29.2 osh-cpython
26 no-host configure.cpython 14,970 6,672 8,592 29.1 osh-native
34 no-host configure.cpython 14,905 6,653 8,535 29.2 osh-native-souffle
4 no-host configure.ocaml 3,778 1,309 1,511 22.5 bash
12 no-host configure.ocaml 3,675 1,271 1,426 22.6 dash
20 no-host configure.ocaml 4,612 1,884 1,943 22.5 osh-cpython
28 no-host configure.ocaml 3,782 1,340 1,482 22.6 osh-native
36 no-host configure.ocaml 3,780 1,308 1,510 22.6 osh-native-souffle
5 no-host configure.tcc 46 22 24 19.8 bash
13 no-host configure.tcc 41 18 24 19.7 dash
21 no-host configure.tcc 204 137 71 19.5 osh-cpython
29 no-host configure.tcc 48 26 22 19.6 osh-native
37 no-host configure.tcc 47 21 27 19.7 osh-native-souffle
3 no-host configure.util-linux 13,786 5,767 8,527 30.2 bash
11 no-host configure.util-linux 14,506 5,836 9,206 30.2 dash
19 no-host configure.util-linux 31,453 17,785 14,795 30.2 osh-cpython
27 no-host configure.util-linux 14,069 5,580 8,707 30.3 osh-native
35 no-host configure.util-linux 13,904 5,605 8,527 30.3 osh-native-souffle
6 no-host configure.yash 1,790 888 912 26.4 bash
14 no-host configure.yash 1,750 909 845 26.3 dash
22 no-host configure.yash 2,466 1,339 1,171 26.3 osh-cpython
30 no-host configure.yash 1,808 892 918 26.5 osh-native
38 no-host configure.yash 1,818 923 900 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 30 26 18.4 osh-cpython
24 no-host hello-world 3 1 1 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,522 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,904 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,159 0 0 0 16 0 38 0 osh-native
39 no-host abuild-print-help 3,125 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,371 0 0 0 8 0 1,979 179 bash
9 no-host bin-true 66,381 0 0 0 8 0 1,974 128 dash
17 no-host bin-true 781,324 0 0 0 8 0 1,990 448 osh-cpython
25 no-host bin-true 127,162 0 0 0 16 0 1,977 102 osh-native
33 no-host bin-true 127,174 0 0 0 16 0 1,971 154 osh-native-souffle
2 no-host configure.cpython 1,996,874 0 0 0 32,960 0 14,203 1,154 bash
10 no-host configure.cpython 2,019,247 0 0 0 33,000 0 14,346 1,127 dash
18 no-host configure.cpython 6,011,356 1 0 0 27,512 0 13,059 1,187 osh-cpython
26 no-host configure.cpython 2,004,882 0 0 0 27,520 0 13,093 1,223 osh-native
34 no-host configure.cpython 1,983,414 0 0 0 27,520 0 12,996 1,149 osh-native-souffle
4 no-host configure.ocaml 373,362 0 0 0 5,120 0 1,941 194 bash
12 no-host configure.ocaml 353,834 0 0 0 5,112 0 1,924 178 dash
20 no-host configure.ocaml 610,818 1 0 0 5,112 0 1,866 185 osh-cpython
28 no-host configure.ocaml 376,118 0 0 0 5,120 0 1,925 214 osh-native
36 no-host configure.ocaml 375,677 0 0 0 5,120 0 1,921 212 osh-native-souffle
5 no-host configure.tcc 6,083 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,010 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,806 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,499 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,451 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,904,798 2 0 0 42,400 0 18,496 1,032 bash
11 no-host configure.util-linux 2,071,387 1 0 0 42,584 0 17,337 1,388 dash
19 no-host configure.util-linux 5,227,240 9 0 0 39,152 0 17,102 1,275 osh-cpython
27 no-host configure.util-linux 1,803,367 1 0 0 39,120 0 17,030 1,204 osh-native
35 no-host configure.util-linux 1,797,224 0 0 0 39,128 0 16,965 1,154 osh-native-souffle
6 no-host configure.yash 232,924 0 0 0 4,120 0 868 78 bash
14 no-host configure.yash 222,370 0 0 0 3,720 0 868 75 dash
22 no-host configure.yash 366,250 0 0 0 3,728 0 851 115 osh-cpython
30 no-host configure.yash 234,587 0 0 0 3,736 0 850 99 osh-native
38 no-host configure.yash 235,203 0 0 0 3,736 0 852 90 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 1 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,966 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-26fb9f49
dash dash-0ebcf347
osh-cpython osh-2ddf394f
osh-native osh-73a69ed4
osh-native-souffle osh-b371966c
host label host id
no-host no-host-e4839999