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 454 22 23.74 1.16
bin-true no-host 682 541 2,230 823 3.27 1.21
configure.cpython no-host 15,364 15,070 28,595 15,180 1.86 0.99
configure.ocaml no-host 3,854 3,746 4,617 3,817 1.20 0.99
configure.tcc no-host 47 42 190 49 4.00 1.03
configure.util-linux no-host 14,247 14,784 31,064 14,421 2.18 1.01
configure.yash no-host 1,838 1,766 2,432 1,825 1.32 0.99
hello-world no-host 2 1 48 3 29.92 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,518 1,137 23,544 3,191 9.35 1.27
bin-true no-host 106,345 65,411 750,551 128,201 7.06 1.21
configure.cpython no-host 2,222,641 2,240,045 6,140,032 2,232,648 2.76 1.00
configure.ocaml no-host 410,203 391,082 640,055 414,190 1.56 1.01
configure.tcc no-host 6,536 5,485 23,310 7,007 3.57 1.07
configure.util-linux no-host 2,096,568 2,249,367 5,323,302 2,021,398 2.54 0.96
configure.yash no-host 256,161 244,532 384,988 259,215 1.50 1.01
hello-world no-host 152 82 3,683 350 24.23 2.30

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.8 5.00 2.03
bin-true no-host 2.9 1.6 17.4 8.1 6.05 2.82
configure.cpython no-host 27.5 27.3 27.3 27.5 0.99 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.1 19.4 0.99 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.6 17.3 6.2 6.29 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 823 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 15,180 1 60 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 14,421 2 60 22.2 30.1 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,817 1 2 2.7 20.4 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 49 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,825 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 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 19 13 7 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 454 418 39 21.6 osh-cpython
31 no-host abuild-print-help 22 19 4 8.8 osh-native
1 no-host bin-true 682 505 210 2.9 bash
9 no-host bin-true 541 414 135 1.6 dash
17 no-host bin-true 2,230 1,481 1,010 17.4 osh-cpython
25 no-host bin-true 823 596 240 8.1 osh-native
2 no-host configure.cpython 15,364 9,389 6,371 27.5 bash
10 no-host configure.cpython 15,070 9,116 6,373 27.3 dash
18 no-host configure.cpython 28,595 17,464 12,965 27.3 osh-cpython
26 no-host configure.cpython 15,180 9,108 6,339 27.5 osh-native
4 no-host configure.ocaml 3,854 1,664 1,220 20.6 bash
12 no-host configure.ocaml 3,746 1,598 1,165 20.4 dash
20 no-host configure.ocaml 4,617 2,248 1,573 20.6 osh-cpython
28 no-host configure.ocaml 3,817 1,698 1,160 20.4 osh-native
5 no-host configure.tcc 47 27 21 19.3 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 190 144 49 19.1 osh-cpython
29 no-host configure.tcc 49 34 15 19.4 osh-native
3 no-host configure.util-linux 14,247 8,983 5,743 30.1 bash
11 no-host configure.util-linux 14,784 9,041 6,229 30.1 dash
19 no-host configure.util-linux 31,064 20,748 11,384 30.1 osh-cpython
27 no-host configure.util-linux 14,421 8,848 5,771 30.1 osh-native
6 no-host configure.yash 1,838 1,041 806 24.4 bash
14 no-host configure.yash 1,766 1,036 734 24.2 dash
22 no-host configure.yash 2,432 1,435 1,038 24.2 osh-cpython
30 no-host configure.yash 1,825 1,039 790 24.2 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 20 27 17.3 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,518 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,137 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,544 0 0 0 8 0 47 9 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,345 0 0 0 8 0 1,995 132 bash
9 no-host bin-true 65,411 0 0 0 8 0 1,987 42 dash
17 no-host bin-true 750,551 0 0 0 8 0 2,003 152 osh-cpython
25 no-host bin-true 128,201 0 0 0 16 0 1,988 54 osh-native
2 no-host configure.cpython 2,222,641 0 0 0 32,928 0 14,500 1,197 bash
10 no-host configure.cpython 2,240,045 0 0 0 32,992 0 14,625 1,093 dash
18 no-host configure.cpython 6,140,032 0 0 0 27,512 0 13,294 1,314 osh-cpython
26 no-host configure.cpython 2,232,648 0 0 0 27,520 0 13,384 1,273 osh-native
4 no-host configure.ocaml 410,203 0 0 0 5,120 0 1,961 162 bash
12 no-host configure.ocaml 391,082 0 0 0 5,112 0 1,860 149 dash
20 no-host configure.ocaml 640,055 0 0 0 5,112 0 1,871 176 osh-cpython
28 no-host configure.ocaml 414,190 0 0 0 5,120 0 1,930 165 osh-native
5 no-host configure.tcc 6,536 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,310 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,007 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,568 1 0 0 42,400 0 18,550 1,326 bash
11 no-host configure.util-linux 2,249,367 0 0 0 42,584 0 17,504 1,052 dash
19 no-host configure.util-linux 5,323,302 12 0 0 39,128 0 17,096 1,230 osh-cpython
27 no-host configure.util-linux 2,021,398 0 0 0 39,120 0 17,133 1,048 osh-native
6 no-host configure.yash 256,161 0 0 0 4,120 0 871 80 bash
14 no-host configure.yash 244,532 0 0 0 3,720 0 869 92 dash
22 no-host configure.yash 384,988 0 0 0 3,728 0 857 83 osh-cpython
30 no-host configure.yash 259,215 0 0 0 3,736 0 853 87 osh-native
0 no-host hello-world 152 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,683 0 0 0 8 0 7 5 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-9be98e03
dash dash-308ec8e6
osh-cpython osh-908e63e1
osh-native osh-b1932cc7
host label host id
no-host no-host-556df3ee