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 529 22 21 33.40 1.40
bin-true no-host 644 451 2,454 830 817 3.81 1.29
configure.cpython no-host 13,804 13,899 29,235 14,677 14,661 2.12 1.06
configure.ocaml no-host 3,675 3,613 4,648 3,730 3,726 1.26 1.02
configure.tcc no-host 46 41 221 49 49 4.76 1.05
configure.util-linux no-host 12,638 13,362 31,976 13,684 13,854 2.53 1.08
configure.yash no-host 1,699 1,640 2,438 1,726 1,723 1.43 1.02
hello-world no-host 1 1 60 3 3 49.99 2.38

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,377 1,208 24,710 3,467 3,378 10.40 1.46
bin-true no-host 100,950 49,345 830,590 137,269 132,223 8.23 1.36
configure.cpython no-host 1,620,663 1,638,838 5,953,631 1,798,966 1,776,251 3.67 1.11
configure.ocaml no-host 299,361 280,684 555,355 316,214 315,653 1.86 1.06
configure.tcc no-host 5,227 4,214 23,709 5,936 5,915 4.54 1.14
configure.util-linux no-host 1,540,988 1,695,420 4,964,283 1,715,565 1,703,518 3.22 1.11
configure.yash no-host 173,440 159,559 315,241 179,538 178,964 1.82 1.04
hello-world no-host 152 84 3,873 384 380 25.48 2.53

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.6 3.8 22.8 9.7 9.4 4.97 2.11
bin-true no-host 3.1 1.4 18.1 8.8 8.3 5.74 2.79
configure.cpython no-host 34.7 34.4 34.6 34.8 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.5 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.4 26.1 1.00 1.01
configure.util-linux no-host 39.9 39.9 39.9 39.6 39.6 1.00 0.99
configure.yash no-host 33.3 33.1 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.3 1.4 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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 830 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,677 2 68 15.2 34.8 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,684 3 60 21.4 39.6 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,730 1 2 2.7 28.7 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.4 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,726 1 2 2.6 33.3 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.7 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.6 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,661 1 63 15.2 34.6 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,854 3 60 21.4 39.6 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,726 1 2 2.7 28.5 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.1 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,723 1 2 2.6 33.4 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.4 116,366 64,433 42,634 4,563 54,471 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 8 4.6 bash
15 no-host abuild-print-help 9 5 5 3.8 dash
23 no-host abuild-print-help 529 462 70 22.8 osh-cpython
31 no-host abuild-print-help 22 11 12 9.7 osh-native
39 no-host abuild-print-help 21 10 11 9.4 osh-native-souffle
1 no-host bin-true 644 325 356 3.1 bash
9 no-host bin-true 451 282 176 1.4 dash
17 no-host bin-true 2,454 860 1,859 18.1 osh-cpython
25 no-host bin-true 830 329 518 8.8 osh-native
33 no-host bin-true 817 298 535 8.3 osh-native-souffle
2 no-host configure.cpython 13,804 7,476 6,719 34.7 bash
10 no-host configure.cpython 13,899 7,340 6,948 34.4 dash
18 no-host configure.cpython 29,235 16,000 15,157 34.6 osh-cpython
26 no-host configure.cpython 14,677 7,386 7,587 34.8 osh-native
34 no-host configure.cpython 14,661 7,265 7,552 34.6 osh-native-souffle
4 no-host configure.ocaml 3,675 1,467 1,248 28.7 bash
12 no-host configure.ocaml 3,613 1,447 1,189 28.6 dash
20 no-host configure.ocaml 4,648 2,136 1,734 28.7 osh-cpython
28 no-host configure.ocaml 3,730 1,454 1,316 28.7 osh-native
36 no-host configure.ocaml 3,726 1,454 1,313 28.5 osh-native-souffle
5 no-host configure.tcc 46 25 22 26.2 bash
13 no-host configure.tcc 41 20 22 26.2 dash
21 no-host configure.tcc 221 162 63 26.2 osh-cpython
29 no-host configure.tcc 49 26 24 26.4 osh-native
37 no-host configure.tcc 49 25 25 26.1 osh-native-souffle
3 no-host configure.util-linux 12,638 6,405 6,710 39.9 bash
11 no-host configure.util-linux 13,362 6,269 7,593 39.9 dash
19 no-host configure.util-linux 31,976 19,951 13,092 39.9 osh-cpython
27 no-host configure.util-linux 13,684 6,226 7,700 39.6 osh-native
35 no-host configure.util-linux 13,854 6,213 7,730 39.6 osh-native-souffle
6 no-host configure.yash 1,699 909 799 33.3 bash
14 no-host configure.yash 1,640 924 718 33.1 dash
22 no-host configure.yash 2,438 1,396 1,085 33.4 osh-cpython
30 no-host configure.yash 1,726 944 785 33.3 osh-native
38 no-host configure.yash 1,723 963 763 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 60 38 22 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 1 2 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,377 0 0 0 8 0 40 3 bash
15 no-host abuild-print-help 1,208 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,710 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,467 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,378 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,950 0 0 0 8 0 1,985 139 bash
9 no-host bin-true 49,345 0 0 0 8 0 2,982 58 dash
17 no-host bin-true 830,590 0 0 0 8 0 1,975 274 osh-cpython
25 no-host bin-true 137,269 0 0 0 16 0 1,978 179 osh-native
33 no-host bin-true 132,223 0 0 0 16 0 1,956 170 osh-native-souffle
2 no-host configure.cpython 1,620,663 0 0 0 25,272 0 14,012 1,214 bash
10 no-host configure.cpython 1,638,838 1 0 0 25,272 0 14,082 1,257 dash
18 no-host configure.cpython 5,953,631 0 0 0 25,272 0 12,877 1,173 osh-cpython
26 no-host configure.cpython 1,798,966 0 0 0 25,280 0 12,875 1,192 osh-native
34 no-host configure.cpython 1,776,251 0 0 0 25,280 0 12,868 1,209 osh-native-souffle
4 no-host configure.ocaml 299,361 0 0 0 4,432 0 2,011 207 bash
12 no-host configure.ocaml 280,684 0 0 0 4,432 0 2,105 197 dash
20 no-host configure.ocaml 555,355 0 0 0 4,432 0 1,915 192 osh-cpython
28 no-host configure.ocaml 316,214 0 0 0 4,440 0 2,006 205 osh-native
36 no-host configure.ocaml 315,653 0 0 0 4,440 0 2,000 190 osh-native-souffle
5 no-host configure.tcc 5,227 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,709 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,936 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,915 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,540,988 1 0 0 35,944 0 18,953 1,194 bash
11 no-host configure.util-linux 1,695,420 6 0 0 35,936 0 16,980 1,337 dash
19 no-host configure.util-linux 4,964,283 2 0 0 35,944 0 17,524 1,071 osh-cpython
27 no-host configure.util-linux 1,715,565 3 0 0 35,944 0 17,491 1,009 osh-native
35 no-host configure.util-linux 1,703,518 4 0 0 35,952 0 17,563 972 osh-native-souffle
6 no-host configure.yash 173,440 0 0 0 3,616 0 874 148 bash
14 no-host configure.yash 159,559 0 0 0 3,616 0 1,001 123 dash
22 no-host configure.yash 315,241 0 0 0 3,616 0 860 128 osh-cpython
30 no-host configure.yash 179,538 0 0 0 3,624 0 856 138 osh-native
38 no-host configure.yash 178,964 0 0 0 3,624 0 855 147 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,873 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 380 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-751d69f6
dash dash-cea41b3e
osh-cpython osh-5e3a0731
osh-native osh-f5a3bdb7
osh-native-souffle osh-5011c839
host label host id
no-host no-host-2411472