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 9 444 22 23.25 1.17
bin-true no-host 674 537 2,211 810 3.28 1.20
configure.cpython no-host 14,771 14,859 28,097 15,006 1.90 1.02
configure.ocaml no-host 3,790 3,695 4,554 3,784 1.20 1.00
configure.tcc no-host 48 41 190 49 3.97 1.03
configure.util-linux no-host 13,822 14,720 30,660 14,180 2.22 1.03
configure.yash no-host 1,796 1,741 2,404 1,815 1.34 1.01
hello-world no-host 2 1 48 3 29.77 1.73

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,542 1,115 23,188 3,195 9.12 1.26
bin-true no-host 107,404 65,417 747,514 129,175 6.96 1.20
configure.cpython no-host 2,219,869 2,240,834 6,143,253 2,225,138 2.77 1.00
configure.ocaml no-host 409,872 391,079 637,149 413,581 1.55 1.01
configure.tcc no-host 6,575 5,481 23,218 6,970 3.53 1.06
configure.util-linux no-host 2,102,411 2,258,764 5,322,910 2,013,514 2.53 0.96
configure.yash no-host 256,171 244,560 385,446 258,524 1.50 1.01
hello-world no-host 154 80 3,658 346 23.75 2.25

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.6 9.0 5.00 2.09
bin-true no-host 3.0 1.3 17.3 7.9 5.74 2.61
configure.cpython no-host 27.3 27.5 27.4 27.5 1.00 1.01
configure.ocaml no-host 20.6 20.3 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.0 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.3 6.0 6.00 2.09

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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 810 1 2 2.7 7.9 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,006 1 57 15.8 27.5 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,180 2 56 22.2 30.0 2,703,262 44,762 65,808 126,121 1,320,489 1,256,652 49,081 41 131,616 1
configure.ocaml no-host 3,784 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 11 9 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 444 417 31 21.6 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
1 no-host bin-true 674 492 213 3.0 bash
9 no-host bin-true 537 423 122 1.3 dash
17 no-host bin-true 2,211 1,457 1,010 17.3 osh-cpython
25 no-host bin-true 810 586 243 7.9 osh-native
2 no-host configure.cpython 14,771 8,980 6,186 27.3 bash
10 no-host configure.cpython 14,859 9,139 6,141 27.5 dash
18 no-host configure.cpython 28,097 17,487 12,422 27.4 osh-cpython
26 no-host configure.cpython 15,006 8,892 6,378 27.5 osh-native
4 no-host configure.ocaml 3,790 1,525 1,303 20.6 bash
12 no-host configure.ocaml 3,695 1,523 1,190 20.3 dash
20 no-host configure.ocaml 4,554 2,295 1,457 20.6 osh-cpython
28 no-host configure.ocaml 3,784 1,599 1,225 20.6 osh-native
5 no-host configure.tcc 48 23 25 19.4 bash
13 no-host configure.tcc 41 31 10 19.3 dash
21 no-host configure.tcc 190 153 40 19.3 osh-cpython
29 no-host configure.tcc 49 22 27 19.4 osh-native
3 no-host configure.util-linux 13,822 8,769 5,530 30.1 bash
11 no-host configure.util-linux 14,720 9,075 6,143 30.1 dash
19 no-host configure.util-linux 30,660 20,448 11,278 30.3 osh-cpython
27 no-host configure.util-linux 14,180 8,598 5,785 30.0 osh-native
6 no-host configure.yash 1,796 1,024 780 24.4 bash
14 no-host configure.yash 1,741 1,034 711 24.4 dash
22 no-host configure.yash 2,404 1,542 903 24.2 osh-cpython
30 no-host configure.yash 1,815 1,056 763 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 24 23 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,542 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,188 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 107,404 0 0 0 8 0 1,995 52 bash
9 no-host bin-true 65,417 0 0 0 8 0 1,987 60 dash
17 no-host bin-true 747,514 0 0 0 8 0 1,997 145 osh-cpython
25 no-host bin-true 129,175 0 0 0 16 0 1,987 46 osh-native
2 no-host configure.cpython 2,219,869 0 0 0 32,928 0 14,521 989 bash
10 no-host configure.cpython 2,240,834 0 0 0 32,992 0 14,619 1,169 dash
18 no-host configure.cpython 6,143,253 0 0 0 27,512 0 13,174 1,143 osh-cpython
26 no-host configure.cpython 2,225,138 0 0 0 27,520 0 13,272 1,121 osh-native
4 no-host configure.ocaml 409,872 0 0 0 5,120 0 1,955 176 bash
12 no-host configure.ocaml 391,079 0 0 0 5,112 0 1,905 151 dash
20 no-host configure.ocaml 637,149 0 0 0 5,112 0 1,865 156 osh-cpython
28 no-host configure.ocaml 413,581 0 0 0 5,120 0 1,932 205 osh-native
5 no-host configure.tcc 6,575 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,218 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,102,411 1 0 0 42,400 0 18,632 1,063 bash
11 no-host configure.util-linux 2,258,764 1 0 0 42,584 0 17,424 1,227 dash
19 no-host configure.util-linux 5,322,910 6 0 0 39,112 0 17,045 1,184 osh-cpython
27 no-host configure.util-linux 2,013,514 2 0 0 39,120 0 17,095 980 osh-native
6 no-host configure.yash 256,171 0 0 0 4,120 0 867 82 bash
14 no-host configure.yash 244,560 0 0 0 3,720 0 872 73 dash
22 no-host configure.yash 385,446 0 0 0 3,728 0 855 91 osh-cpython
30 no-host configure.yash 258,524 0 0 0 3,736 0 854 76 osh-native
0 no-host hello-world 154 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,658 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-fb0cb25a
dash dash-308ec8e6
osh-cpython osh-ad2e2444
osh-native osh-752d2611
host label host id
no-host no-host-13226fd6