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 18 9 475 22 20 26.03 1.20
bin-true no-host 654 521 2,396 783 788 3.66 1.20
configure.cpython no-host 14,779 14,618 28,557 14,818 14,768 1.93 1.00
configure.ocaml no-host 3,736 3,690 4,615 3,738 3,754 1.24 1.00
configure.tcc no-host 46 40 204 48 47 4.40 1.03
configure.util-linux no-host 13,580 14,383 31,517 13,904 13,915 2.32 1.02
configure.yash no-host 1,780 1,740 2,436 1,785 1,785 1.37 1.00
hello-world no-host 1 1 55 3 3 42.13 2.12

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,531 1,085 24,159 3,209 3,067 9.55 1.27
bin-true no-host 106,373 66,360 804,418 127,246 126,261 7.56 1.20
configure.cpython no-host 1,990,058 2,016,572 6,107,883 2,011,519 1,999,940 3.07 1.01
configure.ocaml no-host 373,118 353,708 615,875 376,802 376,363 1.65 1.01
configure.tcc no-host 6,122 5,013 24,054 6,487 6,446 3.93 1.06
configure.util-linux no-host 1,921,102 2,075,567 5,304,060 1,817,527 1,811,687 2.76 0.95
configure.yash no-host 233,665 221,651 368,903 235,689 235,605 1.58 1.01
hello-world no-host 148 75 3,962 348 345 26.77 2.35

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 22.7 8.9 8.4 5.25 2.06
bin-true no-host 3.0 1.4 18.5 8.3 7.6 6.15 2.74
configure.cpython no-host 29.1 29.2 29.2 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.8 22.6 22.6 1.01 1.00
configure.tcc no-host 19.7 19.6 19.7 19.6 19.7 1.00 0.99
configure.util-linux no-host 30.3 30.3 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.4 26.3 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.38 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 783 1 2 2.6 8.3 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 14,818 2 71 15.5 29.2 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 13,904 3 65 21.6 30.3 2,709,214 53,761 65,725 114,372 1,296,230 1,298,612 32,241 41 131,450 1
configure.ocaml no-host 3,738 1 2 2.6 22.6 149,859 11,178 5,221 7,733 70,879 71,247 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,785 1 2 2.6 26.3 139,881 8,045 6,700 6,397 68,350 65,134 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,337 64,419 42,627 4,544 54,462 57,331 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 788 1 2 2.6 7.6 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 14,768 1 66 15.4 29.1 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 13,915 3 63 21.6 30.3 2,709,214 53,738 65,720 114,374 1,296,230 1,298,610 32,241 41 131,440 1
configure.ocaml no-host 3,754 1 2 2.6 22.6 149,859 11,173 5,216 7,735 70,879 71,245 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,785 1 2 2.6 26.4 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.4 116,336 64,414 42,622 4,545 54,462 57,329 277 3 85,244 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 18 12 7 4.3 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 475 418 60 22.7 osh-cpython
31 no-host abuild-print-help 22 14 8 8.9 osh-native
39 no-host abuild-print-help 20 12 9 8.4 osh-native-souffle
1 no-host bin-true 654 293 396 3.0 bash
9 no-host bin-true 521 273 260 1.4 dash
17 no-host bin-true 2,396 823 1,831 18.5 osh-cpython
25 no-host bin-true 783 301 498 8.3 osh-native
33 no-host bin-true 788 291 512 7.6 osh-native-souffle
2 no-host configure.cpython 14,779 6,597 8,597 29.1 bash
10 no-host configure.cpython 14,618 6,615 8,427 29.2 dash
18 no-host configure.cpython 28,557 14,224 16,208 29.2 osh-cpython
26 no-host configure.cpython 14,818 6,420 8,682 29.2 osh-native
34 no-host configure.cpython 14,768 6,473 8,580 29.1 osh-native-souffle
4 no-host configure.ocaml 3,736 1,298 1,479 22.6 bash
12 no-host configure.ocaml 3,690 1,298 1,413 22.6 dash
20 no-host configure.ocaml 4,615 1,921 1,910 22.8 osh-cpython
28 no-host configure.ocaml 3,738 1,320 1,457 22.6 osh-native
36 no-host configure.ocaml 3,754 1,289 1,505 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 27 19.7 bash
13 no-host configure.tcc 40 19 22 19.6 dash
21 no-host configure.tcc 204 144 64 19.7 osh-cpython
29 no-host configure.tcc 48 21 27 19.6 osh-native
37 no-host configure.tcc 47 18 29 19.7 osh-native-souffle
3 no-host configure.util-linux 13,580 5,763 8,300 30.3 bash
11 no-host configure.util-linux 14,383 5,929 8,967 30.3 dash
19 no-host configure.util-linux 31,517 17,899 14,709 30.2 osh-cpython
27 no-host configure.util-linux 13,904 5,534 8,588 30.3 osh-native
35 no-host configure.util-linux 13,915 5,533 8,596 30.3 osh-native-souffle
6 no-host configure.yash 1,780 913 877 26.4 bash
14 no-host configure.yash 1,740 862 881 26.4 dash
22 no-host configure.yash 2,436 1,326 1,152 26.4 osh-cpython
30 no-host configure.yash 1,785 903 887 26.3 osh-native
38 no-host configure.yash 1,785 883 907 26.4 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 55 36 20 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 1 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,531 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,159 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,067 0 0 0 16 0 39 7 osh-native-souffle
1 no-host bin-true 106,373 0 0 0 8 0 1,977 204 bash
9 no-host bin-true 66,360 0 0 0 8 0 1,975 145 dash
17 no-host bin-true 804,418 0 0 0 8 0 1,987 408 osh-cpython
25 no-host bin-true 127,246 0 0 0 16 0 1,974 115 osh-native
33 no-host bin-true 126,261 0 0 0 16 0 1,979 259 osh-native-souffle
2 no-host configure.cpython 1,990,058 0 0 0 32,928 0 14,236 1,197 bash
10 no-host configure.cpython 2,016,572 0 0 0 32,992 0 14,348 1,282 dash
18 no-host configure.cpython 6,107,883 0 0 0 27,512 0 13,079 1,173 osh-cpython
26 no-host configure.cpython 2,011,519 0 0 0 27,520 0 13,108 1,117 osh-native
34 no-host configure.cpython 1,999,940 0 0 0 27,520 0 13,045 1,173 osh-native-souffle
4 no-host configure.ocaml 373,118 0 0 0 5,120 0 1,956 199 bash
12 no-host configure.ocaml 353,708 0 0 0 5,112 0 1,937 179 dash
20 no-host configure.ocaml 615,875 0 0 0 5,112 0 1,850 198 osh-cpython
28 no-host configure.ocaml 376,802 0 0 0 5,120 0 1,922 222 osh-native
36 no-host configure.ocaml 376,363 0 0 0 5,120 0 1,924 218 osh-native-souffle
5 no-host configure.tcc 6,122 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,013 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,054 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,487 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,446 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,921,102 0 0 0 42,400 0 18,465 1,310 bash
11 no-host configure.util-linux 2,075,567 1 0 0 42,584 0 17,427 1,425 dash
19 no-host configure.util-linux 5,304,060 7 0 0 39,120 0 17,004 1,328 osh-cpython
27 no-host configure.util-linux 1,817,527 3 0 0 39,120 0 17,008 1,330 osh-native
35 no-host configure.util-linux 1,811,687 0 0 0 39,128 0 17,021 1,110 osh-native-souffle
6 no-host configure.yash 233,665 0 0 0 4,120 0 871 108 bash
14 no-host configure.yash 221,651 0 0 0 3,720 0 868 108 dash
22 no-host configure.yash 368,903 0 0 0 3,728 0 856 133 osh-cpython
30 no-host configure.yash 235,689 0 0 0 3,736 0 851 102 osh-native
38 no-host configure.yash 235,605 0 0 0 3,736 0 846 88 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,962 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d6e790cc
dash dash-0ebcf347
osh-cpython osh-24aa4232
osh-native osh-c92416cf
osh-native-souffle osh-270eb5e0
host label host id
no-host no-host-e4839999