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 20 10 478 23 23 23.97 1.17
bin-true no-host 695 555 2,421 842 832 3.49 1.21
configure.cpython no-host 16,155 15,910 30,567 15,786 16,270 1.89 0.98
configure.ocaml no-host 3,990 3,867 4,865 3,931 4,044 1.22 0.99
configure.tcc no-host 50 43 212 51 52 4.22 1.02
configure.util-linux no-host 14,760 15,465 33,116 14,760 15,381 2.24 1.00
configure.yash no-host 1,913 1,825 2,607 1,900 1,980 1.36 0.99
hello-world no-host 1 1 58 3 3 41.18 2.09

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,547 1,095 23,889 3,183 3,113 9.38 1.25
bin-true no-host 107,396 66,441 783,420 129,179 127,095 7.29 1.20
configure.cpython no-host 1,998,231 2,022,297 6,029,527 2,007,250 1,989,379 3.02 1.00
configure.ocaml no-host 373,039 353,845 610,807 375,771 375,585 1.64 1.01
configure.tcc no-host 6,075 4,999 23,722 6,522 6,449 3.90 1.07
configure.util-linux no-host 1,902,403 2,062,183 5,212,904 1,803,649 1,796,988 2.74 0.95
configure.yash no-host 233,366 222,214 365,649 234,379 234,742 1.57 1.00
hello-world no-host 151 73 3,967 344 338 26.27 2.28

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.5 3.5 22.7 8.8 8.8 5.10 1.97
bin-true no-host 3.0 1.6 18.3 8.0 7.6 6.06 2.65
configure.cpython no-host 29.3 29.2 29.1 29.2 29.3 0.99 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.5 19.5 19.7 19.7 19.5 1.01 1.01
configure.util-linux no-host 30.2 30.2 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.5 26.3 26.3 1.00 0.99
hello-world no-host 2.9 1.4 18.4 6.4 5.8 6.38 2.23

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.2 6.4 3,799 3,799 0 695 1,865 1,239 2 0 50,000 0
bin-true no-host 842 1 2 2.6 8.0 153,763 12,331 2,896 8,744 76,329 68,690 3,008 3 50,000 0
configure.cpython no-host 15,786 2 78 14.9 29.2 1,767,685 49,062 28,521 85,428 875,388 806,869 25,736 60 50,000 0
configure.util-linux no-host 14,760 3 72 21.2 30.3 2,699,001 29,942 65,700 108,700 1,288,285 1,302,016 32,241 41 131,400 1
configure.ocaml no-host 3,931 1 2 2.6 22.5 149,563 11,121 5,216 7,509 70,620 71,434 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.7 30,549 30,549 0 1,519 14,612 14,418 271 0 50,000 0
configure.yash no-host 1,900 1 2 2.5 26.3 139,279 8,033 6,695 5,990 67,849 65,440 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,309 64,412 42,622 4,533 54,443 57,333 277 3 85,244 1
hello-world no-host 3 0 0 0.2 5.8 3,798 3,798 0 696 1,865 1,237 2 0 50,000 0
bin-true no-host 832 1 2 2.6 7.6 153,762 12,281 2,846 8,745 76,329 68,688 3,008 3 50,000 0
configure.cpython no-host 16,270 2 78 14.9 29.3 1,767,684 37,997 24,946 85,429 875,388 806,867 25,736 60 50,000 0
configure.util-linux no-host 15,381 4 76 21.3 30.3 2,699,107 29,892 65,650 108,732 1,288,319 1,302,056 32,244 41 131,300 1
configure.ocaml no-host 4,044 1 2 2.6 22.6 149,563 11,071 5,166 7,511 70,620 71,432 1,695 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.5 30,549 30,549 0 1,521 14,612 14,416 271 0 50,000 0
configure.yash no-host 1,980 1 2 2.5 26.3 139,279 7,983 6,645 5,992 67,849 65,438 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,308 64,362 42,572 4,534 54,443 57,331 277 3 85,144 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 20 11 9 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 478 423 59 22.7 osh-cpython
31 no-host abuild-print-help 23 13 11 8.8 osh-native
39 no-host abuild-print-help 23 12 12 8.8 osh-native-souffle
1 no-host bin-true 695 312 420 3.0 bash
9 no-host bin-true 555 284 282 1.6 dash
17 no-host bin-true 2,421 829 1,857 18.3 osh-cpython
25 no-host bin-true 842 309 551 8.0 osh-native
33 no-host bin-true 832 298 552 7.6 osh-native-souffle
2 no-host configure.cpython 16,155 7,190 9,413 29.3 bash
10 no-host configure.cpython 15,910 7,040 9,352 29.2 dash
18 no-host configure.cpython 30,567 15,251 17,319 29.1 osh-cpython
26 no-host configure.cpython 15,786 7,044 9,061 29.2 osh-native
34 no-host configure.cpython 16,270 7,172 9,408 29.3 osh-native-souffle
4 no-host configure.ocaml 3,990 1,405 1,631 22.6 bash
12 no-host configure.ocaml 3,867 1,359 1,532 22.5 dash
20 no-host configure.ocaml 4,865 2,000 2,098 22.6 osh-cpython
28 no-host configure.ocaml 3,931 1,406 1,568 22.5 osh-native
36 no-host configure.ocaml 4,044 1,441 1,645 22.6 osh-native-souffle
5 no-host configure.tcc 50 23 28 19.5 bash
13 no-host configure.tcc 43 27 17 19.5 dash
21 no-host configure.tcc 212 136 80 19.7 osh-cpython
29 no-host configure.tcc 51 25 27 19.7 osh-native
37 no-host configure.tcc 52 28 25 19.5 osh-native-souffle
3 no-host configure.util-linux 14,760 6,174 9,123 30.2 bash
11 no-host configure.util-linux 15,465 6,356 9,680 30.2 dash
19 no-host configure.util-linux 33,116 18,703 15,590 30.2 osh-cpython
27 no-host configure.util-linux 14,760 5,882 9,111 30.3 osh-native
35 no-host configure.util-linux 15,381 5,975 9,646 30.3 osh-native-souffle
6 no-host configure.yash 1,913 931 994 26.4 bash
14 no-host configure.yash 1,825 945 885 26.4 dash
22 no-host configure.yash 2,607 1,473 1,180 26.5 osh-cpython
30 no-host configure.yash 1,900 998 908 26.3 osh-native
38 no-host configure.yash 1,980 980 1,006 26.3 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 37 22 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 1 2 5.8 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,547 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,889 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,396 0 0 0 8 0 1,986 180 bash
9 no-host bin-true 66,441 0 0 0 8 0 1,984 198 dash
17 no-host bin-true 783,420 0 0 0 8 0 1,984 455 osh-cpython
25 no-host bin-true 129,179 0 0 0 16 0 1,982 203 osh-native
33 no-host bin-true 127,095 0 0 0 16 0 1,980 175 osh-native-souffle
2 no-host configure.cpython 1,998,231 0 0 0 32,952 0 14,231 1,038 bash
10 no-host configure.cpython 2,022,297 0 0 0 32,992 0 14,320 1,106 dash
18 no-host configure.cpython 6,029,527 0 0 0 27,512 0 13,032 1,129 osh-cpython
26 no-host configure.cpython 2,007,250 0 0 0 27,520 0 13,206 1,015 osh-native
34 no-host configure.cpython 1,989,379 3 0 0 27,520 0 13,144 1,148 osh-native-souffle
4 no-host configure.ocaml 373,039 0 0 0 5,120 0 1,946 185 bash
12 no-host configure.ocaml 353,845 0 0 0 5,112 0 1,944 187 dash
20 no-host configure.ocaml 610,807 0 0 0 5,112 0 1,885 199 osh-cpython
28 no-host configure.ocaml 375,771 0 0 0 5,120 0 1,922 190 osh-native
36 no-host configure.ocaml 375,585 0 0 0 5,120 0 1,927 195 osh-native-souffle
5 no-host configure.tcc 6,075 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 4,999 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,722 0 0 0 96 0 52 5 osh-cpython
29 no-host configure.tcc 6,522 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,449 0 0 0 104 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,902,403 0 0 0 42,400 0 18,272 1,202 bash
11 no-host configure.util-linux 2,062,183 0 0 0 42,584 0 17,350 1,423 dash
19 no-host configure.util-linux 5,212,904 10 0 0 39,152 0 17,011 1,337 osh-cpython
27 no-host configure.util-linux 1,803,649 0 0 0 39,128 0 16,966 1,200 osh-native
35 no-host configure.util-linux 1,796,988 0 0 0 39,152 0 16,926 1,126 osh-native-souffle
6 no-host configure.yash 233,366 0 0 0 4,120 0 867 82 bash
14 no-host configure.yash 222,214 0 0 0 3,720 0 868 92 dash
22 no-host configure.yash 365,649 0 0 0 3,728 0 851 99 osh-cpython
30 no-host configure.yash 234,379 0 0 0 3,736 0 848 82 osh-native
38 no-host configure.yash 234,742 0 0 0 3,736 0 848 90 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 73 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,967 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-44518cd2
dash dash-0ebcf347
osh-cpython osh-48cdb7cc
osh-native osh-5cab1167
osh-native-souffle osh-f1edffa6
host label host id
no-host no-host-e4839999