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 20 10 468 24 23.81 1.20
bin-true no-host 685 566 2,282 852 3.33 1.24
configure.cpython no-host 15,508 15,526 29,142 16,187 1.88 1.04
configure.ocaml no-host 3,910 3,847 4,827 3,923 1.23 1.00
configure.tcc no-host 48 42 196 50 4.08 1.04
configure.util-linux no-host 14,466 15,263 32,005 15,026 2.21 1.04
configure.yash no-host 1,855 1,835 2,555 1,878 1.38 1.01
hello-world no-host 1 1 54 3 36.82 2.08

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,134 23,480 3,214 9.27 1.27
bin-true no-host 106,300 67,449 751,813 127,248 7.07 1.20
configure.cpython no-host 2,223,062 2,238,034 6,140,442 2,227,500 2.76 1.00
configure.ocaml no-host 410,067 390,465 640,011 413,529 1.56 1.01
configure.tcc no-host 6,551 5,478 23,277 7,007 3.55 1.07
configure.util-linux no-host 2,099,908 2,255,779 5,328,174 2,021,091 2.54 0.96
configure.yash no-host 255,992 243,498 384,616 258,856 1.50 1.01
hello-world no-host 155 81 3,683 350 23.76 2.26

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 8.9 5.06 2.06
bin-true no-host 2.9 1.6 17.3 8.1 6.00 2.82
configure.cpython no-host 27.4 27.3 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.1 30.1 30.3 1.00 1.01
configure.yash no-host 24.5 24.2 24.2 24.5 0.99 1.00
hello-world no-host 2.9 1.4 17.3 6.3 6.00 2.18

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.3 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 852 1 2 2.7 8.1 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 16,187 1 68 15.8 27.5 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 15,026 3 65 22.2 30.3 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,923 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,878 1 2 2.6 24.5 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.9 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 20 15 5 4.3 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 468 400 71 21.9 osh-cpython
31 no-host abuild-print-help 24 13 11 8.9 osh-native
1 no-host bin-true 685 499 217 2.9 bash
9 no-host bin-true 566 430 148 1.6 dash
17 no-host bin-true 2,282 1,513 1,029 17.3 osh-cpython
25 no-host bin-true 852 610 261 8.1 osh-native
2 no-host configure.cpython 15,508 9,217 6,708 27.4 bash
10 no-host configure.cpython 15,526 9,494 6,461 27.3 dash
18 no-host configure.cpython 29,142 17,663 13,359 27.3 osh-cpython
26 no-host configure.cpython 16,187 9,377 7,091 27.5 osh-native
4 no-host configure.ocaml 3,910 1,761 1,174 20.6 bash
12 no-host configure.ocaml 3,847 1,626 1,239 20.4 dash
20 no-host configure.ocaml 4,827 2,387 1,658 20.6 osh-cpython
28 no-host configure.ocaml 3,923 1,633 1,329 20.6 osh-native
5 no-host configure.tcc 48 33 15 19.4 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 196 139 60 19.3 osh-cpython
29 no-host configure.tcc 50 29 22 19.4 osh-native
3 no-host configure.util-linux 14,466 9,124 5,829 30.0 bash
11 no-host configure.util-linux 15,263 9,217 6,547 30.1 dash
19 no-host configure.util-linux 32,005 21,381 11,744 30.1 osh-cpython
27 no-host configure.util-linux 15,026 9,191 6,040 30.3 osh-native
6 no-host configure.yash 1,855 1,010 854 24.5 bash
14 no-host configure.yash 1,835 1,048 790 24.2 dash
22 no-host configure.yash 2,555 1,529 1,070 24.2 osh-cpython
30 no-host configure.yash 1,878 1,073 809 24.5 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 54 41 12 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 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 0 bash
15 no-host abuild-print-help 1,134 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,480 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,214 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,300 0 0 0 8 0 1,995 78 bash
9 no-host bin-true 67,449 0 0 0 8 0 1,981 69 dash
17 no-host bin-true 751,813 0 0 0 8 0 1,998 339 osh-cpython
25 no-host bin-true 127,248 0 0 0 16 0 1,984 63 osh-native
2 no-host configure.cpython 2,223,062 1 0 0 32,928 0 14,506 967 bash
10 no-host configure.cpython 2,238,034 0 0 0 32,992 0 14,578 1,174 dash
18 no-host configure.cpython 6,140,442 0 0 0 27,512 0 13,338 1,265 osh-cpython
26 no-host configure.cpython 2,227,500 0 0 0 27,520 0 13,322 994 osh-native
4 no-host configure.ocaml 410,067 0 0 0 5,120 0 1,952 156 bash
12 no-host configure.ocaml 390,465 0 0 0 5,112 0 1,884 187 dash
20 no-host configure.ocaml 640,011 0 0 0 5,112 0 1,869 175 osh-cpython
28 no-host configure.ocaml 413,529 0 0 0 5,120 0 1,934 170 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 6 dash
21 no-host configure.tcc 23,277 0 0 0 96 0 52 14 osh-cpython
29 no-host configure.tcc 7,007 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,099,908 0 0 0 42,400 0 18,557 1,166 bash
11 no-host configure.util-linux 2,255,779 0 0 0 42,584 0 17,509 1,189 dash
19 no-host configure.util-linux 5,328,174 9 0 0 39,112 0 17,087 1,387 osh-cpython
27 no-host configure.util-linux 2,021,091 2 0 0 39,120 0 16,963 1,148 osh-native
6 no-host configure.yash 255,992 0 0 0 4,120 0 871 85 bash
14 no-host configure.yash 243,498 0 0 0 3,720 0 867 94 dash
22 no-host configure.yash 384,616 0 0 0 3,728 0 860 93 osh-cpython
30 no-host configure.yash 258,856 0 0 0 3,736 0 852 86 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,683 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 0 1 osh-native

Shell and Host

shell label shell id
bash bash-297106e2
dash dash-308ec8e6
osh-cpython osh-ab203d66
osh-native osh-ef8e3496
host label host id
no-host no-host-556df3ee