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 22 22 18 1.36 1.14
bin-true no-host 627 439 818 846 661 1.31 1.06
configure.cpython no-host 14,006 14,217 13,671 13,799 13,310 0.98 0.95
configure.ocaml no-host 3,689 3,650 3,793 3,737 3,720 1.03 1.01
configure.tcc no-host 45 41 47 49 43 1.04 0.95
configure.util-linux no-host 12,662 13,481 12,735 12,734 12,301 1.01 0.97
configure.yash no-host 1,711 1,647 1,755 1,732 1,714 1.03 1.00
hello-world no-host 1 1 3 3 1 2.50 1.06

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,361 1,158 3,301 3,399 2,809 1.40 1.19
bin-true no-host 103,495 49,354 136,569 138,600 111,300 1.32 1.08
configure.cpython no-host 1,619,935 1,633,846 1,576,134 1,608,724 1,521,848 0.97 0.94
configure.ocaml no-host 298,752 280,911 306,115 306,865 299,775 1.02 1.00
configure.tcc no-host 5,209 4,203 5,577 5,676 5,116 1.07 0.98
configure.util-linux no-host 1,538,731 1,700,734 1,497,859 1,507,394 1,450,260 0.97 0.94
configure.yash no-host 173,380 159,577 176,776 176,918 172,679 1.02 1.00
hello-world no-host 154 84 392 396 180 2.55 1.17

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.4 10.0 6.4 2.00 1.36
bin-true no-host 3.3 1.7 8.5 9.2 5.1 2.60 1.56
configure.cpython no-host 34.5 34.5 34.4 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.8 28.5 28.7 1.01 1.00
configure.tcc no-host 26.3 26.0 26.1 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.5 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.1 33.4 33.1 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.7 6.9 3.3 2.12 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.7 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 818 1 2 3.5 8.5 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,671 2 73 14.8 34.4 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,735 3 69 21.6 39.5 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,793 1 2 2.8 28.8 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,755 1 2 2.7 33.4 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.4 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 846 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,799 1 70 14.9 34.6 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,734 3 68 21.6 39.6 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,737 1 2 2.8 28.5 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,732 1 2 2.7 33.1 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,251 65,788 41,998 4,969 54,631 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 8 9 4.7 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 22 12 11 9.4 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.4 osh-static
1 no-host bin-true 627 323 341 3.3 bash
9 no-host bin-true 439 271 173 1.7 dash
17 no-host bin-true 818 310 525 8.5 osh-native
25 no-host bin-true 846 306 556 9.2 osh-nosouffle
33 no-host bin-true 661 312 366 5.1 osh-static
2 no-host configure.cpython 14,006 7,701 6,696 34.5 bash
10 no-host configure.cpython 14,217 7,763 6,866 34.5 dash
18 no-host configure.cpython 13,671 7,324 6,616 34.4 osh-native
26 no-host configure.cpython 13,799 7,283 6,811 34.6 osh-nosouffle
34 no-host configure.cpython 13,310 7,374 6,166 34.5 osh-static
4 no-host configure.ocaml 3,689 1,496 1,233 28.5 bash
12 no-host configure.ocaml 3,650 1,475 1,199 28.7 dash
20 no-host configure.ocaml 3,793 1,562 1,274 28.8 osh-native
28 no-host configure.ocaml 3,737 1,499 1,282 28.5 osh-nosouffle
36 no-host configure.ocaml 3,720 1,528 1,223 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.3 bash
13 no-host configure.tcc 41 22 19 26.0 dash
21 no-host configure.tcc 47 26 22 26.1 osh-native
29 no-host configure.tcc 49 19 30 26.2 osh-nosouffle
37 no-host configure.tcc 43 26 18 26.2 osh-static
3 no-host configure.util-linux 12,662 6,655 6,485 39.6 bash
11 no-host configure.util-linux 13,481 6,606 7,374 39.5 dash
19 no-host configure.util-linux 12,735 6,247 6,712 39.5 osh-native
27 no-host configure.util-linux 12,734 6,278 6,685 39.6 osh-nosouffle
35 no-host configure.util-linux 12,301 6,233 6,279 39.6 osh-static
6 no-host configure.yash 1,711 941 779 33.4 bash
14 no-host configure.yash 1,647 947 701 33.1 dash
22 no-host configure.yash 1,755 949 809 33.4 osh-native
30 no-host configure.yash 1,732 990 745 33.1 osh-nosouffle
38 no-host configure.yash 1,714 977 740 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 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,361 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,301 0 0 0 16 0 37 0 osh-native
31 no-host abuild-print-help 3,399 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,809 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 103,495 0 0 0 8 0 2,000 58 bash
9 no-host bin-true 49,354 0 0 0 8 0 2,997 55 dash
17 no-host bin-true 136,569 0 0 0 16 0 1,999 61 osh-native
25 no-host bin-true 138,600 0 0 0 16 0 1,998 75 osh-nosouffle
33 no-host bin-true 111,300 0 0 0 8 0 1,996 56 osh-static
2 no-host configure.cpython 1,619,935 0 0 0 25,272 0 14,080 992 bash
10 no-host configure.cpython 1,633,846 0 0 0 25,272 0 14,106 968 dash
18 no-host configure.cpython 1,576,134 0 0 0 25,280 0 11,294 855 osh-native
26 no-host configure.cpython 1,608,724 0 0 0 25,280 0 11,325 841 osh-nosouffle
34 no-host configure.cpython 1,521,848 0 0 0 25,272 0 11,297 867 osh-static
4 no-host configure.ocaml 298,752 0 0 0 4,432 0 2,015 176 bash
12 no-host configure.ocaml 280,911 0 0 0 4,432 0 2,096 203 dash
20 no-host configure.ocaml 306,115 0 0 8 4,440 0 1,999 211 osh-native
28 no-host configure.ocaml 306,865 0 0 0 4,440 0 2,005 189 osh-nosouffle
36 no-host configure.ocaml 299,775 0 0 0 4,432 0 2,000 246 osh-static
5 no-host configure.tcc 5,209 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,577 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,676 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,538,731 2 0 0 35,944 0 18,962 1,052 bash
11 no-host configure.util-linux 1,700,734 3 0 0 35,936 0 17,074 1,146 dash
19 no-host configure.util-linux 1,497,859 1 0 0 35,952 0 16,131 952 osh-native
27 no-host configure.util-linux 1,507,394 0 0 0 35,944 0 16,152 944 osh-nosouffle
35 no-host configure.util-linux 1,450,260 0 0 0 35,936 0 16,146 844 osh-static
6 no-host configure.yash 173,380 0 0 0 3,616 0 880 103 bash
14 no-host configure.yash 159,577 0 0 0 3,616 0 1,003 107 dash
22 no-host configure.yash 176,776 0 0 0 3,624 0 855 98 osh-native
30 no-host configure.yash 176,918 0 0 0 3,632 0 858 95 osh-nosouffle
38 no-host configure.yash 172,679 0 0 0 3,616 0 856 105 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-c9f155b1
osh-nosouffle osh-5fd25311
osh-static osh-static-f3ca44d4
host label host id
no-host no-host-9c670df1