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 13 7 17 18 16 1.36 1.25
bin-true no-host 442 302 594 595 474 1.34 1.07
configure.cpython no-host 11,768 11,895 11,585 11,817 10,918 0.98 0.93
configure.ocaml no-host 3,337 3,274 3,352 3,357 3,269 1.00 0.98
configure.tcc no-host 39 35 39 42 36 1.01 0.92
configure.util-linux no-host 10,575 11,106 10,629 10,765 9,974 1.01 0.94
configure.yash no-host 1,481 1,417 1,465 1,463 1,417 0.99 0.96
hello-world no-host 1 0 2 2 1 2.27 1.00

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,390 1,185 3,332 3,413 2,832 1.39 1.18
bin-true no-host 101,919 49,826 132,698 136,510 111,483 1.30 1.09
configure.cpython no-host 1,629,384 1,643,150 1,592,583 1,613,435 1,516,971 0.98 0.93
configure.ocaml no-host 300,235 281,545 307,504 307,562 300,916 1.02 1.00
configure.tcc no-host 5,277 4,232 5,587 5,724 5,133 1.06 0.97
configure.util-linux no-host 1,536,587 1,698,795 1,499,110 1,519,232 1,474,623 0.98 0.96
configure.yash no-host 173,972 159,916 177,438 177,063 173,046 1.02 0.99
hello-world no-host 152 87 392 404 184 2.58 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.7 4.1 9.6 10.1 6.3 2.03 1.33
bin-true no-host 3.3 1.7 8.8 9.3 5.2 2.68 1.60
configure.cpython no-host 34.5 34.5 34.3 34.4 34.2 0.99 0.99
configure.ocaml no-host 28.8 28.8 28.7 28.8 28.6 1.00 0.99
configure.tcc no-host 26.1 26.2 26.4 26.2 26.3 1.01 1.01
configure.util-linux no-host 39.6 39.9 39.6 39.4 39.7 1.00 1.00
configure.yash no-host 33.4 33.5 33.4 33.4 33.5 1.00 1.00
hello-world no-host 3.3 1.6 6.7 7.1 3.4 2.04 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 2 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 594 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 11,585 1 61 14.8 34.3 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 10,629 3 65 21.6 39.6 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,352 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 39 0 0 1.4 26.4 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,465 1 2 2.7 33.4 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 17 1 2 3.0 9.6 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 2 0 0 0.3 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 595 1 2 3.5 9.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,817 1 62 14.9 34.4 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 10,765 3 65 21.6 39.4 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,357 1 2 2.8 28.8 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 42 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,463 1 2 2.7 33.4 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 18 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 13 7 6 4.7 bash
15 no-host abuild-print-help 7 4 3 4.1 dash
23 no-host abuild-print-help 17 11 6 9.6 osh-native
31 no-host abuild-print-help 18 11 8 10.1 osh-nosouffle
39 no-host abuild-print-help 16 12 4 6.3 osh-static
1 no-host bin-true 442 281 191 3.3 bash
9 no-host bin-true 302 215 87 1.7 dash
17 no-host bin-true 594 313 292 8.8 osh-native
25 no-host bin-true 595 320 286 9.3 osh-nosouffle
33 no-host bin-true 474 293 192 5.2 osh-static
2 no-host configure.cpython 11,768 7,637 4,413 34.5 bash
10 no-host configure.cpython 11,895 7,688 4,509 34.5 dash
18 no-host configure.cpython 11,585 7,251 4,522 34.3 osh-native
26 no-host configure.cpython 11,817 7,401 4,619 34.4 osh-nosouffle
34 no-host configure.cpython 10,918 7,180 3,900 34.2 osh-static
4 no-host configure.ocaml 3,337 1,549 807 28.8 bash
12 no-host configure.ocaml 3,274 1,462 819 28.8 dash
20 no-host configure.ocaml 3,352 1,480 892 28.7 osh-native
28 no-host configure.ocaml 3,357 1,511 864 28.8 osh-nosouffle
36 no-host configure.ocaml 3,269 1,460 823 28.6 osh-static
5 no-host configure.tcc 39 26 13 26.1 bash
13 no-host configure.tcc 35 25 10 26.2 dash
21 no-host configure.tcc 39 28 11 26.4 osh-native
29 no-host configure.tcc 42 29 13 26.2 osh-nosouffle
37 no-host configure.tcc 36 24 12 26.3 osh-static
3 no-host configure.util-linux 10,575 6,725 4,194 39.6 bash
11 no-host configure.util-linux 11,106 6,594 4,882 39.9 dash
19 no-host configure.util-linux 10,629 6,344 4,433 39.6 osh-native
27 no-host configure.util-linux 10,765 6,456 4,460 39.4 osh-nosouffle
35 no-host configure.util-linux 9,974 6,165 3,943 39.7 osh-static
6 no-host configure.yash 1,481 966 516 33.4 bash
14 no-host configure.yash 1,417 919 492 33.5 dash
22 no-host configure.yash 1,465 939 521 33.4 osh-native
30 no-host configure.yash 1,463 971 489 33.4 osh-nosouffle
38 no-host configure.yash 1,417 936 477 33.5 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 0 1 0 1.6 dash
16 no-host hello-world 2 1 1 6.7 osh-native
24 no-host hello-world 2 0 2 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 3.4 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,390 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,185 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,332 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,413 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,919 0 0 0 8 0 2,001 66 bash
9 no-host bin-true 49,826 0 0 0 8 0 3,000 46 dash
17 no-host bin-true 132,698 0 0 0 16 0 1,995 62 osh-native
25 no-host bin-true 136,510 0 0 0 16 0 1,998 73 osh-nosouffle
33 no-host bin-true 111,483 0 0 0 8 0 1,996 49 osh-static
2 no-host configure.cpython 1,629,384 0 0 0 25,272 0 14,077 930 bash
10 no-host configure.cpython 1,643,150 0 0 0 25,272 0 14,115 990 dash
18 no-host configure.cpython 1,592,583 0 0 0 25,280 0 11,328 860 osh-native
26 no-host configure.cpython 1,613,435 0 0 0 25,280 0 11,312 783 osh-nosouffle
34 no-host configure.cpython 1,516,971 0 0 0 25,272 0 11,295 787 osh-static
4 no-host configure.ocaml 300,235 0 0 0 4,432 0 2,022 148 bash
12 no-host configure.ocaml 281,545 0 0 0 4,432 0 2,114 181 dash
20 no-host configure.ocaml 307,504 0 0 0 4,440 0 2,000 207 osh-native
28 no-host configure.ocaml 307,562 0 0 0 4,440 0 2,003 187 osh-nosouffle
36 no-host configure.ocaml 300,916 0 0 0 4,432 0 2,003 183 osh-static
5 no-host configure.tcc 5,277 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,232 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,587 0 0 0 96 0 44 1 osh-native
29 no-host configure.tcc 5,724 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,133 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,536,587 0 0 0 35,936 0 18,840 948 bash
11 no-host configure.util-linux 1,698,795 1 0 0 35,936 0 16,968 1,129 dash
19 no-host configure.util-linux 1,499,110 3 0 0 35,960 0 16,243 889 osh-native
27 no-host configure.util-linux 1,519,232 2 0 0 35,944 0 16,210 861 osh-nosouffle
35 no-host configure.util-linux 1,474,623 2 0 0 35,936 0 16,172 811 osh-static
6 no-host configure.yash 173,972 0 0 0 3,616 0 877 84 bash
14 no-host configure.yash 159,916 0 0 0 3,616 0 1,003 96 dash
22 no-host configure.yash 177,438 0 0 0 3,624 0 860 99 osh-native
30 no-host configure.yash 177,063 0 0 0 3,624 0 856 94 osh-nosouffle
38 no-host configure.yash 173,046 0 0 0 3,616 0 858 103 osh-static
0 no-host hello-world 152 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 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 404 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 184 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-5cde5fb6
osh-nosouffle osh-4617a664
osh-static osh-static-88576621
host label host id
no-host no-host-bba74091