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 17 20 16 1.38 1.29
bin-true no-host 442 307 613 609 503 1.39 1.14
configure.cpython no-host 11,809 12,012 12,036 11,966 11,581 1.02 0.98
configure.ocaml no-host 3,342 3,337 3,412 3,419 3,404 1.02 1.02
configure.tcc no-host 38 35 40 41 37 1.04 0.97
configure.util-linux no-host 10,528 11,388 10,864 11,021 10,624 1.03 1.01
configure.yash no-host 1,494 1,448 1,485 1,508 1,496 0.99 1.00
hello-world no-host 1 1 2 2 1 2.25 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,404 1,183 3,313 3,414 2,818 1.38 1.17
bin-true no-host 102,931 49,824 132,755 135,373 110,426 1.29 1.07
configure.cpython no-host 1,630,538 1,650,622 1,595,941 1,601,767 1,525,170 0.98 0.94
configure.ocaml no-host 300,091 281,776 305,946 307,483 301,632 1.02 1.01
configure.tcc no-host 5,236 4,227 5,595 5,707 5,146 1.07 0.98
configure.util-linux no-host 1,549,940 1,710,017 1,501,289 1,523,310 1,462,850 0.97 0.94
configure.yash no-host 173,552 159,949 177,505 177,011 173,350 1.02 1.00
hello-world no-host 151 85 390 398 183 2.58 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 4.1 9.6 10.1 6.4 1.97 1.32
bin-true no-host 3.3 1.6 8.9 9.0 5.4 2.72 1.64
configure.cpython no-host 34.7 34.6 34.8 34.6 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.9 28.7 28.8 1.01 1.01
configure.tcc no-host 26.3 26.1 26.4 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.5 39.5 39.5 39.5 39.6 1.00 1.00
configure.yash no-host 33.4 33.5 33.3 33.1 33.4 1.00 1.00
hello-world no-host 3.0 1.4 6.6 6.9 3.4 2.17 1.13

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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 613 1 2 3.5 8.9 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 12,036 1 62 14.8 34.8 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,864 3 67 21.6 39.5 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,412 1 2 2.8 28.9 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,485 1 2 2.7 33.3 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 17 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 2 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 609 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 11,966 1 63 14.8 34.6 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,021 3 66 21.6 39.5 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,419 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,508 1 2 2.7 33.1 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 10.1 117,212 65,788 41,998 4,969 54,592 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 13 8 5 4.8 bash
15 no-host abuild-print-help 7 4 3 4.1 dash
23 no-host abuild-print-help 17 11 7 9.6 osh-native
31 no-host abuild-print-help 20 13 7 10.1 osh-nosouffle
39 no-host abuild-print-help 16 11 6 6.4 osh-static
1 no-host bin-true 442 280 189 3.3 bash
9 no-host bin-true 307 230 78 1.6 dash
17 no-host bin-true 613 326 298 8.9 osh-native
25 no-host bin-true 609 321 298 9.0 osh-nosouffle
33 no-host bin-true 503 282 232 5.4 osh-static
2 no-host configure.cpython 11,809 7,662 4,427 34.7 bash
10 no-host configure.cpython 12,012 7,790 4,511 34.6 dash
18 no-host configure.cpython 12,036 7,360 4,867 34.8 osh-native
26 no-host configure.cpython 11,966 7,355 4,804 34.6 osh-nosouffle
34 no-host configure.cpython 11,581 7,286 4,456 34.4 osh-static
4 no-host configure.ocaml 3,342 1,511 851 28.7 bash
12 no-host configure.ocaml 3,337 1,503 835 28.7 dash
20 no-host configure.ocaml 3,412 1,502 927 28.9 osh-native
28 no-host configure.ocaml 3,419 1,511 930 28.7 osh-nosouffle
36 no-host configure.ocaml 3,404 1,527 885 28.8 osh-static
5 no-host configure.tcc 38 26 12 26.3 bash
13 no-host configure.tcc 35 26 9 26.1 dash
21 no-host configure.tcc 40 22 18 26.4 osh-native
29 no-host configure.tcc 41 23 18 26.2 osh-nosouffle
37 no-host configure.tcc 37 26 12 26.3 osh-static
3 no-host configure.util-linux 10,528 6,754 4,119 39.5 bash
11 no-host configure.util-linux 11,388 6,763 4,992 39.5 dash
19 no-host configure.util-linux 10,864 6,407 4,592 39.5 osh-native
27 no-host configure.util-linux 11,021 6,442 4,717 39.5 osh-nosouffle
35 no-host configure.util-linux 10,624 6,294 4,462 39.6 osh-static
6 no-host configure.yash 1,494 946 544 33.4 bash
14 no-host configure.yash 1,448 941 500 33.5 dash
22 no-host configure.yash 1,485 929 551 33.3 osh-native
30 no-host configure.yash 1,508 939 560 33.1 osh-nosouffle
38 no-host configure.yash 1,496 957 530 33.4 osh-static
0 no-host hello-world 1 0 1 3.0 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 2 0 6.9 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,404 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,183 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,313 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,414 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,818 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,931 0 0 0 8 0 1,999 62 bash
9 no-host bin-true 49,824 0 0 0 8 0 2,999 40 dash
17 no-host bin-true 132,755 0 0 0 16 0 1,997 75 osh-native
25 no-host bin-true 135,373 0 0 0 16 0 1,999 69 osh-nosouffle
33 no-host bin-true 110,426 0 0 0 8 0 1,998 47 osh-static
2 no-host configure.cpython 1,630,538 0 0 0 25,272 0 14,094 952 bash
10 no-host configure.cpython 1,650,622 0 0 0 25,272 0 14,071 984 dash
18 no-host configure.cpython 1,595,941 0 0 0 25,280 0 11,319 774 osh-native
26 no-host configure.cpython 1,601,767 0 0 0 25,280 0 11,304 887 osh-nosouffle
34 no-host configure.cpython 1,525,170 0 0 0 25,272 0 11,295 772 osh-static
4 no-host configure.ocaml 300,091 0 0 0 4,432 0 2,022 180 bash
12 no-host configure.ocaml 281,776 0 0 0 4,432 0 2,111 175 dash
20 no-host configure.ocaml 305,946 0 0 0 4,440 0 2,005 196 osh-native
28 no-host configure.ocaml 307,483 0 0 0 4,440 0 2,005 196 osh-nosouffle
36 no-host configure.ocaml 301,632 0 0 0 4,432 0 2,002 201 osh-static
5 no-host configure.tcc 5,236 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,227 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,595 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,707 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,146 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,549,940 0 0 232 35,944 0 18,797 965 bash
11 no-host configure.util-linux 1,710,017 0 0 0 35,936 0 16,881 1,105 dash
19 no-host configure.util-linux 1,501,289 2 0 0 35,960 0 16,186 930 osh-native
27 no-host configure.util-linux 1,523,310 2 0 0 35,944 0 16,223 857 osh-nosouffle
35 no-host configure.util-linux 1,462,850 1 0 0 35,936 0 16,200 845 osh-static
6 no-host configure.yash 173,552 0 0 0 3,616 0 875 88 bash
14 no-host configure.yash 159,949 0 0 0 3,616 0 1,004 94 dash
22 no-host configure.yash 177,505 0 0 0 3,624 0 856 87 osh-native
30 no-host configure.yash 177,011 0 0 0 3,624 0 856 96 osh-nosouffle
38 no-host configure.yash 173,350 0 0 0 3,616 0 857 82 osh-static
0 no-host hello-world 151 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 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 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-823f331e
osh-nosouffle osh-f86bb45f
osh-static osh-static-d9952f81
host label host id
no-host no-host-9c670df1