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 18 16 1.41 1.26
bin-true no-host 453 298 587 603 476 1.30 1.05
configure.cpython no-host 11,572 11,564 11,513 11,454 10,981 0.99 0.95
configure.ocaml no-host 3,288 3,217 3,303 3,318 3,318 1.00 1.01
configure.tcc no-host 37 34 39 39 36 1.04 0.96
configure.util-linux no-host 10,440 10,778 10,809 10,436 10,107 1.04 0.97
configure.yash no-host 1,429 1,388 1,451 1,440 1,410 1.02 0.99
hello-world no-host 1 0 2 2 1 2.32 1.03

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,379 1,186 3,332 3,412 2,844 1.40 1.20
bin-true no-host 102,877 49,912 131,427 134,751 112,123 1.28 1.09
configure.cpython no-host 1,630,579 1,640,051 1,576,059 1,615,986 1,527,279 0.97 0.94
configure.ocaml no-host 300,052 281,364 306,367 308,630 301,125 1.02 1.00
configure.tcc no-host 5,240 4,215 5,622 5,671 5,133 1.07 0.98
configure.util-linux no-host 1,545,985 1,707,998 1,522,936 1,526,523 1,452,657 0.99 0.94
configure.yash no-host 174,025 159,907 176,912 177,725 173,264 1.02 1.00
hello-world no-host 154 88 397 403 181 2.58 1.18

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.3 2.00 1.33
bin-true no-host 3.3 1.6 8.9 9.3 5.1 2.72 1.56
configure.cpython no-host 34.7 34.5 34.6 34.6 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.8 28.8 28.9 1.01 1.01
configure.tcc no-host 26.4 26.3 26.2 26.2 26.1 0.99 0.99
configure.util-linux no-host 39.6 39.9 39.5 39.5 39.5 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.5 33.5 1.00 1.00
hello-world no-host 3.3 1.6 6.7 7.1 3.3 2.04 1.00

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.7 3,913 3,913 0 723 1,921 1,269 2 0 50,000 0
bin-true no-host 587 1 2 3.5 8.9 151,898 10,761 2,975 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 11,513 1 61 14.8 34.6 1,750,825 35,396 28,951 93,078 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 10,809 3 66 21.6 39.5 2,705,391 37,468 66,339 119,746 1,291,872 1,293,773 32,527 42 132,678 1
configure.ocaml no-host 3,303 1 2 2.8 28.8 149,698 12,653 6,568 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 39 0 0 1.4 26.2 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,451 1 2 2.7 33.4 143,474 11,505 6,622 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.4 117,232 65,798 42,005 4,977 54,599 57,656 277 3 84,010 1
hello-world no-host 2 0 0 0.3 7.1 3,912 3,912 0 722 1,921 1,269 2 0 50,000 0
bin-true no-host 603 1 2 3.5 9.3 151,898 10,765 2,979 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 11,454 1 61 14.8 34.6 1,750,824 35,401 28,956 93,077 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 10,436 3 63 21.6 39.5 2,705,391 37,474 66,345 119,746 1,291,872 1,293,773 32,527 42 132,690 1
configure.ocaml no-host 3,318 1 2 2.8 28.8 149,698 12,658 6,573 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 39 0 0 1.4 26.2 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,440 1 2 2.7 33.5 143,474 11,509 6,626 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 10.0 117,232 65,802 42,009 4,977 54,599 57,656 277 3 84,018 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.7 bash
15 no-host abuild-print-help 7 4 3 4.1 dash
23 no-host abuild-print-help 18 12 6 9.4 osh-native
31 no-host abuild-print-help 18 12 6 10.0 osh-nosouffle
39 no-host abuild-print-help 16 11 5 6.3 osh-static
1 no-host bin-true 453 276 205 3.3 bash
9 no-host bin-true 298 223 77 1.6 dash
17 no-host bin-true 587 312 285 8.9 osh-native
25 no-host bin-true 603 317 300 9.3 osh-nosouffle
33 no-host bin-true 476 304 183 5.1 osh-static
2 no-host configure.cpython 11,572 7,487 4,358 34.7 bash
10 no-host configure.cpython 11,564 7,608 4,269 34.5 dash
18 no-host configure.cpython 11,513 7,203 4,488 34.6 osh-native
26 no-host configure.cpython 11,454 7,172 4,484 34.6 osh-nosouffle
34 no-host configure.cpython 10,981 7,140 3,990 34.7 osh-static
4 no-host configure.ocaml 3,288 1,497 810 28.6 bash
12 no-host configure.ocaml 3,217 1,472 748 28.7 dash
20 no-host configure.ocaml 3,303 1,475 847 28.8 osh-native
28 no-host configure.ocaml 3,318 1,489 852 28.8 osh-nosouffle
36 no-host configure.ocaml 3,318 1,504 827 28.9 osh-static
5 no-host configure.tcc 37 24 13 26.4 bash
13 no-host configure.tcc 34 21 13 26.3 dash
21 no-host configure.tcc 39 21 18 26.2 osh-native
29 no-host configure.tcc 39 24 16 26.2 osh-nosouffle
37 no-host configure.tcc 36 22 13 26.1 osh-static
3 no-host configure.util-linux 10,440 6,624 4,159 39.6 bash
11 no-host configure.util-linux 10,778 6,428 4,716 39.9 dash
19 no-host configure.util-linux 10,809 6,268 4,664 39.5 osh-native
27 no-host configure.util-linux 10,436 6,274 4,298 39.5 osh-nosouffle
35 no-host configure.util-linux 10,107 6,246 3,990 39.5 osh-static
6 no-host configure.yash 1,429 961 469 33.4 bash
14 no-host configure.yash 1,388 932 451 33.4 dash
22 no-host configure.yash 1,451 939 506 33.4 osh-native
30 no-host configure.yash 1,440 942 495 33.5 osh-nosouffle
38 no-host configure.yash 1,410 914 492 33.5 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 0 0 0 1.6 dash
16 no-host hello-world 2 1 1 6.7 osh-native
24 no-host hello-world 2 2 1 7.1 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,379 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,186 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,332 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,412 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,844 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,877 0 0 0 8 0 1,999 63 bash
9 no-host bin-true 49,912 0 0 0 8 0 2,998 33 dash
17 no-host bin-true 131,427 0 0 0 16 0 1,998 60 osh-native
25 no-host bin-true 134,751 0 0 0 16 0 2,000 52 osh-nosouffle
33 no-host bin-true 112,123 0 0 0 8 0 1,999 47 osh-static
2 no-host configure.cpython 1,630,579 0 0 0 25,272 0 14,026 964 bash
10 no-host configure.cpython 1,640,051 0 0 0 25,272 0 14,096 966 dash
18 no-host configure.cpython 1,576,059 0 0 0 25,280 0 11,322 776 osh-native
26 no-host configure.cpython 1,615,986 1 0 0 25,280 0 11,339 834 osh-nosouffle
34 no-host configure.cpython 1,527,279 1 0 0 25,272 0 11,324 756 osh-static
4 no-host configure.ocaml 300,052 0 0 0 4,432 0 2,023 183 bash
12 no-host configure.ocaml 281,364 0 0 0 4,432 0 2,113 175 dash
20 no-host configure.ocaml 306,367 0 0 0 4,440 0 2,006 191 osh-native
28 no-host configure.ocaml 308,630 0 0 0 4,440 0 2,005 186 osh-nosouffle
36 no-host configure.ocaml 301,125 0 0 0 4,432 0 2,004 190 osh-static
5 no-host configure.tcc 5,240 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 5,622 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,671 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,133 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,545,985 0 0 0 35,944 0 18,868 1,012 bash
11 no-host configure.util-linux 1,707,998 0 0 336 35,936 0 16,971 1,132 dash
19 no-host configure.util-linux 1,522,936 2 0 0 35,960 0 16,201 863 osh-native
27 no-host configure.util-linux 1,526,523 4 0 0 35,944 0 16,205 852 osh-nosouffle
35 no-host configure.util-linux 1,452,657 3 0 0 35,936 0 16,190 890 osh-static
6 no-host configure.yash 174,025 0 0 0 3,616 0 879 83 bash
14 no-host configure.yash 159,907 0 0 0 3,616 0 1,004 92 dash
22 no-host configure.yash 176,912 0 0 0 3,624 0 857 90 osh-native
30 no-host configure.yash 177,725 0 0 0 3,624 0 857 94 osh-nosouffle
38 no-host configure.yash 173,264 0 0 0 3,616 0 857 105 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 397 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 403 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-0621d9cb
osh-nosouffle osh-96ba6c5d
osh-static osh-static-c0454cf4
host label host id
no-host no-host-9c670df1