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 19 9 471 22 21 24.90 1.18
bin-true no-host 688 537 2,311 812 807 3.36 1.18
configure.cpython no-host 15,044 15,044 29,002 15,314 15,545 1.93 1.02
configure.ocaml no-host 3,813 3,708 4,622 3,904 4,189 1.21 1.02
configure.tcc no-host 47 42 204 48 49 4.33 1.02
configure.util-linux no-host 14,041 14,748 31,212 14,337 14,457 2.22 1.02
configure.yash no-host 1,817 1,764 2,528 1,809 1,812 1.39 1.00
hello-world no-host 2 1 56 3 3 36.65 1.85

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,533 1,096 23,979 3,205 3,109 9.47 1.27
bin-true no-host 106,324 66,443 770,652 127,273 125,294 7.25 1.20
configure.cpython no-host 2,220,468 2,239,691 6,236,383 2,221,559 2,215,590 2.81 1.00
configure.ocaml no-host 410,599 391,288 648,878 413,292 412,226 1.58 1.01
configure.tcc no-host 6,546 5,454 24,119 6,953 6,904 3.68 1.06
configure.util-linux no-host 2,092,261 2,259,733 5,382,441 2,001,738 1,987,275 2.57 0.96
configure.yash no-host 256,634 243,148 389,195 257,324 257,547 1.52 1.00
hello-world no-host 150 78 3,967 343 336 26.45 2.29

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.3 3.5 22.7 9.0 8.7 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.1 27.3 27.4 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.5 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.8 6.32 2.18

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.2 6.3 3,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,314 2 61 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,337 3 61 21.2 30.1 2,702,514 53,767 65,692 108,691 1,290,641 1,303,182 32,239 41 131,384 1
configure.ocaml no-host 3,904 1 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,809 1 2 2.5 24.5 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.8 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.6 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,545 1 63 14.9 27.4 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,457 3 61 21.2 30.3 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 4,189 1 2 2.6 20.4 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.5 24.2 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 19 8 11 4.3 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 471 426 49 22.7 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 688 496 224 2.9 bash
9 no-host bin-true 537 411 136 1.4 dash
17 no-host bin-true 2,311 1,551 1,021 18.4 osh-cpython
25 no-host bin-true 812 593 236 8.1 osh-native
33 no-host bin-true 807 562 258 7.6 osh-native-souffle
2 no-host configure.cpython 15,044 8,928 6,506 27.1 bash
10 no-host configure.cpython 15,044 9,067 6,387 27.3 dash
18 no-host configure.cpython 29,002 17,708 13,190 27.4 osh-cpython
26 no-host configure.cpython 15,314 9,086 6,501 27.4 osh-native
34 no-host configure.cpython 15,545 9,070 6,529 27.4 osh-native-souffle
4 no-host configure.ocaml 3,813 1,574 1,280 20.6 bash
12 no-host configure.ocaml 3,708 1,581 1,143 20.6 dash
20 no-host configure.ocaml 4,622 2,305 1,529 20.6 osh-cpython
28 no-host configure.ocaml 3,904 1,501 1,320 20.6 osh-native
36 no-host configure.ocaml 4,189 1,661 1,244 20.4 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 42 23 19 19.3 dash
21 no-host configure.tcc 204 159 48 19.4 osh-cpython
29 no-host configure.tcc 48 34 15 19.3 osh-native
37 no-host configure.tcc 49 31 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,041 8,835 5,683 30.3 bash
11 no-host configure.util-linux 14,748 9,121 6,116 30.1 dash
19 no-host configure.util-linux 31,212 20,811 11,483 30.3 osh-cpython
27 no-host configure.util-linux 14,337 8,764 5,729 30.1 osh-native
35 no-host configure.util-linux 14,457 8,812 5,824 30.3 osh-native-souffle
6 no-host configure.yash 1,817 1,065 761 24.2 bash
14 no-host configure.yash 1,764 989 779 24.2 dash
22 no-host configure.yash 2,528 1,501 1,071 24.4 osh-cpython
30 no-host configure.yash 1,809 1,020 793 24.5 osh-native
38 no-host configure.yash 1,812 1,027 788 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 40 16 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,533 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,979 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,324 0 0 0 8 0 1,992 111 bash
9 no-host bin-true 66,443 0 0 0 8 0 1,985 43 dash
17 no-host bin-true 770,652 0 0 0 8 0 1,994 222 osh-cpython
25 no-host bin-true 127,273 0 0 0 16 0 1,992 91 osh-native
33 no-host bin-true 125,294 0 0 0 16 0 1,984 53 osh-native-souffle
2 no-host configure.cpython 2,220,468 0 0 0 32,928 0 14,516 1,023 bash
10 no-host configure.cpython 2,239,691 0 0 0 32,992 0 14,604 996 dash
18 no-host configure.cpython 6,236,383 0 0 0 27,512 0 13,301 1,259 osh-cpython
26 no-host configure.cpython 2,221,559 0 0 0 27,520 0 13,283 1,036 osh-native
34 no-host configure.cpython 2,215,590 0 0 0 27,520 0 13,195 886 osh-native-souffle
4 no-host configure.ocaml 410,599 0 0 0 5,120 0 1,946 154 bash
12 no-host configure.ocaml 391,288 0 0 0 5,112 0 1,938 156 dash
20 no-host configure.ocaml 648,878 0 0 0 5,112 0 1,859 164 osh-cpython
28 no-host configure.ocaml 413,292 0 0 0 5,120 0 1,929 167 osh-native
36 no-host configure.ocaml 412,226 0 0 0 5,120 0 1,928 158 osh-native-souffle
5 no-host configure.tcc 6,546 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,454 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,119 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,092,261 0 0 0 42,400 0 18,632 1,122 bash
11 no-host configure.util-linux 2,259,733 2 0 0 42,584 0 17,482 1,080 dash
19 no-host configure.util-linux 5,382,441 8 0 0 39,112 0 16,903 1,132 osh-cpython
27 no-host configure.util-linux 2,001,738 0 0 0 39,128 0 17,027 939 osh-native
35 no-host configure.util-linux 1,987,275 0 0 0 39,136 0 16,962 1,024 osh-native-souffle
6 no-host configure.yash 256,634 0 0 0 4,120 0 864 67 bash
14 no-host configure.yash 243,148 0 0 0 3,720 0 868 67 dash
22 no-host configure.yash 389,195 0 0 0 3,728 0 855 148 osh-cpython
30 no-host configure.yash 257,324 0 0 0 3,736 0 854 75 osh-native
38 no-host configure.yash 257,547 0 0 0 3,736 0 853 87 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,967 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b2ce771c
dash dash-0ebcf347
osh-cpython osh-84b59bbe
osh-native osh-1b22b5ed
osh-native-souffle osh-44982c2a
host label host id
no-host no-host-556df3ee