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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 20 21 18 1.30 1.14
bin-true no-host 617 441 804 817 649 1.30 1.05
configure.cpython no-host 13,661 13,742 13,308 13,486 12,829 0.97 0.94
configure.ocaml no-host 3,640 3,593 3,689 3,687 3,648 1.01 1.00
configure.tcc no-host 45 41 46 47 42 1.02 0.93
configure.util-linux no-host 12,427 13,217 12,452 12,460 12,104 1.00 0.97
configure.yash no-host 1,686 1,629 1,698 1,692 1,666 1.01 0.99
hello-world no-host 1 1 3 3 1 2.36 1.02

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,404 1,149 3,333 3,416 2,828 1.39 1.18
bin-true no-host 101,426 49,377 134,296 136,996 111,048 1.32 1.09
configure.cpython no-host 1,621,000 1,636,599 1,581,919 1,601,392 1,516,722 0.98 0.94
configure.ocaml no-host 299,345 280,922 306,726 306,586 300,285 1.02 1.00
configure.tcc no-host 5,213 4,192 5,564 5,675 5,130 1.07 0.98
configure.util-linux no-host 1,533,117 1,704,998 1,505,776 1,517,104 1,479,572 0.98 0.97
configure.yash no-host 173,303 159,577 176,949 177,124 172,827 1.02 1.00
hello-world no-host 151 87 391 400 182 2.59 1.21

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.8 9.3 10.1 6.3 1.92 1.30
bin-true no-host 3.3 1.4 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.5 34.4 34.3 34.5 34.4 0.99 1.00
configure.ocaml no-host 28.7 28.8 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.3 26.2 26.1 26.0 26.3 0.99 1.00
configure.util-linux no-host 39.6 39.6 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.4 33.4 0.99 1.00
hello-world no-host 3.1 1.6 6.7 7.2 3.3 2.12 1.04

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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 804 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,308 1 63 14.8 34.3 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,452 3 63 21.6 39.7 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,689 1 2 2.8 28.7 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,698 1 2 2.7 33.1 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.3 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 817 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,486 1 65 14.9 34.5 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,460 3 62 21.6 39.7 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,687 1 2 2.8 28.7 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,692 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,239 65,805 42,012 4,980 54,601 57,658 277 3 84,024 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 6 10 4.8 bash
15 no-host abuild-print-help 9 4 5 3.8 dash
23 no-host abuild-print-help 20 11 10 9.3 osh-native
31 no-host abuild-print-help 21 9 12 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 617 306 347 3.3 bash
9 no-host bin-true 441 285 162 1.4 dash
17 no-host bin-true 804 295 525 8.8 osh-native
25 no-host bin-true 817 316 517 9.2 osh-nosouffle
33 no-host bin-true 649 322 343 5.2 osh-static
2 no-host configure.cpython 13,661 7,569 6,471 34.5 bash
10 no-host configure.cpython 13,742 7,535 6,604 34.4 dash
18 no-host configure.cpython 13,308 7,071 6,501 34.3 osh-native
26 no-host configure.cpython 13,486 7,124 6,650 34.5 osh-nosouffle
34 no-host configure.cpython 12,829 7,161 5,902 34.4 osh-static
4 no-host configure.ocaml 3,640 1,482 1,199 28.7 bash
12 no-host configure.ocaml 3,593 1,462 1,153 28.8 dash
20 no-host configure.ocaml 3,689 1,496 1,232 28.7 osh-native
28 no-host configure.ocaml 3,687 1,481 1,244 28.7 osh-nosouffle
36 no-host configure.ocaml 3,648 1,466 1,213 28.6 osh-static
5 no-host configure.tcc 45 25 21 26.3 bash
13 no-host configure.tcc 41 23 18 26.2 dash
21 no-host configure.tcc 46 24 23 26.1 osh-native
29 no-host configure.tcc 47 29 18 26.0 osh-nosouffle
37 no-host configure.tcc 42 20 23 26.3 osh-static
3 no-host configure.util-linux 12,427 6,590 6,298 39.6 bash
11 no-host configure.util-linux 13,217 6,411 7,296 39.6 dash
19 no-host configure.util-linux 12,452 6,206 6,467 39.7 osh-native
27 no-host configure.util-linux 12,460 6,175 6,505 39.7 osh-nosouffle
35 no-host configure.util-linux 12,104 6,188 6,131 39.6 osh-static
6 no-host configure.yash 1,686 975 720 33.4 bash
14 no-host configure.yash 1,629 918 713 33.4 dash
22 no-host configure.yash 1,698 968 732 33.1 osh-native
30 no-host configure.yash 1,692 948 746 33.4 osh-nosouffle
38 no-host configure.yash 1,666 943 725 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 1 2 7.2 osh-nosouffle
32 no-host hello-world 1 1 0 3.3 osh-static

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,404 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,149 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,333 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,416 0 0 0 16 0 40 1 osh-nosouffle
39 no-host abuild-print-help 2,828 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,426 0 0 0 8 0 2,000 55 bash
9 no-host bin-true 49,377 0 0 0 8 0 2,996 47 dash
17 no-host bin-true 134,296 0 0 0 16 0 1,999 89 osh-native
25 no-host bin-true 136,996 0 0 0 16 0 1,997 81 osh-nosouffle
33 no-host bin-true 111,048 0 0 0 8 0 2,001 68 osh-static
2 no-host configure.cpython 1,621,000 0 0 0 25,272 0 14,079 1,043 bash
10 no-host configure.cpython 1,636,599 0 0 0 25,272 0 14,112 1,053 dash
18 no-host configure.cpython 1,581,919 0 0 0 25,280 0 11,300 823 osh-native
26 no-host configure.cpython 1,601,392 0 0 0 25,280 0 11,298 802 osh-nosouffle
34 no-host configure.cpython 1,516,722 0 0 0 25,272 0 11,305 834 osh-static
4 no-host configure.ocaml 299,345 0 0 0 4,432 0 2,016 181 bash
12 no-host configure.ocaml 280,922 0 0 0 4,432 0 2,108 210 dash
20 no-host configure.ocaml 306,726 0 0 0 4,440 0 2,001 217 osh-native
28 no-host configure.ocaml 306,586 0 0 0 4,440 0 1,999 200 osh-nosouffle
36 no-host configure.ocaml 300,285 0 0 0 4,432 0 1,999 218 osh-static
5 no-host configure.tcc 5,213 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,192 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,564 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,675 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,533,117 0 0 0 35,936 0 18,966 1,018 bash
11 no-host configure.util-linux 1,704,998 1 0 0 35,936 0 17,088 1,179 dash
19 no-host configure.util-linux 1,505,776 0 0 0 35,952 0 16,113 933 osh-native
27 no-host configure.util-linux 1,517,104 0 0 0 35,944 0 16,203 879 osh-nosouffle
35 no-host configure.util-linux 1,479,572 1 0 0 35,944 0 16,208 944 osh-static
6 no-host configure.yash 173,303 0 0 0 3,616 0 880 96 bash
14 no-host configure.yash 159,577 0 0 0 3,624 0 1,002 108 dash
22 no-host configure.yash 176,949 0 0 0 3,624 0 857 120 osh-native
30 no-host configure.yash 177,124 0 0 0 3,624 0 857 101 osh-nosouffle
38 no-host configure.yash 172,827 0 0 0 3,616 0 856 100 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 182 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-906c028d
osh-nosouffle osh-a5dcef2d
osh-static osh-static-d3c3b2a5
host label host id
no-host no-host-bba74091