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 21 22 19 1.28 1.20
bin-true no-host 631 446 819 818 666 1.30 1.05
configure.cpython no-host 14,328 14,523 14,138 14,069 13,750 0.99 0.96
configure.ocaml no-host 3,803 3,798 3,836 3,815 3,825 1.01 1.01
configure.tcc no-host 47 44 47 49 44 1.01 0.95
configure.util-linux no-host 13,085 14,037 13,155 13,056 12,844 1.01 0.98
configure.yash no-host 1,746 1,704 1,766 1,773 1,787 1.01 1.02
hello-world no-host 1 1 3 3 1 2.13 0.90

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,377 1,163 3,291 3,420 2,839 1.38 1.19
bin-true no-host 101,444 49,384 129,054 131,378 112,730 1.27 1.11
configure.cpython no-host 1,626,414 1,636,052 1,581,435 1,608,506 1,525,068 0.97 0.94
configure.ocaml no-host 298,440 280,529 306,092 307,107 300,050 1.03 1.01
configure.tcc no-host 5,245 4,206 5,596 5,691 5,130 1.07 0.98
configure.util-linux no-host 1,544,337 1,694,569 1,497,454 1,514,129 1,452,038 0.97 0.94
configure.yash no-host 173,342 159,568 177,103 177,419 172,999 1.02 1.00
hello-world no-host 148 85 392 399 182 2.65 1.23

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.0 6.4 1.95 1.32
bin-true no-host 3.1 1.7 8.7 9.2 5.1 2.75 1.62
configure.cpython no-host 34.4 34.6 34.4 34.7 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.6 28.6 28.7 28.7 0.99 1.00
configure.tcc no-host 26.3 26.1 26.0 26.2 26.1 0.99 0.99
configure.util-linux no-host 39.8 39.9 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.7 6.9 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,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 819 1 2 3.5 8.7 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 14,138 2 73 14.8 34.4 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 13,155 3 74 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,836 1 2 2.8 28.6 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.0 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,766 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 21 1 2 3.0 9.4 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 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 818 1 2 3.5 9.2 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 14,069 1 73 14.8 34.7 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 13,056 3 70 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,815 1 2 2.8 28.7 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 49 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,773 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 9 8 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 9 12 9.4 osh-native
31 no-host abuild-print-help 22 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 10 10 6.4 osh-static
1 no-host bin-true 631 302 367 3.1 bash
9 no-host bin-true 446 279 172 1.7 dash
17 no-host bin-true 819 316 519 8.7 osh-native
25 no-host bin-true 818 312 524 9.2 osh-nosouffle
33 no-host bin-true 666 300 382 5.1 osh-static
2 no-host configure.cpython 14,328 7,832 6,891 34.4 bash
10 no-host configure.cpython 14,523 7,832 7,110 34.6 dash
18 no-host configure.cpython 14,138 7,504 6,918 34.4 osh-native
26 no-host configure.cpython 14,069 7,553 6,814 34.7 osh-nosouffle
34 no-host configure.cpython 13,750 7,496 6,500 34.5 osh-static
4 no-host configure.ocaml 3,803 1,534 1,309 28.8 bash
12 no-host configure.ocaml 3,798 1,537 1,285 28.6 dash
20 no-host configure.ocaml 3,836 1,542 1,334 28.6 osh-native
28 no-host configure.ocaml 3,815 1,494 1,363 28.7 osh-nosouffle
36 no-host configure.ocaml 3,825 1,547 1,310 28.7 osh-static
5 no-host configure.tcc 47 23 24 26.3 bash
13 no-host configure.tcc 44 24 21 26.1 dash
21 no-host configure.tcc 47 21 27 26.0 osh-native
29 no-host configure.tcc 49 21 29 26.2 osh-nosouffle
37 no-host configure.tcc 44 20 25 26.1 osh-static
3 no-host configure.util-linux 13,085 6,853 6,720 39.8 bash
11 no-host configure.util-linux 14,037 6,764 7,777 39.9 dash
19 no-host configure.util-linux 13,155 6,456 6,928 39.6 osh-native
27 no-host configure.util-linux 13,056 6,571 6,708 39.7 osh-nosouffle
35 no-host configure.util-linux 12,844 6,542 6,523 39.6 osh-static
6 no-host configure.yash 1,746 988 766 33.4 bash
14 no-host configure.yash 1,704 960 745 33.3 dash
22 no-host configure.yash 1,766 1,000 769 33.4 osh-native
30 no-host configure.yash 1,773 992 783 33.4 osh-nosouffle
38 no-host configure.yash 1,787 952 836 33.4 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 0 3 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 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,377 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,291 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,420 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,444 0 0 0 8 0 1,998 72 bash
9 no-host bin-true 49,384 0 0 0 8 0 2,987 58 dash
17 no-host bin-true 129,054 0 0 0 16 0 1,998 84 osh-native
25 no-host bin-true 131,378 0 0 0 16 0 1,999 82 osh-nosouffle
33 no-host bin-true 112,730 0 0 0 8 0 1,996 82 osh-static
2 no-host configure.cpython 1,626,414 0 0 0 25,272 0 14,088 1,044 bash
10 no-host configure.cpython 1,636,052 0 0 0 25,272 0 14,127 1,001 dash
18 no-host configure.cpython 1,581,435 0 0 0 25,280 0 11,291 881 osh-native
26 no-host configure.cpython 1,608,506 0 0 0 25,280 0 11,300 845 osh-nosouffle
34 no-host configure.cpython 1,525,068 0 0 0 25,272 0 11,298 785 osh-static
4 no-host configure.ocaml 298,440 0 0 0 4,432 0 2,019 201 bash
12 no-host configure.ocaml 280,529 0 0 0 4,432 0 2,109 179 dash
20 no-host configure.ocaml 306,092 0 0 0 4,440 0 2,000 211 osh-native
28 no-host configure.ocaml 307,107 0 0 0 4,440 0 2,001 182 osh-nosouffle
36 no-host configure.ocaml 300,050 0 0 0 4,432 0 2,002 228 osh-static
5 no-host configure.tcc 5,245 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,596 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,691 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,544,337 0 0 232 35,944 0 19,026 1,059 bash
11 no-host configure.util-linux 1,694,569 1 0 0 35,936 0 17,087 1,193 dash
19 no-host configure.util-linux 1,497,454 1 0 0 35,952 0 16,131 965 osh-native
27 no-host configure.util-linux 1,514,129 1 0 0 35,944 0 16,198 943 osh-nosouffle
35 no-host configure.util-linux 1,452,038 1 0 0 35,936 0 16,159 1,010 osh-static
6 no-host configure.yash 173,342 0 0 0 3,616 0 877 93 bash
14 no-host configure.yash 159,568 0 0 0 3,616 0 1,001 98 dash
22 no-host configure.yash 177,103 0 0 0 3,624 0 858 99 osh-native
30 no-host configure.yash 177,419 0 0 0 3,624 0 856 96 osh-nosouffle
38 no-host configure.yash 172,999 0 0 0 3,624 0 856 103 osh-static
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 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-469e5877
osh-nosouffle osh-ecdc319e
osh-static osh-static-f7708ac4
host label host id
no-host no-host-9c670df1