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 20 21 18 1.28 1.15
bin-true no-host 612 452 799 796 653 1.31 1.07
configure.cpython no-host 13,523 13,586 13,150 13,209 12,720 0.97 0.94
configure.ocaml no-host 3,611 3,551 3,648 3,659 3,633 1.01 1.01
configure.tcc no-host 45 40 46 47 42 1.02 0.94
configure.util-linux no-host 12,281 13,197 12,217 12,342 11,915 0.99 0.97
configure.yash no-host 1,659 1,608 1,664 1,668 1,645 1.00 0.99
hello-world no-host 1 1 3 3 1 2.42 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,400 1,159 3,294 3,401 2,850 1.37 1.19
bin-true no-host 100,469 49,379 131,993 134,362 112,712 1.31 1.12
configure.cpython no-host 1,624,599 1,639,038 1,574,785 1,604,953 1,523,800 0.97 0.94
configure.ocaml no-host 299,653 280,765 306,191 306,492 300,079 1.02 1.00
configure.tcc no-host 5,200 4,210 5,652 5,659 5,142 1.09 0.99
configure.util-linux no-host 1,534,320 1,701,031 1,495,483 1,517,376 1,451,428 0.97 0.95
configure.yash no-host 173,384 159,564 176,750 176,950 172,930 1.02 1.00
hello-world no-host 151 85 392 400 183 2.60 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 9.8 6.3 1.95 1.30
bin-true no-host 3.3 1.4 8.7 9.0 5.2 2.64 1.60
configure.cpython no-host 34.5 34.5 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.0 26.3 26.3 26.3 26.0 1.01 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.7 39.9 1.00 1.01
configure.yash no-host 33.1 33.2 33.4 33.3 33.4 1.01 1.01
hello-world no-host 3.1 1.4 6.6 7.1 3.4 2.08 1.08

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 799 1 2 3.5 8.7 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,150 1 63 14.8 34.5 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,217 3 62 21.6 39.6 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,648 1 2 2.8 28.7 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,664 1 2 2.7 33.4 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 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 7.1 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 796 1 2 3.5 9.0 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,209 1 63 14.8 34.5 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,342 3 62 21.6 39.7 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,659 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 47 0 0 1.4 26.3 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,668 1 2 2.7 33.3 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.8 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 8 8 4.8 bash
15 no-host abuild-print-help 9 6 4 3.9 dash
23 no-host abuild-print-help 20 13 8 9.4 osh-native
31 no-host abuild-print-help 21 14 8 9.8 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.3 osh-static
1 no-host bin-true 612 301 347 3.3 bash
9 no-host bin-true 452 279 180 1.4 dash
17 no-host bin-true 799 303 512 8.7 osh-native
25 no-host bin-true 796 315 496 9.0 osh-nosouffle
33 no-host bin-true 653 326 343 5.2 osh-static
2 no-host configure.cpython 13,523 7,342 6,564 34.5 bash
10 no-host configure.cpython 13,586 7,490 6,485 34.5 dash
18 no-host configure.cpython 13,150 7,000 6,410 34.5 osh-native
26 no-host configure.cpython 13,209 6,986 6,505 34.5 osh-nosouffle
34 no-host configure.cpython 12,720 7,030 5,927 34.5 osh-static
4 no-host configure.ocaml 3,611 1,446 1,206 28.7 bash
12 no-host configure.ocaml 3,551 1,383 1,193 28.8 dash
20 no-host configure.ocaml 3,648 1,477 1,211 28.7 osh-native
28 no-host configure.ocaml 3,659 1,444 1,255 28.7 osh-nosouffle
36 no-host configure.ocaml 3,633 1,454 1,211 28.6 osh-static
5 no-host configure.tcc 45 27 19 26.0 bash
13 no-host configure.tcc 40 23 18 26.3 dash
21 no-host configure.tcc 46 23 24 26.3 osh-native
29 no-host configure.tcc 47 27 20 26.3 osh-nosouffle
37 no-host configure.tcc 42 24 19 26.0 osh-static
3 no-host configure.util-linux 12,281 6,502 6,240 39.6 bash
11 no-host configure.util-linux 13,197 6,487 7,177 39.6 dash
19 no-host configure.util-linux 12,217 6,118 6,318 39.6 osh-native
27 no-host configure.util-linux 12,342 6,105 6,455 39.7 osh-nosouffle
35 no-host configure.util-linux 11,915 6,128 6,000 39.9 osh-static
6 no-host configure.yash 1,659 924 744 33.1 bash
14 no-host configure.yash 1,608 923 687 33.2 dash
22 no-host configure.yash 1,664 936 730 33.4 osh-native
30 no-host configure.yash 1,668 925 745 33.3 osh-nosouffle
38 no-host configure.yash 1,645 919 728 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 1 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,400 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,159 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,294 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,401 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,850 0 0 0 8 0 39 2 osh-static
1 no-host bin-true 100,469 0 0 0 8 0 1,999 66 bash
9 no-host bin-true 49,379 0 0 0 8 0 2,994 46 dash
17 no-host bin-true 131,993 0 0 0 16 0 2,000 75 osh-native
25 no-host bin-true 134,362 0 0 0 16 0 2,000 86 osh-nosouffle
33 no-host bin-true 112,712 0 0 0 8 0 1,996 73 osh-static
2 no-host configure.cpython 1,624,599 0 0 0 25,272 0 14,073 1,021 bash
10 no-host configure.cpython 1,639,038 0 0 0 25,272 0 14,133 1,054 dash
18 no-host configure.cpython 1,574,785 0 0 0 25,280 0 11,303 829 osh-native
26 no-host configure.cpython 1,604,953 0 0 0 25,280 0 11,321 876 osh-nosouffle
34 no-host configure.cpython 1,523,800 0 0 0 25,272 0 11,298 851 osh-static
4 no-host configure.ocaml 299,653 0 0 0 4,432 0 2,018 197 bash
12 no-host configure.ocaml 280,765 0 0 0 4,432 0 2,118 199 dash
20 no-host configure.ocaml 306,191 0 0 0 4,440 0 2,002 203 osh-native
28 no-host configure.ocaml 306,492 0 0 0 4,440 0 1,999 211 osh-nosouffle
36 no-host configure.ocaml 300,079 0 0 0 4,432 0 1,994 212 osh-static
5 no-host configure.tcc 5,200 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,652 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,659 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,142 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,534,320 0 0 232 35,944 0 18,953 1,064 bash
11 no-host configure.util-linux 1,701,031 1 0 0 35,936 0 17,098 1,192 dash
19 no-host configure.util-linux 1,495,483 1 0 0 35,952 0 16,137 908 osh-native
27 no-host configure.util-linux 1,517,376 1 0 0 35,944 0 16,231 937 osh-nosouffle
35 no-host configure.util-linux 1,451,428 0 0 0 35,936 0 16,184 934 osh-static
6 no-host configure.yash 173,384 0 0 0 3,616 0 876 94 bash
14 no-host configure.yash 159,564 0 0 0 3,616 0 1,000 105 dash
22 no-host configure.yash 176,750 0 0 0 3,624 0 858 89 osh-native
30 no-host configure.yash 176,950 0 0 0 3,624 0 858 111 osh-nosouffle
38 no-host configure.yash 172,930 0 0 0 3,616 0 858 109 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 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-f5a8919c
osh-nosouffle osh-3c8b241a
osh-static osh-static-77e07e8f
host label host id
no-host no-host-9c670df1