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 20 10 457 23 23.39 1.16
bin-true no-host 669 548 2,268 833 3.39 1.24
configure.cpython no-host 15,224 15,369 29,096 15,880 1.91 1.04
configure.ocaml no-host 3,900 3,755 4,770 3,922 1.22 1.01
configure.tcc no-host 49 42 199 50 4.04 1.01
configure.util-linux no-host 14,547 15,121 32,268 14,981 2.22 1.03
configure.yash no-host 1,870 1,778 2,525 1,894 1.35 1.01
hello-world no-host 1 1 51 3 36.70 2.06

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,527 1,093 22,895 3,169 9.06 1.25
bin-true no-host 106,313 65,431 756,466 128,223 7.12 1.21
configure.cpython no-host 2,212,152 2,253,687 6,159,076 2,218,504 2.78 1.00
configure.ocaml no-host 410,961 390,638 641,045 413,573 1.56 1.01
configure.tcc no-host 6,531 5,496 23,295 6,974 3.57 1.07
configure.util-linux no-host 2,104,051 2,260,656 5,327,855 2,000,614 2.53 0.95
configure.yash no-host 256,669 244,999 384,917 257,559 1.50 1.00
hello-world no-host 152 82 3,694 349 24.30 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.3 3.5 21.9 8.9 5.06 2.06
bin-true no-host 2.9 1.4 17.7 8.0 6.13 2.77
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.3 19.1 19.3 0.99 1.00
configure.util-linux no-host 30.3 30.0 30.1 29.9 1.00 0.99
configure.yash no-host 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.4 6.2 6.04 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 833 1 2 2.6 8.0 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,880 2 65 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,981 3 65 21.3 29.9 2,703,426 44,785 65,811 109,643 1,320,611 1,273,172 49,081 41 131,622 1
configure.ocaml no-host 3,922 1 2 2.6 20.4 150,060 11,064 5,157 7,513 71,649 70,898 2,680 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 350 0 50,000 0
configure.yash no-host 1,894 1 2 2.6 24.2 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,292 64,473 42,681 4,555 54,561 57,176 478 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 20 18 2 4.3 bash
15 no-host abuild-print-help 10 4 6 3.5 dash
23 no-host abuild-print-help 457 407 54 21.9 osh-cpython
31 no-host abuild-print-help 23 13 10 8.9 osh-native
1 no-host bin-true 669 497 204 2.9 bash
9 no-host bin-true 548 414 143 1.4 dash
17 no-host bin-true 2,268 1,463 1,070 17.7 osh-cpython
25 no-host bin-true 833 583 263 8.0 osh-native
2 no-host configure.cpython 15,224 9,172 6,446 27.4 bash
10 no-host configure.cpython 15,369 9,292 6,498 27.4 dash
18 no-host configure.cpython 29,096 17,838 13,142 27.4 osh-cpython
26 no-host configure.cpython 15,880 9,366 6,760 27.4 osh-native
4 no-host configure.ocaml 3,900 1,646 1,291 20.6 bash
12 no-host configure.ocaml 3,755 1,584 1,190 20.6 dash
20 no-host configure.ocaml 4,770 2,263 1,720 20.6 osh-cpython
28 no-host configure.ocaml 3,922 1,710 1,251 20.4 osh-native
5 no-host configure.tcc 49 30 19 19.3 bash
13 no-host configure.tcc 42 20 22 19.3 dash
21 no-host configure.tcc 199 135 67 19.1 osh-cpython
29 no-host configure.tcc 50 33 17 19.3 osh-native
3 no-host configure.util-linux 14,547 8,976 6,044 30.3 bash
11 no-host configure.util-linux 15,121 9,249 6,364 30.0 dash
19 no-host configure.util-linux 32,268 21,739 11,654 30.1 osh-cpython
27 no-host configure.util-linux 14,981 8,977 6,195 29.9 osh-native
6 no-host configure.yash 1,870 1,103 776 24.2 bash
14 no-host configure.yash 1,778 1,079 702 24.2 dash
22 no-host configure.yash 2,525 1,618 950 24.2 osh-cpython
30 no-host configure.yash 1,894 1,110 787 24.2 osh-native
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 51 42 9 17.4 osh-cpython
24 no-host hello-world 3 3 0 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,527 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,895 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,169 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,313 0 0 0 8 0 1,995 60 bash
9 no-host bin-true 65,431 0 0 0 8 0 1,987 43 dash
17 no-host bin-true 756,466 0 0 0 8 0 1,995 274 osh-cpython
25 no-host bin-true 128,223 0 0 0 16 0 1,985 61 osh-native
2 no-host configure.cpython 2,212,152 0 0 0 32,928 0 14,566 1,310 bash
10 no-host configure.cpython 2,253,687 0 0 0 32,992 0 14,628 1,150 dash
18 no-host configure.cpython 6,159,076 1 0 0 27,512 0 13,287 1,203 osh-cpython
26 no-host configure.cpython 2,218,504 0 0 0 27,520 0 13,247 1,101 osh-native
4 no-host configure.ocaml 410,961 0 0 0 5,120 0 1,953 181 bash
12 no-host configure.ocaml 390,638 0 0 0 5,112 0 1,930 143 dash
20 no-host configure.ocaml 641,045 0 0 0 5,112 0 1,851 178 osh-cpython
28 no-host configure.ocaml 413,573 0 0 0 5,120 0 1,934 178 osh-native
5 no-host configure.tcc 6,531 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,496 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,295 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,974 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,104,051 0 0 0 42,408 0 18,591 1,124 bash
11 no-host configure.util-linux 2,260,656 0 0 0 42,592 0 17,446 1,235 dash
19 no-host configure.util-linux 5,327,855 7 0 0 39,112 0 16,948 1,439 osh-cpython
27 no-host configure.util-linux 2,000,614 1 0 0 39,120 0 17,019 993 osh-native
6 no-host configure.yash 256,669 0 0 0 4,120 0 870 75 bash
14 no-host configure.yash 244,999 0 0 0 3,720 0 868 81 dash
22 no-host configure.yash 384,917 0 0 0 3,728 0 850 101 osh-cpython
30 no-host configure.yash 257,559 0 0 0 3,736 0 850 79 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,694 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-a1cc13d5
dash dash-308ec8e6
osh-cpython osh-3d1385a9
osh-native osh-ce7e8050
host label host id
no-host no-host-556df3ee