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 22 21 18 1.41 1.18
bin-true no-host 613 439 798 839 650 1.30 1.06
configure.cpython no-host 13,634 13,661 13,246 13,852 12,772 0.97 0.94
configure.ocaml no-host 3,618 3,581 3,719 3,677 3,625 1.03 1.00
configure.tcc no-host 45 41 47 46 43 1.04 0.95
configure.util-linux no-host 12,367 13,123 12,370 12,357 11,968 1.00 0.97
configure.yash no-host 1,668 1,617 1,763 1,675 1,642 1.06 0.98
hello-world no-host 1 1 3 3 1 2.45 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,403 1,160 3,304 3,401 2,849 1.37 1.19
bin-true no-host 99,468 49,399 132,987 136,626 111,718 1.34 1.12
configure.cpython no-host 1,623,430 1,641,514 1,585,281 1,611,573 1,517,879 0.98 0.93
configure.ocaml no-host 298,923 280,628 306,613 307,309 300,211 1.03 1.00
configure.tcc no-host 5,217 4,213 5,589 5,697 5,123 1.07 0.98
configure.util-linux no-host 1,545,061 1,704,371 1,523,937 1,518,991 1,477,073 0.99 0.96
configure.yash no-host 173,332 159,562 176,521 177,049 172,864 1.02 1.00
hello-world no-host 149 87 390 402 181 2.62 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.4 10.1 6.3 1.95 1.30
bin-true no-host 3.3 1.4 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.5 34.7 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.6 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.0 26.1 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.8 39.7 39.8 39.7 1.00 1.00
configure.yash no-host 33.3 33.3 33.2 33.1 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.4 7.1 3.3 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 3 0 0 0.3 6.4 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 798 1 2 3.5 8.8 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,246 1 66 14.8 34.5 1,750,827 35,398 28,953 93,078 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,370 3 65 21.6 39.7 2,705,393 37,470 66,341 119,746 1,291,872 1,293,775 32,527 42 132,682 1
configure.ocaml no-host 3,719 1 2 2.8 28.6 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,763 1 2 2.7 33.2 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.4 117,234 65,800 42,007 4,977 54,599 57,658 277 3 84,014 1
hello-world no-host 3 0 0 0.3 7.1 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 839 1 2 3.5 9.2 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,852 2 68 14.8 34.5 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,357 3 62 21.6 39.8 2,705,393 37,476 66,347 119,746 1,291,872 1,293,775 32,527 42 132,694 1
configure.ocaml no-host 3,677 1 2 2.8 28.7 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,675 1 2 2.7 33.1 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,234 65,804 42,011 4,977 54,599 57,658 277 3 84,022 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 7 9 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 22 10 13 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 613 307 343 3.3 bash
9 no-host bin-true 439 264 181 1.4 dash
17 no-host bin-true 798 311 502 8.8 osh-native
25 no-host bin-true 839 304 551 9.2 osh-nosouffle
33 no-host bin-true 650 302 365 5.1 osh-static
2 no-host configure.cpython 13,634 7,433 6,555 34.5 bash
10 no-host configure.cpython 13,661 7,523 6,533 34.7 dash
18 no-host configure.cpython 13,246 7,085 6,426 34.5 osh-native
26 no-host configure.cpython 13,852 7,280 6,840 34.5 osh-nosouffle
34 no-host configure.cpython 12,772 7,072 5,920 34.4 osh-static
4 no-host configure.ocaml 3,618 1,471 1,187 28.6 bash
12 no-host configure.ocaml 3,581 1,508 1,098 28.7 dash
20 no-host configure.ocaml 3,719 1,531 1,227 28.6 osh-native
28 no-host configure.ocaml 3,677 1,460 1,249 28.7 osh-nosouffle
36 no-host configure.ocaml 3,625 1,446 1,210 28.6 osh-static
5 no-host configure.tcc 45 21 24 26.2 bash
13 no-host configure.tcc 41 23 18 26.0 dash
21 no-host configure.tcc 47 25 23 26.1 osh-native
29 no-host configure.tcc 46 25 22 26.1 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.1 osh-static
3 no-host configure.util-linux 12,367 6,528 6,278 39.6 bash
11 no-host configure.util-linux 13,123 6,420 7,174 39.8 dash
19 no-host configure.util-linux 12,370 6,139 6,429 39.7 osh-native
27 no-host configure.util-linux 12,357 6,079 6,492 39.8 osh-nosouffle
35 no-host configure.util-linux 11,968 6,128 6,054 39.7 osh-static
6 no-host configure.yash 1,668 953 723 33.3 bash
14 no-host configure.yash 1,617 897 721 33.3 dash
22 no-host configure.yash 1,763 957 807 33.2 osh-native
30 no-host configure.yash 1,675 954 724 33.1 osh-nosouffle
38 no-host configure.yash 1,642 888 757 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 0 3 6.4 osh-native
24 no-host hello-world 3 2 1 7.1 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,403 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,304 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,401 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,849 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,468 0 0 0 8 0 2,000 67 bash
9 no-host bin-true 49,399 0 0 0 8 0 2,997 56 dash
17 no-host bin-true 132,987 0 0 0 16 0 1,998 84 osh-native
25 no-host bin-true 136,626 0 0 0 16 0 1,995 92 osh-nosouffle
33 no-host bin-true 111,718 0 0 0 8 0 1,997 73 osh-static
2 no-host configure.cpython 1,623,430 0 0 0 25,272 0 14,082 1,093 bash
10 no-host configure.cpython 1,641,514 0 0 0 25,272 0 14,116 979 dash
18 no-host configure.cpython 1,585,281 0 0 0 25,280 0 11,309 910 osh-native
26 no-host configure.cpython 1,611,573 0 0 0 25,280 0 11,311 808 osh-nosouffle
34 no-host configure.cpython 1,517,879 1 0 0 25,272 0 11,309 781 osh-static
4 no-host configure.ocaml 298,923 0 0 0 4,432 0 2,018 195 bash
12 no-host configure.ocaml 280,628 0 0 0 4,432 0 2,104 192 dash
20 no-host configure.ocaml 306,613 0 0 0 4,440 0 2,002 229 osh-native
28 no-host configure.ocaml 307,309 0 0 0 4,440 0 1,999 191 osh-nosouffle
36 no-host configure.ocaml 300,211 0 0 0 4,432 0 2,000 218 osh-static
5 no-host configure.tcc 5,217 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,589 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,697 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,545,061 0 0 0 35,944 0 18,945 1,001 bash
11 no-host configure.util-linux 1,704,371 0 0 336 35,936 0 17,094 1,173 dash
19 no-host configure.util-linux 1,523,937 0 0 0 35,952 0 16,161 887 osh-native
27 no-host configure.util-linux 1,518,991 0 0 0 35,944 0 16,226 931 osh-nosouffle
35 no-host configure.util-linux 1,477,073 1 0 0 35,944 0 16,137 878 osh-static
6 no-host configure.yash 173,332 0 0 0 3,616 0 878 98 bash
14 no-host configure.yash 159,562 0 0 0 3,616 0 1,003 104 dash
22 no-host configure.yash 176,521 0 0 0 3,624 0 856 107 osh-native
30 no-host configure.yash 177,049 0 0 0 3,624 0 857 113 osh-nosouffle
38 no-host configure.yash 172,864 0 0 0 3,616 0 859 98 osh-static
0 no-host hello-world 149 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 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 402 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-41ba9939
osh-nosouffle osh-e7655f71
osh-static osh-static-ab37625c
host label host id
no-host no-host-9c670df1