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.32 1.23
bin-true no-host 637 452 828 817 659 1.30 1.03
configure.cpython no-host 14,047 14,043 13,784 13,864 13,295 0.98 0.95
configure.ocaml no-host 3,696 3,642 3,746 3,736 3,684 1.01 1.00
configure.tcc no-host 48 42 48 48 44 1.00 0.92
configure.util-linux no-host 12,575 13,552 12,730 12,803 12,379 1.01 0.98
configure.yash no-host 1,734 1,670 1,707 1,732 1,685 0.98 0.97
hello-world no-host 1 1 3 3 1 2.46 1.05

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,367 1,152 3,266 3,403 2,852 1.38 1.20
bin-true no-host 103,413 49,375 133,949 132,343 112,701 1.30 1.09
configure.cpython no-host 1,620,285 1,633,835 1,587,969 1,592,219 1,525,474 0.98 0.94
configure.ocaml no-host 299,540 280,772 306,386 307,186 300,282 1.02 1.00
configure.tcc no-host 5,234 4,203 5,641 5,659 5,128 1.08 0.98
configure.util-linux no-host 1,538,859 1,704,568 1,491,718 1,511,838 1,453,327 0.97 0.94
configure.yash no-host 173,292 159,574 176,576 176,655 173,069 1.02 1.00
hello-world no-host 151 87 395 394 183 2.62 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 3.9 9.4 10.1 6.4 1.95 1.32
bin-true no-host 3.4 1.4 8.8 9.2 5.1 2.58 1.50
configure.cpython no-host 34.7 34.5 34.4 34.5 34.5 0.99 1.00
configure.ocaml no-host 28.6 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.4 26.3 26.1 26.0 26.1 0.99 0.99
configure.util-linux no-host 39.6 39.4 39.7 39.9 39.6 1.00 1.00
configure.yash no-host 33.2 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.8 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 3 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 828 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 13,784 2 74 14.8 34.4 1,750,784 35,383 28,940 93,077 869,742 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,730 3 70 21.6 39.7 2,705,320 37,455 66,328 119,745 1,291,837 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,746 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 48 0 0 1.4 26.1 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,707 1 2 2.7 33.4 143,452 11,458 6,614 7,164 70,516 65,772 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.8 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 817 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 13,864 2 72 14.8 34.5 1,750,783 35,388 28,945 93,076 869,742 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,803 3 69 21.6 39.9 2,705,320 37,461 66,334 119,745 1,291,837 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,736 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 48 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,732 1 2 2.7 33.4 143,452 11,462 6,618 7,164 70,516 65,772 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 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 7 4.8 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 21 13 9 9.4 osh-native
31 no-host abuild-print-help 22 12 11 10.1 osh-nosouffle
39 no-host abuild-print-help 19 15 5 6.4 osh-static
1 no-host bin-true 637 324 345 3.4 bash
9 no-host bin-true 452 261 186 1.4 dash
17 no-host bin-true 828 320 519 8.8 osh-native
25 no-host bin-true 817 306 525 9.2 osh-nosouffle
33 no-host bin-true 659 326 352 5.1 osh-static
2 no-host configure.cpython 14,047 7,666 6,742 34.7 bash
10 no-host configure.cpython 14,043 7,659 6,760 34.5 dash
18 no-host configure.cpython 13,784 7,298 6,739 34.4 osh-native
26 no-host configure.cpython 13,864 7,420 6,688 34.5 osh-nosouffle
34 no-host configure.cpython 13,295 7,276 6,244 34.5 osh-static
4 no-host configure.ocaml 3,696 1,488 1,244 28.6 bash
12 no-host configure.ocaml 3,642 1,453 1,208 28.7 dash
20 no-host configure.ocaml 3,746 1,484 1,293 28.6 osh-native
28 no-host configure.ocaml 3,736 1,519 1,260 28.7 osh-nosouffle
36 no-host configure.ocaml 3,684 1,489 1,226 28.7 osh-static
5 no-host configure.tcc 48 23 25 26.4 bash
13 no-host configure.tcc 42 27 15 26.3 dash
21 no-host configure.tcc 48 20 28 26.1 osh-native
29 no-host configure.tcc 48 25 23 26.0 osh-nosouffle
37 no-host configure.tcc 44 25 20 26.1 osh-static
3 no-host configure.util-linux 12,575 6,561 6,474 39.6 bash
11 no-host configure.util-linux 13,552 6,530 7,465 39.4 dash
19 no-host configure.util-linux 12,730 6,335 6,578 39.7 osh-native
27 no-host configure.util-linux 12,803 6,287 6,722 39.9 osh-nosouffle
35 no-host configure.util-linux 12,379 6,341 6,223 39.6 osh-static
6 no-host configure.yash 1,734 952 776 33.2 bash
14 no-host configure.yash 1,670 944 727 33.3 dash
22 no-host configure.yash 1,707 946 763 33.4 osh-native
30 no-host configure.yash 1,732 1,003 732 33.4 osh-nosouffle
38 no-host configure.yash 1,685 947 740 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 6.8 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,367 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,152 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,266 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,403 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,852 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,413 0 0 0 8 0 1,998 51 bash
9 no-host bin-true 49,375 0 0 0 8 0 2,998 53 dash
17 no-host bin-true 133,949 0 0 0 16 0 2,000 66 osh-native
25 no-host bin-true 132,343 0 0 0 16 0 1,999 96 osh-nosouffle
33 no-host bin-true 112,701 0 0 0 8 0 2,001 75 osh-static
2 no-host configure.cpython 1,620,285 0 0 0 25,272 0 14,086 1,041 bash
10 no-host configure.cpython 1,633,835 0 0 0 25,272 0 14,110 1,051 dash
18 no-host configure.cpython 1,587,969 0 0 0 25,280 0 11,313 868 osh-native
26 no-host configure.cpython 1,592,219 0 0 0 25,280 0 11,327 857 osh-nosouffle
34 no-host configure.cpython 1,525,474 0 0 0 25,272 0 11,309 834 osh-static
4 no-host configure.ocaml 299,540 0 0 0 4,432 0 2,023 195 bash
12 no-host configure.ocaml 280,772 0 0 0 4,432 0 2,114 198 dash
20 no-host configure.ocaml 306,386 0 0 0 4,440 0 2,003 212 osh-native
28 no-host configure.ocaml 307,186 0 0 0 4,440 0 2,003 173 osh-nosouffle
36 no-host configure.ocaml 300,282 0 0 0 4,432 0 1,998 213 osh-static
5 no-host configure.tcc 5,234 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,641 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,659 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,128 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,859 1 0 0 35,944 0 18,973 1,076 bash
11 no-host configure.util-linux 1,704,568 1 0 496 35,936 0 17,083 1,128 dash
19 no-host configure.util-linux 1,491,718 1 0 0 35,952 0 16,115 921 osh-native
27 no-host configure.util-linux 1,511,838 1 0 0 35,944 0 16,227 918 osh-nosouffle
35 no-host configure.util-linux 1,453,327 1 0 0 35,936 0 16,136 845 osh-static
6 no-host configure.yash 173,292 0 0 0 3,616 0 885 105 bash
14 no-host configure.yash 159,574 0 0 0 3,616 0 1,001 110 dash
22 no-host configure.yash 176,576 0 0 0 3,632 0 858 94 osh-native
30 no-host configure.yash 176,655 0 0 0 3,624 0 856 117 osh-nosouffle
38 no-host configure.yash 173,069 0 0 0 3,624 0 858 99 osh-static
0 no-host hello-world 151 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 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 394 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-80be5947
osh-nosouffle osh-17c58903
osh-static osh-static-70adacf6
host label host id
no-host no-host-9c670df1