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 13 7 18 19 17 1.40 1.33
bin-true no-host 468 316 591 608 490 1.26 1.05
configure.cpython no-host 12,275 12,265 11,804 11,825 11,466 0.96 0.93
configure.ocaml no-host 3,438 3,316 3,379 3,400 3,360 0.98 0.98
configure.tcc no-host 41 35 40 40 37 0.97 0.91
configure.util-linux no-host 10,885 11,226 10,712 11,036 10,504 0.98 0.97
configure.yash no-host 1,556 1,438 1,487 1,501 1,500 0.96 0.96
hello-world no-host 1 1 2 2 1 2.32 1.07

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,378 1,170 3,316 3,435 2,860 1.39 1.20
bin-true no-host 103,891 49,855 129,440 136,089 112,112 1.25 1.08
configure.cpython no-host 1,633,821 1,653,457 1,595,304 1,601,933 1,527,081 0.98 0.93
configure.ocaml no-host 299,617 281,566 307,413 308,115 300,898 1.03 1.00
configure.tcc no-host 5,225 4,235 5,640 5,712 5,156 1.08 0.99
configure.util-linux no-host 1,549,377 1,708,475 1,495,677 1,521,198 1,457,232 0.97 0.94
configure.yash no-host 173,910 159,897 176,839 177,544 173,245 1.02 1.00
hello-world no-host 154 87 390 399 183 2.53 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.7 4.1 9.6 9.8 6.4 2.03 1.36
bin-true no-host 3.3 1.7 8.8 9.3 5.2 2.68 1.60
configure.cpython no-host 34.6 34.6 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.5 28.8 28.7 1.00 1.00
configure.tcc no-host 26.1 26.4 26.4 26.4 26.4 1.01 1.01
configure.util-linux no-host 39.7 39.5 39.6 39.6 40.0 1.00 1.01
configure.yash no-host 33.4 33.1 33.3 33.1 33.1 1.00 0.99
hello-world no-host 3.3 1.4 6.6 7.1 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 2 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 591 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 11,804 1 62 14.8 34.5 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,712 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,379 1 2 2.8 28.5 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.4 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,487 1 2 2.7 33.3 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 18 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 2 0 0 0.3 7.1 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 608 1 2 3.5 9.3 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 11,825 1 62 14.8 34.5 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,036 3 65 21.6 39.6 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,400 1 2 2.8 28.8 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.4 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,501 1 2 2.7 33.1 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 9.8 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 13 9 4 4.7 bash
15 no-host abuild-print-help 7 6 1 4.1 dash
23 no-host abuild-print-help 18 11 8 9.6 osh-native
31 no-host abuild-print-help 19 13 7 9.8 osh-nosouffle
39 no-host abuild-print-help 17 13 5 6.4 osh-static
1 no-host bin-true 468 281 217 3.3 bash
9 no-host bin-true 316 231 85 1.7 dash
17 no-host bin-true 591 323 279 8.8 osh-native
25 no-host bin-true 608 321 299 9.3 osh-nosouffle
33 no-host bin-true 490 301 200 5.2 osh-static
2 no-host configure.cpython 12,275 7,832 4,720 34.6 bash
10 no-host configure.cpython 12,265 7,824 4,731 34.6 dash
18 no-host configure.cpython 11,804 7,306 4,680 34.5 osh-native
26 no-host configure.cpython 11,825 7,321 4,695 34.5 osh-nosouffle
34 no-host configure.cpython 11,466 7,239 4,381 34.5 osh-static
4 no-host configure.ocaml 3,438 1,569 882 28.6 bash
12 no-host configure.ocaml 3,316 1,487 830 28.8 dash
20 no-host configure.ocaml 3,379 1,511 886 28.5 osh-native
28 no-host configure.ocaml 3,400 1,517 900 28.8 osh-nosouffle
36 no-host configure.ocaml 3,360 1,503 867 28.7 osh-static
5 no-host configure.tcc 41 26 15 26.1 bash
13 no-host configure.tcc 35 22 12 26.4 dash
21 no-host configure.tcc 40 25 15 26.4 osh-native
29 no-host configure.tcc 40 22 19 26.4 osh-nosouffle
37 no-host configure.tcc 37 21 17 26.4 osh-static
3 no-host configure.util-linux 10,885 6,866 4,359 39.7 bash
11 no-host configure.util-linux 11,226 6,715 4,891 39.5 dash
19 no-host configure.util-linux 10,712 6,300 4,546 39.6 osh-native
27 no-host configure.util-linux 11,036 6,420 4,756 39.6 osh-nosouffle
35 no-host configure.util-linux 10,504 6,295 4,339 40.0 osh-static
6 no-host configure.yash 1,556 1,010 544 33.4 bash
14 no-host configure.yash 1,438 973 457 33.1 dash
22 no-host configure.yash 1,487 976 502 33.3 osh-native
30 no-host configure.yash 1,501 961 534 33.1 osh-nosouffle
38 no-host configure.yash 1,500 926 566 33.1 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 2 0 2 6.6 osh-native
24 no-host hello-world 2 1 2 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,378 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,170 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,316 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,435 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,860 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,891 0 0 0 8 0 1,995 61 bash
9 no-host bin-true 49,855 0 0 0 8 0 2,997 35 dash
17 no-host bin-true 129,440 0 0 0 16 0 2,000 57 osh-native
25 no-host bin-true 136,089 0 0 0 16 0 1,996 81 osh-nosouffle
33 no-host bin-true 112,112 0 0 0 8 0 2,001 55 osh-static
2 no-host configure.cpython 1,633,821 0 0 0 25,272 0 14,029 977 bash
10 no-host configure.cpython 1,653,457 0 0 0 25,272 0 14,086 907 dash
18 no-host configure.cpython 1,595,304 0 0 0 25,280 0 11,285 867 osh-native
26 no-host configure.cpython 1,601,933 1 0 0 25,280 0 11,291 827 osh-nosouffle
34 no-host configure.cpython 1,527,081 0 0 0 25,272 0 11,323 819 osh-static
4 no-host configure.ocaml 299,617 0 0 0 4,432 0 2,021 177 bash
12 no-host configure.ocaml 281,566 0 0 0 4,432 0 2,112 169 dash
20 no-host configure.ocaml 307,413 0 0 0 4,440 0 2,003 198 osh-native
28 no-host configure.ocaml 308,115 0 0 0 4,440 0 2,004 201 osh-nosouffle
36 no-host configure.ocaml 300,898 0 0 0 4,432 0 2,004 197 osh-static
5 no-host configure.tcc 5,225 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,235 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,640 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,712 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,156 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,549,377 1 0 232 35,944 0 18,794 928 bash
11 no-host configure.util-linux 1,708,475 1 0 0 35,936 0 16,930 1,125 dash
19 no-host configure.util-linux 1,495,677 1 0 0 35,960 0 16,196 898 osh-native
27 no-host configure.util-linux 1,521,198 5 0 0 35,944 0 16,264 846 osh-nosouffle
35 no-host configure.util-linux 1,457,232 2 0 0 35,936 0 16,185 826 osh-static
6 no-host configure.yash 173,910 0 0 0 3,616 0 875 100 bash
14 no-host configure.yash 159,897 0 0 0 3,616 0 1,009 78 dash
22 no-host configure.yash 176,839 0 0 0 3,624 0 854 82 osh-native
30 no-host configure.yash 177,544 0 0 0 3,624 0 858 93 osh-nosouffle
38 no-host configure.yash 173,245 0 0 0 3,616 0 857 89 osh-static
0 no-host hello-world 154 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 1 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-daae0e62
osh-nosouffle osh-4b980f38
osh-static osh-static-e76e7d78
host label host id
no-host no-host-9c670df1