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 22 9 448 22 20.82 1.04
bin-true no-host 685 546 2,244 821 3.27 1.20
configure.cpython no-host 15,249 15,287 28,720 15,422 1.88 1.01
configure.ocaml no-host 3,868 3,776 4,678 3,864 1.21 1.00
configure.tcc no-host 48 42 194 49 4.02 1.02
configure.util-linux no-host 14,147 15,013 31,244 14,566 2.21 1.03
configure.yash no-host 1,850 1,783 2,470 1,859 1.34 1.00
hello-world no-host 2 1 48 3 31.67 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,574 1,110 23,170 3,203 9.00 1.24
bin-true no-host 104,387 66,415 750,365 130,182 7.19 1.25
configure.cpython no-host 2,220,027 2,246,006 6,106,007 2,236,758 2.75 1.01
configure.ocaml no-host 410,336 390,822 636,992 413,431 1.55 1.01
configure.tcc no-host 6,560 5,468 23,183 6,980 3.53 1.06
configure.util-linux no-host 2,096,242 2,259,377 5,318,447 2,012,354 2.54 0.96
configure.yash no-host 256,232 244,483 382,643 258,063 1.49 1.01
hello-world no-host 153 85 3,655 345 23.89 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.5 3.5 21.6 8.8 4.85 1.97
bin-true no-host 3.0 1.4 17.2 8.1 5.70 2.70
configure.cpython no-host 27.5 27.4 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.3 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.0 30.3 30.1 29.9 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.4 17.2 6.2 6.24 2.24

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,720 3,720 0 684 1,872 1,164 2 0 50,000 0
bin-true no-host 821 1 2 2.7 8.1 154,685 12,990 2,797 11,737 78,341 64,607 5,012 3 50,000 0
configure.cpython no-host 15,422 1 62 15.8 27.4 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,566 3 62 22.2 29.9 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,864 1 2 2.7 20.6 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,859 1 2 2.6 24.4 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.8 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 22 15 5 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 448 405 46 21.6 osh-cpython
31 no-host abuild-print-help 22 18 5 8.8 osh-native
1 no-host bin-true 685 512 204 3.0 bash
9 no-host bin-true 546 418 135 1.4 dash
17 no-host bin-true 2,244 1,400 1,099 17.2 osh-cpython
25 no-host bin-true 821 566 270 8.1 osh-native
2 no-host configure.cpython 15,249 8,928 6,709 27.5 bash
10 no-host configure.cpython 15,287 9,305 6,404 27.4 dash
18 no-host configure.cpython 28,720 17,573 12,978 27.4 osh-cpython
26 no-host configure.cpython 15,422 9,072 6,615 27.4 osh-native
4 no-host configure.ocaml 3,868 1,752 1,140 20.6 bash
12 no-host configure.ocaml 3,776 1,611 1,181 20.6 dash
20 no-host configure.ocaml 4,678 2,220 1,659 20.6 osh-cpython
28 no-host configure.ocaml 3,864 1,653 1,249 20.6 osh-native
5 no-host configure.tcc 48 24 24 19.4 bash
13 no-host configure.tcc 42 24 18 19.3 dash
21 no-host configure.tcc 194 138 60 19.4 osh-cpython
29 no-host configure.tcc 49 39 11 19.4 osh-native
3 no-host configure.util-linux 14,147 8,948 5,665 30.0 bash
11 no-host configure.util-linux 15,013 9,243 6,267 30.3 dash
19 no-host configure.util-linux 31,244 20,972 11,346 30.1 osh-cpython
27 no-host configure.util-linux 14,566 8,836 5,921 29.9 osh-native
6 no-host configure.yash 1,850 1,061 798 24.5 bash
14 no-host configure.yash 1,783 1,023 763 24.4 dash
22 no-host configure.yash 2,470 1,525 987 24.2 osh-cpython
30 no-host configure.yash 1,859 1,067 793 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 26 22 17.2 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,574 0 0 0 16 0 42 0 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,170 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,387 0 0 0 8 0 1,991 56 bash
9 no-host bin-true 66,415 0 0 0 8 0 1,987 40 dash
17 no-host bin-true 750,365 0 0 0 8 0 2,001 415 osh-cpython
25 no-host bin-true 130,182 0 0 0 16 0 1,989 86 osh-native
2 no-host configure.cpython 2,220,027 0 0 0 32,928 0 14,523 1,215 bash
10 no-host configure.cpython 2,246,006 0 0 0 32,992 0 14,625 1,190 dash
18 no-host configure.cpython 6,106,007 0 0 0 27,512 0 13,232 1,334 osh-cpython
26 no-host configure.cpython 2,236,758 0 0 0 27,520 0 13,301 1,063 osh-native
4 no-host configure.ocaml 410,336 0 0 0 5,120 0 1,962 182 bash
12 no-host configure.ocaml 390,822 0 0 0 5,112 0 1,872 144 dash
20 no-host configure.ocaml 636,992 0 0 0 5,112 0 1,860 219 osh-cpython
28 no-host configure.ocaml 413,431 0 0 0 5,120 0 1,927 155 osh-native
5 no-host configure.tcc 6,560 0 0 0 104 0 49 7 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,183 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,980 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,096,242 0 0 0 42,400 0 18,614 1,154 bash
11 no-host configure.util-linux 2,259,377 3 0 0 42,584 0 17,508 1,031 dash
19 no-host configure.util-linux 5,318,447 11 0 0 39,112 0 17,049 1,206 osh-cpython
27 no-host configure.util-linux 2,012,354 0 0 0 39,120 0 17,112 1,044 osh-native
6 no-host configure.yash 256,232 0 0 0 4,120 0 869 73 bash
14 no-host configure.yash 244,483 0 0 0 3,720 0 870 74 dash
22 no-host configure.yash 382,643 0 0 0 3,728 0 859 82 osh-cpython
30 no-host configure.yash 258,063 0 0 0 3,736 0 851 92 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,655 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-243fe648
dash dash-308ec8e6
osh-cpython osh-fb757c01
osh-native osh-bcd12133
host label host id
no-host no-host-13226fd6