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.27 1.13
bin-true no-host 618 449 830 796 652 1.34 1.05
configure.cpython no-host 14,478 14,621 13,533 13,374 12,850 0.93 0.89
configure.ocaml no-host 3,788 3,779 3,702 3,682 3,641 0.98 0.96
configure.tcc no-host 47 43 47 48 43 1.00 0.93
configure.util-linux no-host 12,874 13,865 12,592 12,457 11,988 0.98 0.93
configure.yash no-host 1,708 1,742 1,687 1,689 1,681 0.99 0.98
hello-world no-host 1 1 3 3 1 2.56 1.01

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,386 1,171 3,314 3,393 2,804 1.39 1.18
bin-true no-host 100,456 49,407 134,364 130,992 111,061 1.34 1.11
configure.cpython no-host 1,627,892 1,638,195 1,587,345 1,599,136 1,522,015 0.98 0.93
configure.ocaml no-host 299,543 280,828 305,554 306,394 300,880 1.02 1.00
configure.tcc no-host 5,222 4,222 5,618 5,662 5,124 1.08 0.98
configure.util-linux no-host 1,542,965 1,704,638 1,499,275 1,516,523 1,458,201 0.97 0.95
configure.yash no-host 173,099 159,575 176,144 177,411 173,039 1.02 1.00
hello-world no-host 150 86 388 398 181 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.9 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.8 9.2 5.2 2.79 1.67
configure.cpython no-host 34.4 34.5 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.6 28.5 1.00 1.00
configure.tcc no-host 26.1 26.1 26.0 26.2 26.0 0.99 0.99
configure.util-linux no-host 39.9 39.8 39.7 39.6 39.5 1.00 0.99
configure.yash no-host 33.4 33.3 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.4 7.2 3.4 2.04 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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 830 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,533 1 68 14.8 34.5 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,592 4 68 21.6 39.7 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,702 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 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,687 1 2 2.7 33.3 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.2 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 796 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,374 1 66 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,457 3 65 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,682 1 2 2.8 28.6 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,689 1 2 2.7 33.4 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 16 9 7 4.8 bash
15 no-host abuild-print-help 9 7 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 10 9 6.4 osh-static
1 no-host bin-true 618 319 338 3.1 bash
9 no-host bin-true 449 279 177 1.6 dash
17 no-host bin-true 830 287 559 8.8 osh-native
25 no-host bin-true 796 310 504 9.2 osh-nosouffle
33 no-host bin-true 652 303 366 5.2 osh-static
2 no-host configure.cpython 14,478 7,860 7,023 34.4 bash
10 no-host configure.cpython 14,621 7,808 7,236 34.5 dash
18 no-host configure.cpython 13,533 7,233 6,581 34.5 osh-native
26 no-host configure.cpython 13,374 7,146 6,514 34.5 osh-nosouffle
34 no-host configure.cpython 12,850 7,148 5,943 34.5 osh-static
4 no-host configure.ocaml 3,788 1,524 1,310 28.7 bash
12 no-host configure.ocaml 3,779 1,554 1,250 28.5 dash
20 no-host configure.ocaml 3,702 1,474 1,266 28.7 osh-native
28 no-host configure.ocaml 3,682 1,510 1,214 28.6 osh-nosouffle
36 no-host configure.ocaml 3,641 1,465 1,208 28.5 osh-static
5 no-host configure.tcc 47 23 25 26.1 bash
13 no-host configure.tcc 43 17 26 26.1 dash
21 no-host configure.tcc 47 27 20 26.0 osh-native
29 no-host configure.tcc 48 22 26 26.2 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.0 osh-static
3 no-host configure.util-linux 12,874 6,723 6,627 39.9 bash
11 no-host configure.util-linux 13,865 6,696 7,683 39.8 dash
19 no-host configure.util-linux 12,592 6,270 6,557 39.7 osh-native
27 no-host configure.util-linux 12,457 6,151 6,536 39.6 osh-nosouffle
35 no-host configure.util-linux 11,988 6,035 6,172 39.5 osh-static
6 no-host configure.yash 1,708 937 779 33.4 bash
14 no-host configure.yash 1,742 985 758 33.3 dash
22 no-host configure.yash 1,687 925 766 33.3 osh-native
30 no-host configure.yash 1,689 921 771 33.4 osh-nosouffle
38 no-host configure.yash 1,681 950 734 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 1 2 7.2 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,386 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,171 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,314 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,393 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,804 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,456 0 0 0 8 0 1,997 44 bash
9 no-host bin-true 49,407 0 0 0 8 0 2,991 59 dash
17 no-host bin-true 134,364 0 0 0 16 0 2,001 81 osh-native
25 no-host bin-true 130,992 0 0 0 16 0 1,997 81 osh-nosouffle
33 no-host bin-true 111,061 0 0 0 8 0 1,998 67 osh-static
2 no-host configure.cpython 1,627,892 0 0 0 25,272 0 14,068 1,026 bash
10 no-host configure.cpython 1,638,195 0 0 0 25,272 0 14,111 1,033 dash
18 no-host configure.cpython 1,587,345 0 0 0 25,280 0 11,299 826 osh-native
26 no-host configure.cpython 1,599,136 1 0 0 25,280 0 11,314 995 osh-nosouffle
34 no-host configure.cpython 1,522,015 1 0 0 25,272 0 11,314 867 osh-static
4 no-host configure.ocaml 299,543 0 0 0 4,432 0 2,014 216 bash
12 no-host configure.ocaml 280,828 0 0 0 4,432 0 2,107 208 dash
20 no-host configure.ocaml 305,554 0 0 0 4,440 0 2,000 228 osh-native
28 no-host configure.ocaml 306,394 0 0 0 4,440 0 2,004 200 osh-nosouffle
36 no-host configure.ocaml 300,880 0 0 0 4,432 0 1,999 238 osh-static
5 no-host configure.tcc 5,222 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,618 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,662 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,124 0 0 0 88 0 45 5 osh-static
3 no-host configure.util-linux 1,542,965 0 0 232 35,944 0 18,995 1,080 bash
11 no-host configure.util-linux 1,704,638 1 0 0 35,936 0 17,098 1,322 dash
19 no-host configure.util-linux 1,499,275 2 0 0 35,960 0 16,151 987 osh-native
27 no-host configure.util-linux 1,516,523 1 0 0 35,952 0 16,177 896 osh-nosouffle
35 no-host configure.util-linux 1,458,201 0 0 0 35,944 0 16,157 867 osh-static
6 no-host configure.yash 173,099 0 0 0 3,616 0 880 103 bash
14 no-host configure.yash 159,575 0 0 0 3,616 0 997 95 dash
22 no-host configure.yash 176,144 0 0 0 3,624 0 856 85 osh-native
30 no-host configure.yash 177,411 0 0 0 3,624 0 857 113 osh-nosouffle
38 no-host configure.yash 173,039 0 0 0 3,616 0 858 89 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-f0c4ac98
osh-nosouffle osh-212372b3
osh-static osh-static-4956d778
host label host id
no-host no-host-9c670df1