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 10 452 22 23.82 1.18
bin-true no-host 670 540 2,219 811 3.31 1.21
configure.cpython no-host 14,963 14,955 28,260 15,033 1.89 1.00
configure.ocaml no-host 3,818 3,714 4,571 3,804 1.20 1.00
configure.tcc no-host 48 41 190 48 4.01 1.02
configure.util-linux no-host 13,899 14,697 30,949 14,219 2.23 1.02
configure.yash no-host 1,835 1,752 2,394 1,816 1.30 0.99
hello-world no-host 1 1 48 3 33.70 1.97

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,535 1,138 23,467 3,196 9.26 1.26
bin-true no-host 107,375 66,485 750,701 127,148 6.99 1.18
configure.cpython no-host 2,212,812 2,241,759 6,137,056 2,227,982 2.77 1.01
configure.ocaml no-host 410,707 391,454 640,193 413,773 1.56 1.01
configure.tcc no-host 6,561 5,467 23,276 7,011 3.55 1.07
configure.util-linux no-host 2,096,359 2,258,056 5,327,168 2,021,322 2.54 0.96
configure.yash no-host 255,555 243,961 383,656 257,641 1.50 1.01
hello-world no-host 153 83 3,681 348 24.06 2.27

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.9 8.7 4.91 1.94
bin-true no-host 2.9 1.6 17.6 7.9 6.09 2.73
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 0.99 0.99
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 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.3 6.2 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 811 1 2 2.7 7.9 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,033 1 58 15.8 27.4 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,219 2 57 22.2 30.0 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,804 0 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 48 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,816 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.7 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.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 452 410 45 21.9 osh-cpython
31 no-host abuild-print-help 22 11 12 8.7 osh-native
1 no-host bin-true 670 493 210 2.9 bash
9 no-host bin-true 540 414 136 1.6 dash
17 no-host bin-true 2,219 1,480 988 17.6 osh-cpython
25 no-host bin-true 811 583 242 7.9 osh-native
2 no-host configure.cpython 14,963 9,029 6,290 27.4 bash
10 no-host configure.cpython 14,955 8,895 6,422 27.4 dash
18 no-host configure.cpython 28,260 17,076 12,995 27.4 osh-cpython
26 no-host configure.cpython 15,033 8,868 6,426 27.4 osh-native
4 no-host configure.ocaml 3,818 1,616 1,234 20.6 bash
12 no-host configure.ocaml 3,714 1,582 1,151 20.6 dash
20 no-host configure.ocaml 4,571 2,167 1,604 20.4 osh-cpython
28 no-host configure.ocaml 3,804 1,699 1,144 20.4 osh-native
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 41 16 25 19.3 dash
21 no-host configure.tcc 190 137 57 19.3 osh-cpython
29 no-host configure.tcc 48 28 21 19.3 osh-native
3 no-host configure.util-linux 13,899 8,740 5,632 30.1 bash
11 no-host configure.util-linux 14,697 9,033 6,151 30.1 dash
19 no-host configure.util-linux 30,949 20,853 11,153 30.0 osh-cpython
27 no-host configure.util-linux 14,219 8,568 5,835 30.0 osh-native
6 no-host configure.yash 1,835 1,058 786 24.4 bash
14 no-host configure.yash 1,752 973 781 24.4 dash
22 no-host configure.yash 2,394 1,467 968 24.2 osh-cpython
30 no-host configure.yash 1,816 1,109 711 24.2 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 48 24 23 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,535 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,138 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,467 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,375 0 0 0 8 0 1,993 134 bash
9 no-host bin-true 66,485 0 0 0 8 0 1,984 56 dash
17 no-host bin-true 750,701 0 0 0 8 0 1,997 358 osh-cpython
25 no-host bin-true 127,148 0 0 0 16 0 1,990 84 osh-native
2 no-host configure.cpython 2,212,812 0 0 0 32,928 0 14,441 1,249 bash
10 no-host configure.cpython 2,241,759 0 0 0 32,992 0 14,560 1,223 dash
18 no-host configure.cpython 6,137,056 2 0 0 27,512 0 13,333 1,258 osh-cpython
26 no-host configure.cpython 2,227,982 0 0 0 27,520 0 13,310 994 osh-native
4 no-host configure.ocaml 410,707 0 0 0 5,120 0 1,962 199 bash
12 no-host configure.ocaml 391,454 0 0 0 5,112 0 1,935 179 dash
20 no-host configure.ocaml 640,193 0 0 0 5,112 0 1,859 179 osh-cpython
28 no-host configure.ocaml 413,773 0 0 0 5,120 0 1,935 178 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,467 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,276 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 7,011 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,096,359 1 0 0 42,400 0 18,553 1,043 bash
11 no-host configure.util-linux 2,258,056 1 0 0 42,584 0 17,430 1,227 dash
19 no-host configure.util-linux 5,327,168 17 0 0 39,120 0 17,086 1,260 osh-cpython
27 no-host configure.util-linux 2,021,322 0 0 0 39,120 0 17,062 1,221 osh-native
6 no-host configure.yash 255,555 0 0 0 4,120 0 868 98 bash
14 no-host configure.yash 243,961 0 0 0 3,720 0 866 71 dash
22 no-host configure.yash 383,656 0 0 0 3,728 0 855 112 osh-cpython
30 no-host configure.yash 257,641 0 0 0 3,736 0 856 86 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,681 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-2dd57e84
dash dash-308ec8e6
osh-cpython osh-bf4752df
osh-native osh-154b19da
host label host id
no-host no-host-556df3ee