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 py bash ratio native bash ratio
abuild-print-help no-host 23 10 461 23 20.46 1.03
bin-true no-host 696 557 2,275 826 3.27 1.19
configure.cpython no-host 15,696 15,441 29,531 15,649 1.88 1.00
configure.ocaml no-host 3,964 3,801 4,791 3,933 1.21 0.99
configure.tcc no-host 49 43 199 50 4.07 1.03
configure.util-linux no-host 14,647 15,264 32,175 15,009 2.20 1.02
configure.yash no-host 1,905 1,819 2,517 1,912 1.32 1.00
hello-world no-host 2 1 49 3 30.49 1.79

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,574 1,132 22,947 3,165 8.91 1.23
bin-true no-host 106,355 67,430 758,678 128,279 7.13 1.21
configure.cpython no-host 2,219,221 2,241,606 6,182,146 2,227,816 2.79 1.00
configure.ocaml no-host 410,596 390,910 639,876 413,458 1.56 1.01
configure.tcc no-host 6,563 5,472 23,221 6,999 3.54 1.07
configure.util-linux no-host 2,103,254 2,264,708 5,326,029 1,993,732 2.53 0.95
configure.yash no-host 256,350 244,767 385,103 258,442 1.50 1.01
hello-world no-host 152 80 3,695 350 24.31 2.30

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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 21.6 8.9 4.85 2.00
bin-true no-host 2.9 1.3 17.7 8.0 6.13 2.77
configure.cpython no-host 27.5 27.3 27.4 27.3 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.0 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.4 6.2 6.33 2.24

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.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,649 1 64 15.0 27.3 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 15,009 3 65 21.3 30.1 2,703,426 42,745 65,812 109,643 1,320,611 1,273,172 27,391 41 131,624 1
configure.ocaml no-host 3,933 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,912 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 23 13 7 4.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 461 411 53 21.6 osh-cpython
31 no-host abuild-print-help 23 11 13 8.9 osh-native
1 no-host bin-true 696 493 233 2.9 bash
9 no-host bin-true 557 430 139 1.3 dash
17 no-host bin-true 2,275 1,504 1,039 17.7 osh-cpython
25 no-host bin-true 826 588 255 8.0 osh-native
2 no-host configure.cpython 15,696 9,459 6,647 27.5 bash
10 no-host configure.cpython 15,441 9,341 6,522 27.3 dash
18 no-host configure.cpython 29,531 17,974 13,494 27.4 osh-cpython
26 no-host configure.cpython 15,649 9,253 6,665 27.3 osh-native
4 no-host configure.ocaml 3,964 1,853 1,139 20.6 bash
12 no-host configure.ocaml 3,801 1,636 1,182 20.6 dash
20 no-host configure.ocaml 4,791 2,250 1,754 20.6 osh-cpython
28 no-host configure.ocaml 3,933 1,790 1,183 20.6 osh-native
5 no-host configure.tcc 49 27 22 19.4 bash
13 no-host configure.tcc 43 30 13 19.3 dash
21 no-host configure.tcc 199 151 51 19.3 osh-cpython
29 no-host configure.tcc 50 38 13 19.3 osh-native
3 no-host configure.util-linux 14,647 9,175 5,950 30.0 bash
11 no-host configure.util-linux 15,264 9,324 6,432 30.3 dash
19 no-host configure.util-linux 32,175 21,454 11,856 30.1 osh-cpython
27 no-host configure.util-linux 15,009 8,966 6,234 30.1 osh-native
6 no-host configure.yash 1,905 1,106 808 24.4 bash
14 no-host configure.yash 1,819 1,114 709 24.4 dash
22 no-host configure.yash 2,517 1,553 1,010 24.4 osh-cpython
30 no-host configure.yash 1,912 1,075 840 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 29 20 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native

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,574 0 0 0 16 0 43 1 bash
15 no-host abuild-print-help 1,132 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,947 0 0 0 8 0 44 7 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 106,355 0 0 0 8 0 1,984 140 bash
9 no-host bin-true 67,430 0 0 0 8 0 1,983 45 dash
17 no-host bin-true 758,678 0 0 0 8 0 2,003 140 osh-cpython
25 no-host bin-true 128,279 0 0 0 16 0 1,987 64 osh-native
2 no-host configure.cpython 2,219,221 0 0 0 32,928 0 14,521 1,205 bash
10 no-host configure.cpython 2,241,606 0 0 0 32,992 0 14,548 1,178 dash
18 no-host configure.cpython 6,182,146 1 0 0 27,512 0 13,253 1,307 osh-cpython
26 no-host configure.cpython 2,227,816 0 0 0 27,520 0 13,319 1,086 osh-native
4 no-host configure.ocaml 410,596 0 0 0 5,120 0 1,956 170 bash
12 no-host configure.ocaml 390,910 0 0 0 5,112 0 1,878 152 dash
20 no-host configure.ocaml 639,876 0 0 0 5,112 0 1,853 166 osh-cpython
28 no-host configure.ocaml 413,458 0 0 0 5,120 0 1,930 168 osh-native
5 no-host configure.tcc 6,563 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,472 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,221 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,103,254 1 0 0 42,400 0 18,760 1,195 bash
11 no-host configure.util-linux 2,264,708 0 0 0 42,592 0 17,460 1,292 dash
19 no-host configure.util-linux 5,326,029 12 0 0 39,112 0 17,052 1,412 osh-cpython
27 no-host configure.util-linux 1,993,732 0 0 0 39,128 0 16,920 1,111 osh-native
6 no-host configure.yash 256,350 0 0 0 4,120 0 868 90 bash
14 no-host configure.yash 244,767 0 0 0 3,720 0 865 77 dash
22 no-host configure.yash 385,103 0 0 0 3,728 0 852 102 osh-cpython
30 no-host configure.yash 258,442 0 0 0 3,736 0 847 94 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,695 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-97d52a98
dash dash-308ec8e6
osh-cpython osh-9bf09276
osh-native osh-4bb62182
host label host id
no-host no-host-556df3ee