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 22 18 1.26 1.15
bin-true no-host 611 487 809 817 667 1.32 1.09
configure.cpython no-host 13,818 14,095 13,643 13,730 13,014 0.99 0.94
configure.ocaml no-host 3,702 3,643 3,751 3,700 3,688 1.01 1.00
configure.tcc no-host 46 42 47 47 45 1.01 0.96
configure.util-linux no-host 12,501 13,525 12,677 12,549 12,263 1.01 0.98
configure.yash no-host 1,740 1,683 1,703 1,706 1,670 0.98 0.96
hello-world no-host 1 1 3 3 1 2.43 1.08

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,414 1,170 3,277 3,380 2,851 1.36 1.18
bin-true no-host 100,444 49,379 131,015 135,291 111,683 1.30 1.11
configure.cpython no-host 1,625,116 1,629,186 1,588,928 1,602,537 1,524,031 0.98 0.94
configure.ocaml no-host 299,174 281,152 305,768 307,332 300,172 1.02 1.00
configure.tcc no-host 5,244 4,208 5,566 5,683 5,148 1.06 0.98
configure.util-linux no-host 1,536,413 1,701,226 1,496,162 1,511,634 1,451,408 0.97 0.94
configure.yash no-host 172,949 159,591 176,490 177,261 172,970 1.02 1.00
hello-world no-host 153 87 391 399 182 2.56 1.19

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 4.1 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.8 9.0 5.2 2.79 1.67
configure.cpython no-host 34.5 34.7 34.3 34.4 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.1 26.3 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.7 39.7 1.00 1.00
configure.yash no-host 33.1 33.3 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.3 1.6 6.6 7.2 3.4 2.00 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.6 3,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 809 1 2 3.5 8.8 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,643 1 66 14.8 34.3 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,677 3 66 21.6 39.6 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,751 1 2 2.8 28.7 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,703 1 2 2.7 33.4 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 7.2 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 817 1 2 3.5 9.0 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,730 1 66 14.8 34.4 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,549 3 64 21.6 39.7 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,700 1 2 2.8 28.6 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,706 1 2 2.7 33.4 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 8 8 4.8 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 22 11 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 611 315 334 3.1 bash
9 no-host bin-true 487 286 207 1.6 dash
17 no-host bin-true 809 305 523 8.8 osh-native
25 no-host bin-true 817 321 514 9.0 osh-nosouffle
33 no-host bin-true 667 331 352 5.2 osh-static
2 no-host configure.cpython 13,818 7,636 6,570 34.5 bash
10 no-host configure.cpython 14,095 7,766 6,735 34.7 dash
18 no-host configure.cpython 13,643 7,252 6,667 34.3 osh-native
26 no-host configure.cpython 13,730 7,313 6,710 34.4 osh-nosouffle
34 no-host configure.cpython 13,014 7,166 6,090 34.5 osh-static
4 no-host configure.ocaml 3,702 1,520 1,223 28.7 bash
12 no-host configure.ocaml 3,643 1,469 1,200 28.7 dash
20 no-host configure.ocaml 3,751 1,522 1,269 28.7 osh-native
28 no-host configure.ocaml 3,700 1,492 1,248 28.6 osh-nosouffle
36 no-host configure.ocaml 3,688 1,470 1,250 28.7 osh-static
5 no-host configure.tcc 46 27 20 26.1 bash
13 no-host configure.tcc 42 22 20 26.3 dash
21 no-host configure.tcc 47 26 22 26.2 osh-native
29 no-host configure.tcc 47 26 22 26.2 osh-nosouffle
37 no-host configure.tcc 45 18 27 26.2 osh-static
3 no-host configure.util-linux 12,501 6,559 6,409 39.6 bash
11 no-host configure.util-linux 13,525 6,601 7,427 39.5 dash
19 no-host configure.util-linux 12,677 6,227 6,673 39.6 osh-native
27 no-host configure.util-linux 12,549 6,255 6,521 39.7 osh-nosouffle
35 no-host configure.util-linux 12,263 6,245 6,238 39.7 osh-static
6 no-host configure.yash 1,740 1,001 747 33.1 bash
14 no-host configure.yash 1,683 949 735 33.3 dash
22 no-host configure.yash 1,703 962 743 33.4 osh-native
30 no-host configure.yash 1,706 915 794 33.4 osh-nosouffle
38 no-host configure.yash 1,670 923 751 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 0 3 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,414 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,170 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,277 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,380 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,851 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,444 0 0 0 8 0 1,996 44 bash
9 no-host bin-true 49,379 0 0 0 8 0 2,991 71 dash
17 no-host bin-true 131,015 0 0 0 16 0 1,998 83 osh-native
25 no-host bin-true 135,291 0 0 0 16 0 1,993 64 osh-nosouffle
33 no-host bin-true 111,683 0 0 0 8 0 1,999 68 osh-static
2 no-host configure.cpython 1,625,116 0 0 0 25,272 0 14,063 1,023 bash
10 no-host configure.cpython 1,629,186 0 0 0 25,272 0 14,109 1,021 dash
18 no-host configure.cpython 1,588,928 0 0 0 25,280 0 11,304 863 osh-native
26 no-host configure.cpython 1,602,537 0 0 0 25,280 0 11,305 801 osh-nosouffle
34 no-host configure.cpython 1,524,031 0 0 0 25,272 0 11,300 850 osh-static
4 no-host configure.ocaml 299,174 0 0 0 4,432 0 2,015 200 bash
12 no-host configure.ocaml 281,152 0 0 0 4,432 0 2,110 193 dash
20 no-host configure.ocaml 305,768 0 0 0 4,440 0 2,000 300 osh-native
28 no-host configure.ocaml 307,332 0 0 0 4,440 0 2,004 197 osh-nosouffle
36 no-host configure.ocaml 300,172 0 0 0 4,432 0 2,004 218 osh-static
5 no-host configure.tcc 5,244 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,566 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,683 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,148 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,413 0 0 232 35,944 0 18,992 1,027 bash
11 no-host configure.util-linux 1,701,226 0 0 0 35,936 0 17,127 1,181 dash
19 no-host configure.util-linux 1,496,162 2 0 0 35,952 0 16,144 908 osh-native
27 no-host configure.util-linux 1,511,634 2 0 0 35,944 0 16,163 909 osh-nosouffle
35 no-host configure.util-linux 1,451,408 3 0 0 35,936 0 16,165 1,092 osh-static
6 no-host configure.yash 172,949 0 0 0 3,616 0 878 105 bash
14 no-host configure.yash 159,591 0 0 0 3,616 0 1,002 114 dash
22 no-host configure.yash 176,490 0 0 0 3,624 0 859 102 osh-native
30 no-host configure.yash 177,261 0 0 0 3,632 0 856 94 osh-nosouffle
38 no-host configure.yash 172,970 0 0 0 3,616 0 857 95 osh-static
0 no-host hello-world 153 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-c69e1d6d
osh-nosouffle osh-03a73494
osh-static osh-static-ae34769c
host label host id
no-host no-host-9c670df1