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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 21 9 511 24 22 24.27 1.12
bin-true no-host 698 546 2,445 868 827 3.50 1.24
configure.cpython no-host 15,813 15,473 30,806 15,956 15,613 1.95 1.01
configure.ocaml no-host 3,989 3,867 4,847 3,997 3,984 1.22 1.00
configure.tcc no-host 49 45 213 51 52 4.31 1.04
configure.util-linux no-host 14,607 15,179 33,213 14,946 14,681 2.27 1.02
configure.yash no-host 1,911 1,869 2,695 1,947 1,935 1.41 1.02
hello-world no-host 1 1 61 4 3 45.73 2.66

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,523 1,103 24,001 3,174 3,125 9.51 1.26
bin-true no-host 105,341 65,492 780,705 127,132 127,200 7.41 1.21
configure.cpython no-host 1,994,798 2,022,296 6,043,255 2,002,036 1,992,516 3.03 1.00
configure.ocaml no-host 373,270 353,915 611,636 375,898 375,570 1.64 1.01
configure.tcc no-host 6,095 5,016 23,746 6,509 6,437 3.90 1.07
configure.util-linux no-host 1,904,254 2,066,111 5,254,686 1,805,461 1,796,603 2.76 0.95
configure.yash no-host 234,172 222,297 367,169 235,026 235,193 1.57 1.00
hello-world no-host 148 78 3,996 345 339 27.00 2.33

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.9 9.2 8.7 5.29 2.12
bin-true no-host 3.0 1.4 18.5 8.1 7.9 6.15 2.70
configure.cpython no-host 29.0 29.2 29.3 29.3 29.2 1.01 1.01
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.7 19.7 19.6 19.7 19.6 0.99 1.00
configure.util-linux no-host 30.2 30.5 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.5 26.3 26.2 26.3 26.3 0.99 0.99
hello-world no-host 2.9 1.4 18.3 6.3 5.9 6.34 2.18

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 4 0 0 0.2 6.3 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 868 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 15,956 2 80 14.9 29.3 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,946 3 72 21.2 30.2 2,698,991 29,940 65,698 108,700 1,288,281 1,302,010 32,241 41 131,396 1
configure.ocaml no-host 3,997 1 2 2.6 22.5 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,947 1 2 2.5 26.3 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 9.2 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 827 1 2 2.6 7.9 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 15,613 2 76 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 14,681 3 70 21.2 30.3 2,698,991 29,878 65,636 108,702 1,288,281 1,302,008 32,241 41 131,272 1
configure.ocaml no-host 3,984 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.6 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,935 1 2 2.5 26.3 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 21 13 9 4.3 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 511 436 79 22.9 osh-cpython
31 no-host abuild-print-help 24 12 12 9.2 osh-native
39 no-host abuild-print-help 22 13 10 8.7 osh-native-souffle
1 no-host bin-true 698 303 431 3.0 bash
9 no-host bin-true 546 279 280 1.4 dash
17 no-host bin-true 2,445 809 1,916 18.5 osh-cpython
25 no-host bin-true 868 297 590 8.1 osh-native
33 no-host bin-true 827 304 542 7.9 osh-native-souffle
2 no-host configure.cpython 15,813 7,138 9,137 29.0 bash
10 no-host configure.cpython 15,473 6,965 8,986 29.2 dash
18 no-host configure.cpython 30,806 15,535 17,320 29.3 osh-cpython
26 no-host configure.cpython 15,956 7,087 9,191 29.3 osh-native
34 no-host configure.cpython 15,613 6,921 9,006 29.2 osh-native-souffle
4 no-host configure.ocaml 3,989 1,426 1,609 22.6 bash
12 no-host configure.ocaml 3,867 1,344 1,549 22.6 dash
20 no-host configure.ocaml 4,847 1,957 2,126 22.6 osh-cpython
28 no-host configure.ocaml 3,997 1,435 1,611 22.5 osh-native
36 no-host configure.ocaml 3,984 1,436 1,593 22.6 osh-native-souffle
5 no-host configure.tcc 49 23 27 19.7 bash
13 no-host configure.tcc 45 25 20 19.7 dash
21 no-host configure.tcc 213 145 72 19.6 osh-cpython
29 no-host configure.tcc 51 22 30 19.7 osh-native
37 no-host configure.tcc 52 27 25 19.6 osh-native-souffle
3 no-host configure.util-linux 14,607 6,233 8,915 30.2 bash
11 no-host configure.util-linux 15,179 6,265 9,475 30.5 dash
19 no-host configure.util-linux 33,213 18,767 15,619 30.3 osh-cpython
27 no-host configure.util-linux 14,946 6,026 9,164 30.2 osh-native
35 no-host configure.util-linux 14,681 5,946 8,975 30.3 osh-native-souffle
6 no-host configure.yash 1,911 987 935 26.5 bash
14 no-host configure.yash 1,869 941 933 26.3 dash
22 no-host configure.yash 2,695 1,443 1,302 26.2 osh-cpython
30 no-host configure.yash 1,947 980 974 26.3 osh-native
38 no-host configure.yash 1,935 959 983 26.3 osh-native-souffle
0 no-host hello-world 1 1 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 61 39 22 18.3 osh-cpython
24 no-host hello-world 4 2 1 6.3 osh-native
32 no-host hello-world 3 2 1 5.9 osh-native-souffle

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,523 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 24,001 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,125 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,341 0 0 0 8 0 1,982 116 bash
9 no-host bin-true 65,492 0 0 0 8 0 1,992 71 dash
17 no-host bin-true 780,705 0 0 0 8 0 1,972 255 osh-cpython
25 no-host bin-true 127,132 0 0 0 16 0 1,978 129 osh-native
33 no-host bin-true 127,200 0 0 0 16 0 1,990 160 osh-native-souffle
2 no-host configure.cpython 1,994,798 1 0 0 32,928 0 14,194 1,179 bash
10 no-host configure.cpython 2,022,296 0 0 0 32,992 0 14,300 1,057 dash
18 no-host configure.cpython 6,043,255 0 0 0 27,512 0 13,035 1,083 osh-cpython
26 no-host configure.cpython 2,002,036 0 0 0 27,520 0 13,154 1,031 osh-native
34 no-host configure.cpython 1,992,516 0 0 0 27,520 0 13,177 1,075 osh-native-souffle
4 no-host configure.ocaml 373,270 0 0 0 5,120 0 1,946 200 bash
12 no-host configure.ocaml 353,915 0 0 0 5,112 0 1,937 183 dash
20 no-host configure.ocaml 611,636 0 0 0 5,112 0 1,900 212 osh-cpython
28 no-host configure.ocaml 375,898 0 0 0 5,120 0 1,936 188 osh-native
36 no-host configure.ocaml 375,570 0 0 0 5,120 0 1,934 183 osh-native-souffle
5 no-host configure.tcc 6,095 0 0 0 104 0 48 6 bash
13 no-host configure.tcc 5,016 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,746 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,509 0 0 0 104 0 46 5 osh-native
37 no-host configure.tcc 6,437 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,904,254 0 0 0 42,408 0 18,444 1,263 bash
11 no-host configure.util-linux 2,066,111 1 0 0 42,592 0 17,319 1,435 dash
19 no-host configure.util-linux 5,254,686 6 0 0 39,136 0 17,035 1,313 osh-cpython
27 no-host configure.util-linux 1,805,461 1 0 0 39,128 0 17,030 1,138 osh-native
35 no-host configure.util-linux 1,796,603 0 0 0 39,136 0 17,001 1,209 osh-native-souffle
6 no-host configure.yash 234,172 0 0 0 4,120 0 867 98 bash
14 no-host configure.yash 222,297 0 0 0 3,720 0 867 87 dash
22 no-host configure.yash 367,169 1 0 0 3,728 0 857 82 osh-cpython
30 no-host configure.yash 235,026 0 0 0 3,736 0 845 79 osh-native
38 no-host configure.yash 235,193 0 0 0 3,736 0 848 84 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,996 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-de06919e
dash dash-0ebcf347
osh-cpython osh-73b3097b
osh-native osh-68be8345
osh-native-souffle osh-724f5137
host label host id
no-host no-host-e4839999