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 457 22 23.59 1.16
bin-true no-host 676 556 2,255 833 3.33 1.23
configure.cpython no-host 15,309 15,405 29,232 15,611 1.91 1.02
configure.ocaml no-host 3,875 3,792 4,708 3,887 1.21 1.00
configure.tcc no-host 48 43 197 49 4.09 1.02
configure.util-linux no-host 14,293 15,159 31,899 14,711 2.23 1.03
configure.yash no-host 1,851 1,802 2,488 1,869 1.34 1.01
hello-world no-host 2 1 48 3 31.01 1.85

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,140 23,162 3,225 9.15 1.27
bin-true no-host 103,388 65,397 749,415 129,223 7.25 1.25
configure.cpython no-host 2,224,638 2,239,279 6,101,827 2,231,058 2.74 1.00
configure.ocaml no-host 410,272 391,176 636,478 413,860 1.55 1.01
configure.tcc no-host 6,525 5,484 23,219 7,012 3.56 1.07
configure.util-linux no-host 2,101,353 2,257,455 5,307,011 2,015,959 2.53 0.96
configure.yash no-host 255,357 244,663 384,294 258,333 1.50 1.01
hello-world no-host 154 82 3,656 347 23.74 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 8.9 5.00 2.06
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.5 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.0 1.00 0.99
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.6 17.2 6.0 5.95 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,720 3,720 0 684 1,872 1,164 2 0 50,000 0
bin-true no-host 833 1 2 2.7 8.0 154,685 12,990 2,797 11,737 78,341 64,607 5,012 3 50,000 0
configure.cpython no-host 15,611 1 63 15.8 27.3 1,772,601 49,195 28,506 101,770 908,048 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,711 3 62 22.2 30.0 2,703,265 44,764 65,790 126,121 1,320,492 1,256,652 49,081 41 131,580 1
configure.ocaml no-host 3,887 1 2 2.7 20.4 150,027 11,043 5,136 8,602 71,626 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,520 30,520 0 1,599 14,796 14,125 350 0 50,000 0
configure.yash no-host 1,869 1 2 2.6 24.2 139,684 7,962 6,598 7,554 70,298 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,263 64,453 42,661 4,609 54,541 57,113 478 3 85,322 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 10 9 4.3 bash
15 no-host abuild-print-help 9 9 1 3.5 dash
23 no-host abuild-print-help 457 424 36 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 676 499 210 2.9 bash
9 no-host bin-true 556 428 136 1.4 dash
17 no-host bin-true 2,255 1,472 1,042 17.3 osh-cpython
25 no-host bin-true 833 593 255 8.0 osh-native
2 no-host configure.cpython 15,309 9,334 6,386 27.4 bash
10 no-host configure.cpython 15,405 9,206 6,620 27.4 dash
18 no-host configure.cpython 29,232 17,854 13,280 27.5 osh-cpython
26 no-host configure.cpython 15,611 9,113 6,770 27.3 osh-native
4 no-host configure.ocaml 3,875 1,654 1,252 20.4 bash
12 no-host configure.ocaml 3,792 1,570 1,242 20.6 dash
20 no-host configure.ocaml 4,708 2,262 1,656 20.6 osh-cpython
28 no-host configure.ocaml 3,887 1,692 1,235 20.4 osh-native
5 no-host configure.tcc 48 24 25 19.4 bash
13 no-host configure.tcc 43 20 23 19.3 dash
21 no-host configure.tcc 197 160 40 19.3 osh-cpython
29 no-host configure.tcc 49 23 27 19.4 osh-native
3 no-host configure.util-linux 14,293 8,944 5,831 30.3 bash
11 no-host configure.util-linux 15,159 9,247 6,414 30.1 dash
19 no-host configure.util-linux 31,899 21,199 11,827 30.3 osh-cpython
27 no-host configure.util-linux 14,711 8,871 6,040 30.0 osh-native
6 no-host configure.yash 1,851 1,046 812 24.4 bash
14 no-host configure.yash 1,802 1,018 788 24.4 dash
22 no-host configure.yash 2,488 1,533 998 24.2 osh-cpython
30 no-host configure.yash 1,869 1,066 807 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 48 36 12 17.2 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,532 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,140 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,162 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,225 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 103,388 0 0 0 8 0 1,981 47 bash
9 no-host bin-true 65,397 0 0 0 8 0 1,989 38 dash
17 no-host bin-true 749,415 0 0 0 8 0 1,998 276 osh-cpython
25 no-host bin-true 129,223 0 0 0 16 0 1,985 96 osh-native
2 no-host configure.cpython 2,224,638 0 0 0 32,928 0 14,572 1,180 bash
10 no-host configure.cpython 2,239,279 1 0 0 32,992 0 14,561 1,207 dash
18 no-host configure.cpython 6,101,827 1 0 0 27,512 0 13,244 1,259 osh-cpython
26 no-host configure.cpython 2,231,058 0 0 0 27,520 0 13,175 1,054 osh-native
4 no-host configure.ocaml 410,272 0 0 0 5,120 0 1,958 164 bash
12 no-host configure.ocaml 391,176 0 0 0 5,112 0 1,897 156 dash
20 no-host configure.ocaml 636,478 0 0 0 5,112 0 1,862 166 osh-cpython
28 no-host configure.ocaml 413,860 0 0 0 5,120 0 1,935 149 osh-native
5 no-host configure.tcc 6,525 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,219 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 7,012 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,101,353 2 0 0 42,408 0 18,544 1,176 bash
11 no-host configure.util-linux 2,257,455 1 0 0 42,592 0 17,466 1,032 dash
19 no-host configure.util-linux 5,307,011 11 0 0 39,136 0 17,087 1,202 osh-cpython
27 no-host configure.util-linux 2,015,959 1 0 0 39,128 0 17,080 1,046 osh-native
6 no-host configure.yash 255,357 0 0 0 4,120 0 870 95 bash
14 no-host configure.yash 244,663 0 0 0 3,720 0 868 73 dash
22 no-host configure.yash 384,294 0 0 0 3,728 0 860 83 osh-cpython
30 no-host configure.yash 258,333 0 0 0 3,736 0 854 89 osh-native
0 no-host hello-world 154 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,656 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-bbce7305
dash dash-308ec8e6
osh-cpython osh-ed846b24
osh-native osh-702c427c
host label host id
no-host no-host-13226fd6