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 15 9 20 21 18 1.33 1.17
bin-true no-host 615 442 787 804 652 1.28 1.06
configure.cpython no-host 13,713 13,776 13,256 13,321 12,742 0.97 0.93
configure.ocaml no-host 3,629 3,554 3,651 3,653 3,625 1.01 1.00
configure.tcc no-host 45 41 46 47 43 1.03 0.95
configure.util-linux no-host 12,380 13,066 12,258 12,380 11,889 0.99 0.96
configure.yash no-host 1,661 1,609 1,670 1,677 1,646 1.00 0.99
hello-world no-host 1 1 3 3 1 2.39 1.03

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,367 1,154 3,291 3,402 2,805 1.39 1.19
bin-true no-host 100,431 49,403 131,316 134,931 111,052 1.31 1.11
configure.cpython no-host 1,628,709 1,638,251 1,592,670 1,616,709 1,521,828 0.98 0.93
configure.ocaml no-host 299,567 280,752 305,835 307,384 300,771 1.02 1.00
configure.tcc no-host 5,222 4,194 5,594 5,674 5,129 1.07 0.98
configure.util-linux no-host 1,542,322 1,700,104 1,493,424 1,512,177 1,457,419 0.97 0.94
configure.yash no-host 173,366 159,408 176,813 177,448 173,070 1.02 1.00
hello-world no-host 150 87 391 399 182 2.61 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.9 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.8 9.2 5.4 2.79 1.71
configure.cpython no-host 34.7 34.4 34.4 34.5 34.4 0.99 0.99
configure.ocaml no-host 28.6 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.1 26.1 26.0 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.1 33.3 33.4 0.99 1.00
hello-world no-host 3.1 1.6 6.7 7.1 3.4 2.12 1.08

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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 787 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,256 1 65 14.8 34.4 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,258 3 64 21.6 39.6 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,651 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,670 1 2 2.7 33.1 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 804 1 2 3.5 9.2 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,321 1 65 14.8 34.5 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,380 3 64 21.6 39.6 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,653 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,677 1 2 2.7 33.3 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,212 65,788 41,998 4,969 54,592 57,651 277 3 83,996 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 15 8 8 4.8 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 20 10 11 9.6 osh-native
31 no-host abuild-print-help 21 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 7 6.4 osh-static
1 no-host bin-true 615 299 354 3.1 bash
9 no-host bin-true 442 266 181 1.6 dash
17 no-host bin-true 787 321 485 8.8 osh-native
25 no-host bin-true 804 319 500 9.2 osh-nosouffle
33 no-host bin-true 652 318 352 5.4 osh-static
2 no-host configure.cpython 13,713 7,569 6,532 34.7 bash
10 no-host configure.cpython 13,776 7,669 6,514 34.4 dash
18 no-host configure.cpython 13,256 6,959 6,578 34.4 osh-native
26 no-host configure.cpython 13,321 7,023 6,587 34.5 osh-nosouffle
34 no-host configure.cpython 12,742 7,048 5,930 34.4 osh-static
4 no-host configure.ocaml 3,629 1,494 1,175 28.6 bash
12 no-host configure.ocaml 3,554 1,441 1,137 28.6 dash
20 no-host configure.ocaml 3,651 1,417 1,273 28.7 osh-native
28 no-host configure.ocaml 3,653 1,469 1,225 28.7 osh-nosouffle
36 no-host configure.ocaml 3,625 1,485 1,169 28.7 osh-static
5 no-host configure.tcc 45 22 23 26.2 bash
13 no-host configure.tcc 41 26 15 26.1 dash
21 no-host configure.tcc 46 29 18 26.1 osh-native
29 no-host configure.tcc 47 25 22 26.0 osh-nosouffle
37 no-host configure.tcc 43 20 23 26.1 osh-static
3 no-host configure.util-linux 12,380 6,503 6,340 39.6 bash
11 no-host configure.util-linux 13,066 6,372 7,183 39.5 dash
19 no-host configure.util-linux 12,258 6,031 6,452 39.6 osh-native
27 no-host configure.util-linux 12,380 6,121 6,483 39.6 osh-nosouffle
35 no-host configure.util-linux 11,889 6,108 5,996 39.6 osh-static
6 no-host configure.yash 1,661 973 697 33.4 bash
14 no-host configure.yash 1,609 933 677 33.3 dash
22 no-host configure.yash 1,670 954 717 33.1 osh-native
30 no-host configure.yash 1,677 924 756 33.3 osh-nosouffle
38 no-host configure.yash 1,646 934 716 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 2 1 6.7 osh-native
24 no-host hello-world 3 3 0 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,367 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,291 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,402 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,805 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,431 0 0 0 8 0 2,000 58 bash
9 no-host bin-true 49,403 0 0 0 8 0 2,987 58 dash
17 no-host bin-true 131,316 0 0 0 16 0 1,999 75 osh-native
25 no-host bin-true 134,931 0 0 0 16 0 1,998 87 osh-nosouffle
33 no-host bin-true 111,052 0 0 0 8 0 1,998 52 osh-static
2 no-host configure.cpython 1,628,709 0 0 0 25,272 0 14,069 1,008 bash
10 no-host configure.cpython 1,638,251 0 0 0 25,280 0 14,114 1,045 dash
18 no-host configure.cpython 1,592,670 0 0 0 25,280 0 11,305 835 osh-native
26 no-host configure.cpython 1,616,709 0 0 0 25,280 0 11,318 959 osh-nosouffle
34 no-host configure.cpython 1,521,828 0 0 0 25,272 0 11,304 835 osh-static
4 no-host configure.ocaml 299,567 0 0 0 4,432 0 2,019 204 bash
12 no-host configure.ocaml 280,752 0 0 0 4,432 0 2,096 211 dash
20 no-host configure.ocaml 305,835 0 0 0 4,440 0 1,999 232 osh-native
28 no-host configure.ocaml 307,384 0 0 0 4,440 0 1,998 178 osh-nosouffle
36 no-host configure.ocaml 300,771 0 0 0 4,432 0 2,004 226 osh-static
5 no-host configure.tcc 5,222 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,194 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,594 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,674 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,542,322 1 0 232 35,944 0 18,957 1,022 bash
11 no-host configure.util-linux 1,700,104 0 0 0 35,936 0 17,121 1,273 dash
19 no-host configure.util-linux 1,493,424 0 0 0 35,952 0 16,148 867 osh-native
27 no-host configure.util-linux 1,512,177 2 0 0 35,944 0 16,185 887 osh-nosouffle
35 no-host configure.util-linux 1,457,419 0 0 0 35,944 0 16,144 940 osh-static
6 no-host configure.yash 173,366 0 0 0 3,616 0 876 92 bash
14 no-host configure.yash 159,408 0 0 0 3,624 0 1,003 117 dash
22 no-host configure.yash 176,813 0 0 0 3,624 0 858 95 osh-native
30 no-host configure.yash 177,448 0 0 0 3,624 0 858 94 osh-nosouffle
38 no-host configure.yash 173,070 0 0 0 3,616 0 855 100 osh-static
0 no-host hello-world 150 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 399 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-2055f4e0
osh-nosouffle osh-81ac2244
osh-static osh-static-28edfd56
host label host id
no-host no-host-9c670df1