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 455 22 23.61 1.17
bin-true no-host 680 546 2,228 818 3.28 1.20
configure.cpython no-host 15,127 15,219 28,715 15,453 1.90 1.02
configure.ocaml no-host 3,822 3,784 4,689 3,872 1.23 1.01
configure.tcc no-host 49 43 195 50 4.01 1.02
configure.util-linux no-host 14,197 15,037 31,429 14,512 2.21 1.02
configure.yash no-host 1,839 1,800 2,480 1,863 1.35 1.01
hello-world no-host 2 1 49 3 31.11 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,551 1,120 23,524 3,191 9.22 1.25
bin-true no-host 106,303 65,389 750,418 126,172 7.06 1.19
configure.cpython no-host 2,216,147 2,245,525 6,120,759 2,226,474 2.76 1.00
configure.ocaml no-host 410,952 391,426 638,310 414,156 1.55 1.01
configure.tcc no-host 6,546 5,479 23,239 7,015 3.55 1.07
configure.util-linux no-host 2,100,250 2,254,571 5,317,785 2,016,695 2.53 0.96
configure.yash no-host 256,341 244,097 385,865 259,044 1.51 1.01
hello-world no-host 153 82 3,653 344 23.88 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.4 21.8 8.8 5.03 2.03
bin-true no-host 2.9 1.6 17.4 8.0 6.05 2.77
configure.cpython no-host 27.5 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 1.00 1.01
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.3 30.0 30.3 1.00 1.01
configure.yash no-host 24.5 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.6 17.3 6.2 6.00 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 818 1 2 2.7 8.0 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,453 1 64 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,512 3 61 22.2 30.3 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,872 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,863 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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 8 4.3 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 455 404 54 21.8 osh-cpython
31 no-host abuild-print-help 22 22 1 8.8 osh-native
1 no-host bin-true 680 503 208 2.9 bash
9 no-host bin-true 546 413 142 1.6 dash
17 no-host bin-true 2,228 1,437 1,039 17.4 osh-cpython
25 no-host bin-true 818 587 247 8.0 osh-native
2 no-host configure.cpython 15,127 9,122 6,409 27.5 bash
10 no-host configure.cpython 15,219 9,115 6,527 27.5 dash
18 no-host configure.cpython 28,715 17,475 13,105 27.4 osh-cpython
26 no-host configure.cpython 15,453 9,085 6,600 27.4 osh-native
4 no-host configure.ocaml 3,822 1,652 1,210 20.4 bash
12 no-host configure.ocaml 3,784 1,644 1,161 20.6 dash
20 no-host configure.ocaml 4,689 2,261 1,635 20.4 osh-cpython
28 no-host configure.ocaml 3,872 1,675 1,237 20.6 osh-native
5 no-host configure.tcc 49 32 17 19.4 bash
13 no-host configure.tcc 43 27 16 19.4 dash
21 no-host configure.tcc 195 137 61 19.3 osh-cpython
29 no-host configure.tcc 50 31 19 19.4 osh-native
3 no-host configure.util-linux 14,197 9,004 5,668 30.0 bash
11 no-host configure.util-linux 15,037 9,275 6,261 30.3 dash
19 no-host configure.util-linux 31,429 20,861 11,646 30.0 osh-cpython
27 no-host configure.util-linux 14,512 8,710 6,001 30.3 osh-native
6 no-host configure.yash 1,839 1,104 744 24.5 bash
14 no-host configure.yash 1,800 1,049 754 24.2 dash
22 no-host configure.yash 2,480 1,552 969 24.4 osh-cpython
30 no-host configure.yash 1,863 1,022 845 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 29 20 17.3 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,551 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,120 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,524 0 0 0 8 0 47 14 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,303 0 0 0 8 0 1,987 40 bash
9 no-host bin-true 65,389 0 0 0 8 0 1,984 35 dash
17 no-host bin-true 750,418 0 0 0 8 0 1,995 283 osh-cpython
25 no-host bin-true 126,172 0 0 0 16 0 1,990 188 osh-native
2 no-host configure.cpython 2,216,147 0 0 0 32,928 0 14,562 1,180 bash
10 no-host configure.cpython 2,245,525 0 0 0 32,992 0 14,569 1,158 dash
18 no-host configure.cpython 6,120,759 0 0 0 27,512 0 13,314 1,208 osh-cpython
26 no-host configure.cpython 2,226,474 0 0 0 27,520 0 13,280 1,051 osh-native
4 no-host configure.ocaml 410,952 0 0 0 5,120 0 1,947 139 bash
12 no-host configure.ocaml 391,426 1 0 0 5,112 0 1,942 132 dash
20 no-host configure.ocaml 638,310 0 0 0 5,112 0 1,873 157 osh-cpython
28 no-host configure.ocaml 414,156 0 0 0 5,120 0 1,939 179 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,239 0 0 0 96 0 52 12 osh-cpython
29 no-host configure.tcc 7,015 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,100,250 1 0 0 42,400 0 18,673 1,108 bash
11 no-host configure.util-linux 2,254,571 0 0 0 42,592 0 17,480 1,169 dash
19 no-host configure.util-linux 5,317,785 7 0 0 39,112 0 17,072 1,288 osh-cpython
27 no-host configure.util-linux 2,016,695 2 0 0 39,120 0 17,066 1,169 osh-native
6 no-host configure.yash 256,341 0 0 0 4,120 0 869 80 bash
14 no-host configure.yash 244,097 0 0 0 3,720 0 870 82 dash
22 no-host configure.yash 385,865 0 0 0 3,728 0 860 73 osh-cpython
30 no-host configure.yash 259,044 0 0 0 3,736 0 848 90 osh-native
0 no-host hello-world 153 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,653 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-32553726
dash dash-308ec8e6
osh-cpython osh-7fe003d3
osh-native osh-104796d8
host label host id
no-host no-host-e54d7702