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 531 22 21 34.04 1.40
bin-true no-host 612 436 2,468 803 817 4.03 1.31
configure.cpython no-host 14,069 14,059 29,725 14,822 14,911 2.11 1.05
configure.ocaml no-host 3,690 3,649 4,688 3,757 3,777 1.27 1.02
configure.tcc no-host 46 41 220 56 49 4.76 1.20
configure.util-linux no-host 12,609 13,424 32,256 13,722 13,778 2.56 1.09
configure.yash no-host 1,726 1,659 2,462 1,763 1,745 1.43 1.02
hello-world no-host 1 1 62 3 3 51.72 2.41

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,385 1,164 24,888 3,453 3,297 10.44 1.45
bin-true no-host 99,901 49,390 834,794 136,222 137,219 8.36 1.36
configure.cpython no-host 1,620,952 1,647,289 5,998,578 1,808,928 1,778,593 3.70 1.12
configure.ocaml no-host 298,779 280,663 558,151 316,822 315,430 1.87 1.06
configure.tcc no-host 5,236 4,203 23,831 5,924 5,896 4.55 1.13
configure.util-linux no-host 1,528,107 1,690,230 4,998,845 1,712,133 1,702,237 3.27 1.12
configure.yash no-host 173,568 159,522 316,438 179,026 179,131 1.82 1.03
hello-world no-host 152 86 3,893 389 377 25.61 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 3.9 22.6 9.8 9.3 4.67 2.03
bin-true no-host 3.3 1.4 18.2 8.9 8.5 5.55 2.72
configure.cpython no-host 34.5 34.7 34.4 34.6 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.8 28.6 28.7 1.01 1.00
configure.tcc no-host 26.3 26.3 26.3 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.6 39.6 1.00 1.00
configure.yash no-host 33.5 33.5 33.5 33.3 33.4 1.00 0.99
hello-world no-host 3.3 1.6 18.1 6.9 6.6 5.51 2.12

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 803 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 14,822 2 68 15.2 34.6 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,722 3 62 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,757 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 56 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,763 1 2 2.6 33.3 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.6 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.5 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,911 1 67 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 13,778 3 62 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,777 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,745 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.3 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 12 4 4.8 bash
15 no-host abuild-print-help 9 7 3 3.9 dash
23 no-host abuild-print-help 531 479 56 22.6 osh-cpython
31 no-host abuild-print-help 22 11 11 9.8 osh-native
39 no-host abuild-print-help 21 11 10 9.3 osh-native-souffle
1 no-host bin-true 612 301 347 3.3 bash
9 no-host bin-true 436 258 184 1.4 dash
17 no-host bin-true 2,468 906 1,837 18.2 osh-cpython
25 no-host bin-true 803 307 512 8.9 osh-native
33 no-host bin-true 817 323 507 8.5 osh-native-souffle
2 no-host configure.cpython 14,069 7,569 6,752 34.5 bash
10 no-host configure.cpython 14,059 7,635 6,822 34.7 dash
18 no-host configure.cpython 29,725 16,400 15,337 34.4 osh-cpython
26 no-host configure.cpython 14,822 7,435 7,688 34.6 osh-native
34 no-host configure.cpython 14,911 7,450 7,625 34.4 osh-native-souffle
4 no-host configure.ocaml 3,690 1,444 1,285 28.7 bash
12 no-host configure.ocaml 3,649 1,477 1,194 28.8 dash
20 no-host configure.ocaml 4,688 2,182 1,733 28.8 osh-cpython
28 no-host configure.ocaml 3,757 1,491 1,307 28.6 osh-native
36 no-host configure.ocaml 3,777 1,459 1,358 28.7 osh-native-souffle
5 no-host configure.tcc 46 23 24 26.3 bash
13 no-host configure.tcc 41 25 17 26.3 dash
21 no-host configure.tcc 220 149 75 26.3 osh-cpython
29 no-host configure.tcc 56 27 30 26.3 osh-native
37 no-host configure.tcc 49 26 23 26.3 osh-native-souffle
3 no-host configure.util-linux 12,609 6,556 6,506 39.6 bash
11 no-host configure.util-linux 13,424 6,550 7,343 39.7 dash
19 no-host configure.util-linux 32,256 20,304 13,033 39.7 osh-cpython
27 no-host configure.util-linux 13,722 6,410 7,549 39.6 osh-native
35 no-host configure.util-linux 13,778 6,284 7,565 39.6 osh-native-souffle
6 no-host configure.yash 1,726 926 807 33.5 bash
14 no-host configure.yash 1,659 952 707 33.5 dash
22 no-host configure.yash 2,462 1,467 1,037 33.5 osh-cpython
30 no-host configure.yash 1,763 947 817 33.3 osh-native
38 no-host configure.yash 1,745 934 810 33.4 osh-native-souffle
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 62 46 16 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.9 osh-native
32 no-host hello-world 3 1 1 6.6 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,385 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,164 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,888 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,453 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,297 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,901 0 0 0 8 0 1,976 69 bash
9 no-host bin-true 49,390 0 0 0 8 0 2,974 55 dash
17 no-host bin-true 834,794 0 0 0 8 0 1,976 132 osh-cpython
25 no-host bin-true 136,222 0 0 0 16 0 1,976 70 osh-native
33 no-host bin-true 137,219 0 0 0 16 0 1,983 82 osh-native-souffle
2 no-host configure.cpython 1,620,952 0 0 0 25,272 0 14,045 1,050 bash
10 no-host configure.cpython 1,647,289 0 0 0 25,272 0 14,075 1,176 dash
18 no-host configure.cpython 5,998,578 0 0 0 25,272 0 12,876 919 osh-cpython
26 no-host configure.cpython 1,808,928 0 0 0 25,280 0 12,816 1,005 osh-native
34 no-host configure.cpython 1,778,593 0 0 0 25,280 0 12,821 1,089 osh-native-souffle
4 no-host configure.ocaml 298,779 0 0 0 4,432 0 2,007 209 bash
12 no-host configure.ocaml 280,663 0 0 0 4,432 0 2,090 183 dash
20 no-host configure.ocaml 558,151 0 0 0 4,432 0 1,912 208 osh-cpython
28 no-host configure.ocaml 316,822 0 0 0 4,440 0 1,988 202 osh-native
36 no-host configure.ocaml 315,430 0 0 0 4,440 0 1,997 180 osh-native-souffle
5 no-host configure.tcc 5,236 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,831 0 0 0 88 0 53 6 osh-cpython
29 no-host configure.tcc 5,924 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,896 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,528,107 0 0 0 35,944 0 19,015 1,098 bash
11 no-host configure.util-linux 1,690,230 0 0 0 35,944 0 17,112 1,248 dash
19 no-host configure.util-linux 4,998,845 1 0 0 35,944 0 17,506 875 osh-cpython
27 no-host configure.util-linux 1,712,133 3 0 0 35,944 0 17,528 1,127 osh-native
35 no-host configure.util-linux 1,702,237 0 0 0 35,944 0 17,395 1,127 osh-native-souffle
6 no-host configure.yash 173,568 0 0 0 3,616 0 873 89 bash
14 no-host configure.yash 159,522 0 0 0 3,616 0 996 105 dash
22 no-host configure.yash 316,438 0 0 0 3,616 0 859 110 osh-cpython
30 no-host configure.yash 179,026 0 0 0 3,624 0 854 105 osh-native
38 no-host configure.yash 179,131 0 0 0 3,624 0 853 106 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,893 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 389 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 377 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-99723c25
dash dash-cea41b3e
osh-cpython osh-4b16ce7e
osh-native osh-2f4dfdda
osh-native-souffle osh-012646fe
host label host id
no-host no-host-2411472