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 528 22 21 33.85 1.42
bin-true no-host 613 433 2,444 792 802 3.99 1.29
configure.cpython no-host 13,832 13,738 29,290 14,715 14,857 2.12 1.06
configure.ocaml no-host 3,637 3,593 4,653 3,742 3,730 1.28 1.03
configure.tcc no-host 46 41 221 50 48 4.79 1.07
configure.util-linux no-host 12,503 13,205 32,249 13,654 13,721 2.58 1.09
configure.yash no-host 1,688 1,630 2,445 1,726 1,716 1.45 1.02
hello-world no-host 1 1 61 3 3 50.03 2.36

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,409 1,148 24,876 3,453 3,319 10.33 1.43
bin-true no-host 100,898 49,395 832,283 133,295 135,250 8.25 1.32
configure.cpython no-host 1,622,167 1,644,234 5,976,220 1,811,159 1,792,119 3.68 1.12
configure.ocaml no-host 298,443 280,589 554,883 316,799 316,534 1.86 1.06
configure.tcc no-host 5,240 4,189 23,761 5,949 5,840 4.53 1.14
configure.util-linux no-host 1,537,169 1,692,047 4,968,483 1,722,105 1,709,538 3.23 1.12
configure.yash no-host 173,541 159,502 315,403 179,822 178,637 1.82 1.04
hello-world no-host 151 84 3,869 387 378 25.62 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 4.8 4.1 22.8 9.8 9.0 4.70 2.03
bin-true no-host 3.3 1.4 18.2 8.7 8.3 5.55 2.64
configure.cpython no-host 34.7 34.4 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.0 26.1 26.1 0.99 0.99
configure.util-linux no-host 39.7 39.9 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.2 33.1 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 18.1 7.1 6.4 5.74 2.25

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 7.1 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 792 1 2 2.6 8.7 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,715 2 67 15.2 34.5 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,654 3 61 21.4 39.7 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,742 1 2 2.7 28.6 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.1 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,726 1 2 2.6 33.4 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 802 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 14,857 1 69 15.2 34.5 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,721 3 62 21.4 39.7 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,730 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 48 0 0 1.3 26.1 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,716 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.0 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 7 9 4.8 bash
15 no-host abuild-print-help 9 5 4 4.1 dash
23 no-host abuild-print-help 528 470 62 22.8 osh-cpython
31 no-host abuild-print-help 22 13 9 9.8 osh-native
39 no-host abuild-print-help 21 13 9 9.0 osh-native-souffle
1 no-host bin-true 613 309 345 3.3 bash
9 no-host bin-true 433 274 165 1.4 dash
17 no-host bin-true 2,444 937 1,783 18.2 osh-cpython
25 no-host bin-true 792 309 499 8.7 osh-native
33 no-host bin-true 802 313 507 8.3 osh-native-souffle
2 no-host configure.cpython 13,832 7,491 6,718 34.7 bash
10 no-host configure.cpython 13,738 7,499 6,634 34.4 dash
18 no-host configure.cpython 29,290 16,090 15,172 34.5 osh-cpython
26 no-host configure.cpython 14,715 7,392 7,629 34.5 osh-native
34 no-host configure.cpython 14,857 7,303 7,674 34.5 osh-native-souffle
4 no-host configure.ocaml 3,637 1,454 1,222 28.7 bash
12 no-host configure.ocaml 3,593 1,466 1,148 28.8 dash
20 no-host configure.ocaml 4,653 2,122 1,750 28.7 osh-cpython
28 no-host configure.ocaml 3,742 1,460 1,323 28.6 osh-native
36 no-host configure.ocaml 3,730 1,481 1,289 28.7 osh-native-souffle
5 no-host configure.tcc 46 22 25 26.3 bash
13 no-host configure.tcc 41 22 20 26.1 dash
21 no-host configure.tcc 221 154 71 26.0 osh-cpython
29 no-host configure.tcc 50 22 28 26.1 osh-native
37 no-host configure.tcc 48 23 26 26.1 osh-native-souffle
3 no-host configure.util-linux 12,503 6,601 6,359 39.7 bash
11 no-host configure.util-linux 13,205 6,472 7,214 39.9 dash
19 no-host configure.util-linux 32,249 20,278 13,053 39.7 osh-cpython
27 no-host configure.util-linux 13,654 6,344 7,544 39.7 osh-native
35 no-host configure.util-linux 13,721 6,241 7,552 39.7 osh-native-souffle
6 no-host configure.yash 1,688 931 764 33.2 bash
14 no-host configure.yash 1,630 913 718 33.1 dash
22 no-host configure.yash 2,445 1,451 1,037 33.4 osh-cpython
30 no-host configure.yash 1,726 960 769 33.4 osh-native
38 no-host configure.yash 1,716 914 805 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 61 40 21 18.1 osh-cpython
24 no-host hello-world 3 2 1 7.1 osh-native
32 no-host hello-world 3 1 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,409 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,148 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,876 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,453 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,319 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 100,898 0 0 0 8 0 1,976 76 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,972 47 dash
17 no-host bin-true 832,283 0 0 0 8 0 1,974 145 osh-cpython
25 no-host bin-true 133,295 0 0 0 16 0 1,977 91 osh-native
33 no-host bin-true 135,250 0 0 0 16 0 1,970 83 osh-native-souffle
2 no-host configure.cpython 1,622,167 0 0 0 25,272 0 14,029 1,061 bash
10 no-host configure.cpython 1,644,234 0 0 0 25,272 0 14,051 1,064 dash
18 no-host configure.cpython 5,976,220 0 0 0 25,272 0 12,878 935 osh-cpython
26 no-host configure.cpython 1,811,159 0 0 0 25,280 0 12,871 1,204 osh-native
34 no-host configure.cpython 1,792,119 0 0 0 25,280 0 12,821 1,041 osh-native-souffle
4 no-host configure.ocaml 298,443 0 0 0 4,432 0 2,002 198 bash
12 no-host configure.ocaml 280,589 0 0 0 4,432 0 2,093 209 dash
20 no-host configure.ocaml 554,883 0 0 0 4,432 0 1,912 193 osh-cpython
28 no-host configure.ocaml 316,799 0 0 0 4,440 0 1,996 215 osh-native
36 no-host configure.ocaml 316,534 0 0 0 4,440 0 1,999 210 osh-native-souffle
5 no-host configure.tcc 5,240 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,189 0 0 0 88 0 52 0 dash
21 no-host configure.tcc 23,761 0 0 0 88 0 52 5 osh-cpython
29 no-host configure.tcc 5,949 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,840 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,537,169 0 0 0 35,944 0 18,962 1,110 bash
11 no-host configure.util-linux 1,692,047 0 0 0 35,936 0 17,054 1,220 dash
19 no-host configure.util-linux 4,968,483 0 0 0 35,960 0 17,507 830 osh-cpython
27 no-host configure.util-linux 1,722,105 0 0 0 35,944 0 17,496 1,112 osh-native
35 no-host configure.util-linux 1,709,538 1 0 0 35,944 0 17,425 1,227 osh-native-souffle
6 no-host configure.yash 173,541 0 0 0 3,616 0 877 99 bash
14 no-host configure.yash 159,502 0 0 0 3,616 0 995 94 dash
22 no-host configure.yash 315,403 0 0 0 3,616 0 855 97 osh-cpython
30 no-host configure.yash 179,822 0 0 0 3,624 0 854 111 osh-native
38 no-host configure.yash 178,637 0 0 0 3,624 0 851 102 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,869 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5b96b23a
dash dash-cea41b3e
osh-cpython osh-3294547c
osh-native osh-19423bbf
osh-native-souffle osh-f2ccfa1f
host label host id
no-host no-host-2411472