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 16 9 538 22 21 32.78 1.35
bin-true no-host 622 448 2,541 813 817 4.09 1.31
configure.cpython no-host 14,536 14,564 31,011 15,183 15,329 2.13 1.04
configure.ocaml no-host 3,830 3,729 4,812 3,849 3,831 1.26 1.01
configure.tcc no-host 47 42 225 50 49 4.76 1.05
configure.util-linux no-host 13,209 13,861 33,604 14,146 14,291 2.54 1.07
configure.yash no-host 1,793 1,721 2,512 1,801 1,767 1.40 1.00
hello-world no-host 1 1 65 3 3 48.49 2.26

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,423 1,155 24,930 3,488 3,346 10.29 1.44
bin-true no-host 101,939 49,370 833,785 138,196 136,302 8.18 1.36
configure.cpython no-host 1,622,254 1,645,906 6,009,701 1,803,151 1,799,969 3.70 1.11
configure.ocaml no-host 298,983 280,684 558,364 317,162 315,373 1.87 1.06
configure.tcc no-host 5,190 4,210 23,914 5,964 5,841 4.61 1.15
configure.util-linux no-host 1,532,995 1,699,810 5,008,640 1,715,176 1,708,046 3.27 1.12
configure.yash no-host 173,633 159,503 316,697 179,222 178,855 1.82 1.03
hello-world no-host 151 85 3,888 386 380 25.75 2.56

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 5.0 3.8 22.8 9.8 9.2 4.57 1.97
bin-true no-host 3.3 1.7 18.4 8.9 8.3 5.60 2.72
configure.cpython no-host 34.5 34.6 34.3 34.8 34.4 0.99 1.01
configure.ocaml no-host 28.6 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.2 26.3 26.3 26.3 1.01 1.01
configure.util-linux no-host 39.5 39.6 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.1 33.4 33.5 33.4 1.00 1.00
hello-world no-host 3.1 1.6 18.2 6.9 6.4 5.79 2.21

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.9 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.9 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 15,183 1 69 15.2 34.8 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,146 3 65 21.4 39.6 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,849 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,801 1 2 2.6 33.5 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.3 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 15,329 1 69 15.2 34.4 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,291 3 65 21.4 39.6 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,831 1 2 2.7 28.7 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,767 1 2 2.6 33.4 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,367 64,433 42,634 4,563 54,472 57,332 277 3 85,268 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 16 8 9 5.0 bash
15 no-host abuild-print-help 9 4 6 3.8 dash
23 no-host abuild-print-help 538 481 61 22.8 osh-cpython
31 no-host abuild-print-help 22 12 11 9.8 osh-native
39 no-host abuild-print-help 21 12 10 9.2 osh-native-souffle
1 no-host bin-true 622 319 341 3.3 bash
9 no-host bin-true 448 288 165 1.7 dash
17 no-host bin-true 2,541 921 1,908 18.4 osh-cpython
25 no-host bin-true 813 306 524 8.9 osh-native
33 no-host bin-true 817 319 514 8.3 osh-native-souffle
2 no-host configure.cpython 14,536 7,782 7,145 34.5 bash
10 no-host configure.cpython 14,564 7,657 7,320 34.6 dash
18 no-host configure.cpython 31,011 16,769 16,334 34.3 osh-cpython
26 no-host configure.cpython 15,183 7,599 7,893 34.8 osh-native
34 no-host configure.cpython 15,329 7,622 7,885 34.4 osh-native-souffle
4 no-host configure.ocaml 3,830 1,501 1,369 28.6 bash
12 no-host configure.ocaml 3,729 1,502 1,250 28.5 dash
20 no-host configure.ocaml 4,812 2,181 1,864 28.7 osh-cpython
28 no-host configure.ocaml 3,849 1,551 1,340 28.7 osh-native
36 no-host configure.ocaml 3,831 1,493 1,377 28.7 osh-native-souffle
5 no-host configure.tcc 47 25 23 26.1 bash
13 no-host configure.tcc 42 20 23 26.2 dash
21 no-host configure.tcc 225 160 69 26.3 osh-cpython
29 no-host configure.tcc 50 27 23 26.3 osh-native
37 no-host configure.tcc 49 24 26 26.3 osh-native-souffle
3 no-host configure.util-linux 13,209 6,705 6,965 39.5 bash
11 no-host configure.util-linux 13,861 6,601 7,756 39.6 dash
19 no-host configure.util-linux 33,604 21,088 13,657 39.6 osh-cpython
27 no-host configure.util-linux 14,146 6,528 7,854 39.6 osh-native
35 no-host configure.util-linux 14,291 6,555 7,815 39.6 osh-native-souffle
6 no-host configure.yash 1,793 970 829 33.4 bash
14 no-host configure.yash 1,721 973 749 33.1 dash
22 no-host configure.yash 2,512 1,465 1,091 33.4 osh-cpython
30 no-host configure.yash 1,801 973 830 33.5 osh-native
38 no-host configure.yash 1,767 964 805 33.4 osh-native-souffle
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 65 45 20 18.2 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 2 1 6.4 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,423 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,930 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,488 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,346 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 101,939 0 0 0 8 0 1,985 73 bash
9 no-host bin-true 49,370 0 0 0 8 0 2,964 57 dash
17 no-host bin-true 833,785 0 0 0 8 0 1,988 142 osh-cpython
25 no-host bin-true 138,196 0 0 0 16 0 1,969 88 osh-native
33 no-host bin-true 136,302 0 0 0 16 0 1,969 83 osh-native-souffle
2 no-host configure.cpython 1,622,254 0 0 0 25,296 0 13,994 1,009 bash
10 no-host configure.cpython 1,645,906 0 0 0 25,272 0 14,055 1,037 dash
18 no-host configure.cpython 6,009,701 0 0 0 25,272 0 12,849 885 osh-cpython
26 no-host configure.cpython 1,803,151 0 0 0 25,280 0 12,805 1,058 osh-native
34 no-host configure.cpython 1,799,969 0 0 0 25,280 0 12,803 1,212 osh-native-souffle
4 no-host configure.ocaml 298,983 0 0 0 4,432 0 2,001 193 bash
12 no-host configure.ocaml 280,684 0 0 0 4,432 0 2,096 200 dash
20 no-host configure.ocaml 558,364 0 0 0 4,432 0 1,914 183 osh-cpython
28 no-host configure.ocaml 317,162 0 0 0 4,440 0 1,995 198 osh-native
36 no-host configure.ocaml 315,373 0 0 0 4,440 0 1,998 203 osh-native-souffle
5 no-host configure.tcc 5,190 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,914 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,964 0 0 0 96 0 46 5 osh-native
37 no-host configure.tcc 5,841 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,532,995 0 0 0 35,944 0 18,861 1,106 bash
11 no-host configure.util-linux 1,699,810 0 0 0 35,944 0 17,083 1,281 dash
19 no-host configure.util-linux 5,008,640 0 0 0 35,944 0 17,487 906 osh-cpython
27 no-host configure.util-linux 1,715,176 0 0 0 35,952 0 17,490 1,102 osh-native
35 no-host configure.util-linux 1,708,046 3 0 0 35,952 0 17,430 1,107 osh-native-souffle
6 no-host configure.yash 173,633 0 0 0 3,616 0 873 105 bash
14 no-host configure.yash 159,503 0 0 0 3,616 0 997 88 dash
22 no-host configure.yash 316,697 0 0 0 3,616 0 857 96 osh-cpython
30 no-host configure.yash 179,222 0 0 0 3,624 0 858 113 osh-native
38 no-host configure.yash 178,855 0 0 0 3,624 0 857 97 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,888 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 380 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e074ef98
dash dash-cea41b3e
osh-cpython osh-1c0091fe
osh-native osh-56306e6b
osh-native-souffle osh-8f7167e6
host label host id
no-host no-host-2411472