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 527 22 21 32.68 1.37
bin-true no-host 634 461 2,496 826 817 3.94 1.30
configure.cpython no-host 13,959 14,081 29,714 14,765 15,082 2.13 1.06
configure.ocaml no-host 3,706 3,675 4,676 3,790 3,749 1.26 1.02
configure.tcc no-host 46 42 222 50 48 4.80 1.08
configure.util-linux no-host 12,796 13,664 32,484 14,023 13,904 2.54 1.10
configure.yash no-host 1,716 1,668 2,475 1,753 1,741 1.44 1.02
hello-world no-host 1 1 61 3 3 47.52 2.28

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,408 1,149 24,721 3,491 3,373 10.27 1.45
bin-true no-host 100,933 49,383 829,587 137,239 134,228 8.22 1.36
configure.cpython no-host 1,622,765 1,646,379 5,940,762 1,812,817 1,786,966 3.66 1.12
configure.ocaml no-host 298,966 280,669 555,257 317,248 316,592 1.86 1.06
configure.tcc no-host 5,201 4,221 23,694 5,968 5,860 4.56 1.15
configure.util-linux no-host 1,533,291 1,695,120 4,958,686 1,725,057 1,715,578 3.23 1.13
configure.yash no-host 173,613 159,506 314,846 179,515 178,575 1.81 1.03
hello-world no-host 153 85 3,877 388 379 25.34 2.54

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.7 10.0 9.3 4.67 2.05
bin-true no-host 3.3 1.6 18.2 8.8 8.4 5.55 2.68
configure.cpython no-host 34.6 34.4 34.5 34.4 34.6 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.8 28.6 28.7 1.01 1.00
configure.tcc no-host 26.3 26.2 26.3 26.2 26.0 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.9 39.8 1.00 1.01
configure.yash no-host 33.1 33.4 33.4 33.4 33.1 1.01 1.01
hello-world no-host 3.3 1.4 18.1 7.1 6.6 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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 826 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,765 1 68 15.2 34.4 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,023 3 62 21.4 39.9 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,790 1 2 2.7 28.6 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.2 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,753 1 2 2.6 33.4 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 10.0 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.4 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 15,082 1 65 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,904 3 60 21.4 39.8 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,749 1 2 2.7 28.7 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.0 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,741 1 2 2.6 33.1 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.3 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 9 8 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 527 463 67 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 10.0 osh-native
39 no-host abuild-print-help 21 8 13 9.3 osh-native-souffle
1 no-host bin-true 634 321 353 3.3 bash
9 no-host bin-true 461 282 186 1.6 dash
17 no-host bin-true 2,496 896 1,872 18.2 osh-cpython
25 no-host bin-true 826 305 539 8.8 osh-native
33 no-host bin-true 817 295 539 8.4 osh-native-souffle
2 no-host configure.cpython 13,959 7,459 6,864 34.6 bash
10 no-host configure.cpython 14,081 7,551 6,932 34.4 dash
18 no-host configure.cpython 29,714 16,234 15,447 34.5 osh-cpython
26 no-host configure.cpython 14,765 7,372 7,704 34.4 osh-native
34 no-host configure.cpython 15,082 7,443 7,800 34.6 osh-native-souffle
4 no-host configure.ocaml 3,706 1,477 1,270 28.7 bash
12 no-host configure.ocaml 3,675 1,489 1,210 28.7 dash
20 no-host configure.ocaml 4,676 2,129 1,769 28.8 osh-cpython
28 no-host configure.ocaml 3,790 1,483 1,350 28.6 osh-native
36 no-host configure.ocaml 3,749 1,475 1,316 28.7 osh-native-souffle
5 no-host configure.tcc 46 20 27 26.3 bash
13 no-host configure.tcc 42 26 16 26.2 dash
21 no-host configure.tcc 222 158 67 26.3 osh-cpython
29 no-host configure.tcc 50 26 25 26.2 osh-native
37 no-host configure.tcc 48 24 25 26.0 osh-native-souffle
3 no-host configure.util-linux 12,796 6,498 6,771 39.6 bash
11 no-host configure.util-linux 13,664 6,578 7,586 39.6 dash
19 no-host configure.util-linux 32,484 20,230 13,330 39.6 osh-cpython
27 no-host configure.util-linux 14,023 6,403 7,868 39.9 osh-native
35 no-host configure.util-linux 13,904 6,252 7,744 39.8 osh-native-souffle
6 no-host configure.yash 1,716 933 792 33.1 bash
14 no-host configure.yash 1,668 930 726 33.4 dash
22 no-host configure.yash 2,475 1,465 1,054 33.4 osh-cpython
30 no-host configure.yash 1,753 958 798 33.4 osh-native
38 no-host configure.yash 1,741 947 798 33.1 osh-native-souffle
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 61 46 14 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 2 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,408 0 0 0 8 0 40 3 bash
15 no-host abuild-print-help 1,149 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,721 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,491 0 0 0 16 0 40 2 osh-native
39 no-host abuild-print-help 3,373 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,933 0 0 0 8 0 1,969 117 bash
9 no-host bin-true 49,383 0 0 0 8 0 2,981 62 dash
17 no-host bin-true 829,587 0 0 0 8 0 1,976 124 osh-cpython
25 no-host bin-true 137,239 0 0 0 16 0 1,984 218 osh-native
33 no-host bin-true 134,228 0 0 0 16 0 1,975 86 osh-native-souffle
2 no-host configure.cpython 1,622,765 0 0 0 25,296 0 14,057 1,176 bash
10 no-host configure.cpython 1,646,379 0 0 0 25,272 0 14,072 1,319 dash
18 no-host configure.cpython 5,940,762 0 0 0 25,272 0 12,870 1,173 osh-cpython
26 no-host configure.cpython 1,812,817 0 0 0 25,280 0 12,865 1,228 osh-native
34 no-host configure.cpython 1,786,966 0 0 0 25,280 0 12,853 1,069 osh-native-souffle
4 no-host configure.ocaml 298,966 0 0 0 4,432 0 2,010 221 bash
12 no-host configure.ocaml 280,669 1 0 0 4,432 0 2,100 214 dash
20 no-host configure.ocaml 555,257 0 0 0 4,432 0 1,914 192 osh-cpython
28 no-host configure.ocaml 317,248 0 0 0 4,440 0 1,994 203 osh-native
36 no-host configure.ocaml 316,592 0 0 0 4,440 0 2,003 204 osh-native-souffle
5 no-host configure.tcc 5,201 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,221 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,694 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,968 0 0 0 96 0 47 12 osh-native
37 no-host configure.tcc 5,860 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,533,291 0 0 0 35,944 0 18,774 1,111 bash
11 no-host configure.util-linux 1,695,120 0 0 0 35,944 0 17,058 1,334 dash
19 no-host configure.util-linux 4,958,686 1 0 0 35,952 0 17,555 1,138 osh-cpython
27 no-host configure.util-linux 1,725,057 2 0 0 35,952 0 17,532 1,063 osh-native
35 no-host configure.util-linux 1,715,578 0 0 0 35,952 0 17,450 1,022 osh-native-souffle
6 no-host configure.yash 173,613 0 0 0 3,616 0 878 118 bash
14 no-host configure.yash 159,506 0 0 0 3,616 0 1,001 143 dash
22 no-host configure.yash 314,846 0 0 0 3,616 0 863 129 osh-cpython
30 no-host configure.yash 179,515 0 0 0 3,624 0 857 136 osh-native
38 no-host configure.yash 178,575 0 0 0 3,624 0 857 148 osh-native-souffle
0 no-host hello-world 153 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,877 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 2 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a32bc333
dash dash-cea41b3e
osh-cpython osh-8140395c
osh-native osh-d7e6164d
osh-native-souffle osh-6ed89ab6
host label host id
no-host no-host-2411472