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 433 22 22.87 1.14
bin-true no-host 655 519 2,352 778 3.59 1.19
configure.cpython no-host 14,361 14,403 27,168 14,569 1.89 1.01
configure.ocaml no-host 3,694 3,619 4,466 3,690 1.21 1.00
configure.tcc no-host 44 41 188 48 4.24 1.09
configure.util-linux no-host 13,336 14,219 29,864 13,748 2.24 1.03
configure.yash no-host 1,763 1,686 2,331 1,764 1.32 1.00
hello-world no-host 1 1 47 3 32.61 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,532 1,099 22,909 3,179 9.05 1.26
bin-true no-host 106,328 66,436 860,570 130,617 8.09 1.23
configure.cpython no-host 2,227,485 2,247,438 6,162,733 2,222,720 2.77 1.00
configure.ocaml no-host 410,332 390,754 639,851 413,390 1.56 1.01
configure.tcc no-host 6,558 5,486 23,220 7,026 3.54 1.07
configure.util-linux no-host 2,106,920 2,257,402 5,323,801 1,994,698 2.53 0.95
configure.yash no-host 256,745 244,740 383,588 257,388 1.49 1.00
hello-world no-host 152 83 3,696 349 24.32 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 9.0 5.06 2.09
bin-true no-host 3.0 1.4 18.3 8.1 6.08 2.70
configure.cpython no-host 27.5 27.3 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.3 19.3 19.1 19.4 0.99 1.01
configure.util-linux no-host 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.2 24.5 24.4 1.00 0.99
hello-world no-host 2.8 1.6 17.4 6.0 6.33 2.19

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.0 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 778 1 2 3.0 8.1 186,720 15,060 9,607 11,740 86,361 88,619 3,008 4 50,000 0
configure.cpython no-host 14,569 1 56 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 13,748 3 56 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,690 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,764 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 13 7 4.3 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 433 389 46 21.9 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
1 no-host bin-true 655 484 202 3.0 bash
9 no-host bin-true 519 404 126 1.4 dash
17 no-host bin-true 2,352 1,563 1,044 18.3 osh-cpython
25 no-host bin-true 778 568 224 8.1 osh-native
2 no-host configure.cpython 14,361 8,734 6,011 27.5 bash
10 no-host configure.cpython 14,403 8,633 6,173 27.3 dash
18 no-host configure.cpython 27,168 16,705 12,227 27.4 osh-cpython
26 no-host configure.cpython 14,569 8,836 5,996 27.4 osh-native
4 no-host configure.ocaml 3,694 1,526 1,206 20.6 bash
12 no-host configure.ocaml 3,619 1,496 1,141 20.6 dash
20 no-host configure.ocaml 4,466 2,139 1,523 20.6 osh-cpython
28 no-host configure.ocaml 3,690 1,522 1,204 20.6 osh-native
5 no-host configure.tcc 44 18 27 19.3 bash
13 no-host configure.tcc 41 21 21 19.3 dash
21 no-host configure.tcc 188 147 44 19.1 osh-cpython
29 no-host configure.tcc 48 26 22 19.4 osh-native
3 no-host configure.util-linux 13,336 8,568 5,227 30.0 bash
11 no-host configure.util-linux 14,219 8,815 5,876 30.1 dash
19 no-host configure.util-linux 29,864 20,071 10,829 30.1 osh-cpython
27 no-host configure.util-linux 13,748 8,405 5,531 30.1 osh-native
6 no-host configure.yash 1,763 1,000 770 24.5 bash
14 no-host configure.yash 1,686 947 742 24.2 dash
22 no-host configure.yash 2,331 1,450 923 24.5 osh-cpython
30 no-host configure.yash 1,764 1,003 766 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 21 25 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,532 0 0 0 16 0 41 6 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,909 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,179 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,328 0 0 0 8 0 1,995 110 bash
9 no-host bin-true 66,436 0 0 0 8 0 1,987 62 dash
17 no-host bin-true 860,570 0 0 0 8 0 1,991 142 osh-cpython
25 no-host bin-true 130,617 0 0 0 16 0 1,995 117 osh-native
2 no-host configure.cpython 2,227,485 0 0 0 32,928 0 14,481 1,097 bash
10 no-host configure.cpython 2,247,438 0 0 0 32,992 0 14,605 1,132 dash
18 no-host configure.cpython 6,162,733 1 0 0 27,512 0 13,263 1,165 osh-cpython
26 no-host configure.cpython 2,222,720 0 0 0 27,520 0 13,245 976 osh-native
4 no-host configure.ocaml 410,332 0 0 0 5,120 0 1,941 167 bash
12 no-host configure.ocaml 390,754 0 0 0 5,112 0 1,869 140 dash
20 no-host configure.ocaml 639,851 0 0 0 5,112 0 1,851 220 osh-cpython
28 no-host configure.ocaml 413,390 0 0 0 5,120 0 1,923 185 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,220 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,026 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,106,920 0 0 0 42,400 0 18,411 966 bash
11 no-host configure.util-linux 2,257,402 0 0 0 42,584 0 17,460 1,196 dash
19 no-host configure.util-linux 5,323,801 16 0 0 39,120 0 16,964 1,221 osh-cpython
27 no-host configure.util-linux 1,994,698 0 0 0 39,120 0 16,958 897 osh-native
6 no-host configure.yash 256,745 0 0 0 4,120 0 871 95 bash
14 no-host configure.yash 244,740 0 0 0 3,720 0 866 84 dash
22 no-host configure.yash 383,588 1 0 0 3,728 0 851 80 osh-cpython
30 no-host configure.yash 257,388 0 0 0 3,736 0 844 76 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,696 0 0 0 8 0 7 5 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-ca78635f
dash dash-308ec8e6
osh-cpython osh-eafbc525
osh-native osh-bae6c4cc
host label host id
no-host no-host-556df3ee