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 10 538 22 21 33.70 1.38
bin-true no-host 638 458 2,488 826 816 3.90 1.29
configure.cpython no-host 14,145 14,281 30,289 14,986 15,211 2.14 1.06
configure.ocaml no-host 3,787 3,709 4,779 3,801 3,795 1.26 1.00
configure.tcc no-host 47 43 228 51 49 4.80 1.08
configure.util-linux no-host 12,963 13,712 32,698 14,088 14,009 2.52 1.09
configure.yash no-host 1,765 1,716 2,525 1,768 1,765 1.43 1.00
hello-world no-host 1 1 62 3 3 48.14 2.33

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,380 1,192 24,858 3,497 3,404 10.44 1.47
bin-true no-host 99,968 49,397 835,069 136,284 133,210 8.35 1.36
configure.cpython no-host 1,621,046 1,643,161 5,972,814 1,804,562 1,802,912 3.68 1.11
configure.ocaml no-host 298,458 280,823 556,698 316,775 316,965 1.87 1.06
configure.tcc no-host 5,211 4,219 23,756 5,936 5,924 4.56 1.14
configure.util-linux no-host 1,527,675 1,695,975 4,958,502 1,726,741 1,706,840 3.25 1.13
configure.yash no-host 173,654 159,563 315,471 179,102 179,240 1.82 1.03
hello-world no-host 153 86 3,872 387 378 25.31 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.7 3.9 22.7 9.6 9.3 4.80 2.03
bin-true no-host 3.3 1.6 18.2 8.5 8.3 5.55 2.60
configure.cpython no-host 34.6 34.5 34.4 34.6 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.1 26.3 26.2 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.5 39.6 39.9 1.00 1.00
configure.yash no-host 33.5 33.3 33.4 33.3 33.4 1.00 0.99
hello-world no-host 3.3 1.6 18.1 7.1 6.4 5.51 2.16

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 826 1 2 2.6 8.5 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,986 1 67 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 14,088 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,801 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 51 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,768 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.6 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 816 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,211 2 66 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 14,009 3 61 21.4 39.9 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,795 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.1 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,765 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 9 7 4.7 bash
15 no-host abuild-print-help 10 5 5 3.9 dash
23 no-host abuild-print-help 538 479 63 22.7 osh-cpython
31 no-host abuild-print-help 22 13 10 9.6 osh-native
39 no-host abuild-print-help 21 11 11 9.3 osh-native-souffle
1 no-host bin-true 638 311 368 3.3 bash
9 no-host bin-true 458 284 181 1.6 dash
17 no-host bin-true 2,488 909 1,850 18.2 osh-cpython
25 no-host bin-true 826 298 545 8.5 osh-native
33 no-host bin-true 816 301 533 8.3 osh-native-souffle
2 no-host configure.cpython 14,145 7,558 6,969 34.6 bash
10 no-host configure.cpython 14,281 7,630 7,063 34.5 dash
18 no-host configure.cpython 30,289 16,482 15,826 34.4 osh-cpython
26 no-host configure.cpython 14,986 7,360 7,930 34.6 osh-native
34 no-host configure.cpython 15,211 7,450 7,838 34.5 osh-native-souffle
4 no-host configure.ocaml 3,787 1,463 1,331 28.7 bash
12 no-host configure.ocaml 3,709 1,421 1,313 28.7 dash
20 no-host configure.ocaml 4,779 2,135 1,873 28.6 osh-cpython
28 no-host configure.ocaml 3,801 1,468 1,375 28.6 osh-native
36 no-host configure.ocaml 3,795 1,503 1,332 28.7 osh-native-souffle
5 no-host configure.tcc 47 26 21 26.1 bash
13 no-host configure.tcc 43 27 16 26.3 dash
21 no-host configure.tcc 228 157 75 26.2 osh-cpython
29 no-host configure.tcc 51 23 28 26.1 osh-native
37 no-host configure.tcc 49 27 23 26.1 osh-native-souffle
3 no-host configure.util-linux 12,963 6,532 6,912 39.6 bash
11 no-host configure.util-linux 13,712 6,446 7,771 39.5 dash
19 no-host configure.util-linux 32,698 20,383 13,402 39.5 osh-cpython
27 no-host configure.util-linux 14,088 6,354 7,984 39.6 osh-native
35 no-host configure.util-linux 14,009 6,351 7,748 39.9 osh-native-souffle
6 no-host configure.yash 1,765 946 828 33.5 bash
14 no-host configure.yash 1,716 926 791 33.3 dash
22 no-host configure.yash 2,525 1,500 1,070 33.4 osh-cpython
30 no-host configure.yash 1,768 949 822 33.3 osh-native
38 no-host configure.yash 1,765 950 818 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.6 dash
16 no-host hello-world 62 40 22 18.1 osh-cpython
24 no-host hello-world 3 0 3 7.1 osh-native
32 no-host hello-world 3 1 2 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,380 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,192 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,858 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,497 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,404 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 99,968 0 0 0 8 0 1,982 128 bash
9 no-host bin-true 49,397 0 0 0 8 0 2,965 63 dash
17 no-host bin-true 835,069 0 0 0 8 0 1,973 166 osh-cpython
25 no-host bin-true 136,284 0 0 0 16 0 1,981 145 osh-native
33 no-host bin-true 133,210 0 0 0 16 0 1,970 90 osh-native-souffle
2 no-host configure.cpython 1,621,046 0 0 0 25,272 0 14,037 1,172 bash
10 no-host configure.cpython 1,643,161 0 0 0 25,272 0 14,069 1,272 dash
18 no-host configure.cpython 5,972,814 1 0 0 25,272 0 12,881 1,078 osh-cpython
26 no-host configure.cpython 1,804,562 0 0 0 25,280 0 12,867 1,215 osh-native
34 no-host configure.cpython 1,802,912 2 0 0 25,280 0 12,855 1,168 osh-native-souffle
4 no-host configure.ocaml 298,458 0 0 0 4,432 0 2,018 207 bash
12 no-host configure.ocaml 280,823 0 0 0 4,432 0 2,101 205 dash
20 no-host configure.ocaml 556,698 0 0 0 4,432 0 1,916 184 osh-cpython
28 no-host configure.ocaml 316,775 0 0 0 4,440 0 2,004 212 osh-native
36 no-host configure.ocaml 316,965 0 0 0 4,440 0 2,000 213 osh-native-souffle
5 no-host configure.tcc 5,211 0 0 0 80 0 51 0 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 52 7 dash
21 no-host configure.tcc 23,756 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,936 0 0 0 96 0 47 5 osh-native
37 no-host configure.tcc 5,924 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,527,675 3 0 0 35,944 0 18,960 1,146 bash
11 no-host configure.util-linux 1,695,975 1 0 0 35,936 0 17,055 1,301 dash
19 no-host configure.util-linux 4,958,502 2 0 0 35,944 0 17,522 1,087 osh-cpython
27 no-host configure.util-linux 1,726,741 2 0 0 35,944 0 17,495 1,039 osh-native
35 no-host configure.util-linux 1,706,840 0 0 0 35,944 0 17,515 1,033 osh-native-souffle
6 no-host configure.yash 173,654 0 0 0 3,616 0 874 125 bash
14 no-host configure.yash 159,563 0 0 0 3,616 0 1,001 125 dash
22 no-host configure.yash 315,471 0 0 0 3,616 0 858 127 osh-cpython
30 no-host configure.yash 179,102 0 0 0 3,624 0 857 133 osh-native
38 no-host configure.yash 179,240 0 0 0 3,624 0 856 126 osh-native-souffle
0 no-host hello-world 153 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,872 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 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-f67bd5b1
dash dash-cea41b3e
osh-cpython osh-88dd5458
osh-native osh-abbc373f
osh-native-souffle osh-3e22f6ac
host label host id
no-host no-host-2411472