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 19 10 452 22 23.69 1.15
bin-true no-host 678 545 2,269 816 3.35 1.20
configure.cpython no-host 14,958 14,994 28,511 15,141 1.91 1.01
configure.ocaml no-host 3,773 3,713 4,602 3,804 1.22 1.01
configure.tcc no-host 47 41 193 48 4.08 1.01
configure.util-linux no-host 13,967 14,753 31,065 14,254 2.22 1.02
configure.yash no-host 1,823 1,759 2,428 1,813 1.33 0.99
hello-world no-host 1 1 49 3 33.76 1.96

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,557 1,127 22,937 3,199 8.97 1.25
bin-true no-host 106,370 66,481 759,567 128,137 7.14 1.20
configure.cpython no-host 2,221,450 2,242,028 6,182,296 2,224,899 2.78 1.00
configure.ocaml no-host 410,188 390,901 639,753 413,735 1.56 1.01
configure.tcc no-host 6,531 5,473 23,249 6,987 3.56 1.07
configure.util-linux no-host 2,108,200 2,254,987 5,327,283 1,995,315 2.53 0.95
configure.yash no-host 256,149 245,101 385,160 257,921 1.50 1.01
hello-world no-host 153 81 3,700 348 24.18 2.27

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.4 21.9 9.0 4.91 2.03
bin-true no-host 2.8 1.4 17.7 7.9 6.43 2.86
configure.cpython no-host 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.9 1.4 17.6 6.2 6.09 2.14

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 816 1 2 2.6 7.9 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,141 1 60 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,254 2 57 21.3 30.1 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,804 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 48 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,813 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 22 1 2 2.8 9.0 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 19 18 1 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 452 400 54 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
1 no-host bin-true 678 512 197 2.8 bash
9 no-host bin-true 545 425 130 1.4 dash
17 no-host bin-true 2,269 1,520 1,014 17.7 osh-cpython
25 no-host bin-true 816 582 249 7.9 osh-native
2 no-host configure.cpython 14,958 8,969 6,391 27.4 bash
10 no-host configure.cpython 14,994 9,089 6,327 27.5 dash
18 no-host configure.cpython 28,511 17,133 13,243 27.4 osh-cpython
26 no-host configure.cpython 15,141 8,909 6,501 27.4 osh-native
4 no-host configure.ocaml 3,773 1,598 1,214 20.6 bash
12 no-host configure.ocaml 3,713 1,542 1,190 20.6 dash
20 no-host configure.ocaml 4,602 2,139 1,671 20.6 osh-cpython
28 no-host configure.ocaml 3,804 1,572 1,271 20.6 osh-native
5 no-host configure.tcc 47 25 23 19.4 bash
13 no-host configure.tcc 41 21 21 19.1 dash
21 no-host configure.tcc 193 152 45 19.3 osh-cpython
29 no-host configure.tcc 48 24 24 19.4 osh-native
3 no-host configure.util-linux 13,967 8,506 5,942 30.0 bash
11 no-host configure.util-linux 14,753 9,207 6,042 30.0 dash
19 no-host configure.util-linux 31,065 20,904 11,264 30.1 osh-cpython
27 no-host configure.util-linux 14,254 8,639 5,819 30.1 osh-native
6 no-host configure.yash 1,823 1,034 796 24.4 bash
14 no-host configure.yash 1,759 1,039 723 24.4 dash
22 no-host configure.yash 2,428 1,477 993 24.2 osh-cpython
30 no-host configure.yash 1,813 1,095 722 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 29 20 17.6 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,557 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,937 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,370 0 0 0 8 0 1,991 136 bash
9 no-host bin-true 66,481 0 0 0 8 0 1,988 60 dash
17 no-host bin-true 759,567 0 0 0 8 0 2,002 287 osh-cpython
25 no-host bin-true 128,137 0 0 0 16 0 1,987 126 osh-native
2 no-host configure.cpython 2,221,450 0 0 0 32,928 0 14,449 1,186 bash
10 no-host configure.cpython 2,242,028 1 0 0 32,992 0 14,644 1,152 dash
18 no-host configure.cpython 6,182,296 3 0 0 27,512 0 13,267 1,192 osh-cpython
26 no-host configure.cpython 2,224,899 0 0 0 27,520 0 13,285 1,013 osh-native
4 no-host configure.ocaml 410,188 0 0 0 5,120 0 1,948 188 bash
12 no-host configure.ocaml 390,901 0 0 0 5,112 0 1,880 140 dash
20 no-host configure.ocaml 639,753 0 0 0 5,112 0 1,857 170 osh-cpython
28 no-host configure.ocaml 413,735 0 0 0 5,120 0 1,933 174 osh-native
5 no-host configure.tcc 6,531 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,249 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,108,200 0 0 0 42,400 0 18,597 1,044 bash
11 no-host configure.util-linux 2,254,987 0 0 0 42,592 0 17,493 1,199 dash
19 no-host configure.util-linux 5,327,283 0 0 0 39,112 0 17,032 1,214 osh-cpython
27 no-host configure.util-linux 1,995,315 4 0 0 39,120 0 16,876 1,067 osh-native
6 no-host configure.yash 256,149 0 0 0 4,120 0 879 76 bash
14 no-host configure.yash 245,101 0 0 0 3,720 0 870 79 dash
22 no-host configure.yash 385,160 0 0 0 3,728 0 854 101 osh-cpython
30 no-host configure.yash 257,921 0 0 0 3,736 0 843 87 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,700 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c5df1fe9
dash dash-308ec8e6
osh-cpython osh-0e4d7e89
osh-native osh-625923f7
host label host id
no-host no-host-556df3ee