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 459 22 23.54 1.14
bin-true no-host 671 547 2,254 812 3.36 1.21
configure.cpython no-host 14,989 15,125 28,594 15,282 1.91 1.02
configure.ocaml no-host 3,805 3,729 4,625 3,831 1.22 1.01
configure.tcc no-host 48 41 195 49 4.07 1.02
configure.util-linux no-host 14,086 14,889 31,215 14,435 2.22 1.02
configure.yash no-host 1,832 1,777 2,489 1,829 1.36 1.00
hello-world no-host 1 1 48 3 33.70 1.98

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,542 1,108 22,927 3,177 9.02 1.25
bin-true no-host 107,409 66,381 760,854 125,168 7.08 1.17
configure.cpython no-host 2,214,559 2,249,422 6,183,410 2,231,417 2.79 1.01
configure.ocaml no-host 411,023 391,398 640,079 413,564 1.56 1.01
configure.tcc no-host 6,563 5,471 23,308 6,994 3.55 1.07
configure.util-linux no-host 2,103,033 2,265,005 5,332,775 1,998,402 2.54 0.95
configure.yash no-host 255,540 245,060 385,996 258,223 1.51 1.01
hello-world no-host 152 80 3,692 348 24.29 2.29

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.4 21.9 9.0 4.91 2.03
bin-true no-host 2.8 1.4 17.6 7.9 6.38 2.86
configure.cpython no-host 28.4 27.3 27.4 27.3 0.96 0.96
configure.ocaml no-host 20.4 20.4 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.3 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.3 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.5 1.01 1.01
hello-world no-host 2.9 1.4 17.4 6.3 6.04 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.9 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,282 1 61 15.0 27.3 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,435 3 60 21.3 30.3 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,831 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,829 1 2 2.6 24.5 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 18 2 4.5 bash
15 no-host abuild-print-help 10 7 4 3.4 dash
23 no-host abuild-print-help 459 424 38 21.9 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
1 no-host bin-true 671 506 199 2.8 bash
9 no-host bin-true 547 425 131 1.4 dash
17 no-host bin-true 2,254 1,466 1,050 17.6 osh-cpython
25 no-host bin-true 812 592 238 7.9 osh-native
2 no-host configure.cpython 14,989 9,167 6,214 28.4 bash
10 no-host configure.cpython 15,125 9,015 6,528 27.3 dash
18 no-host configure.cpython 28,594 17,402 13,049 27.4 osh-cpython
26 no-host configure.cpython 15,282 9,202 6,340 27.3 osh-native
4 no-host configure.ocaml 3,805 1,635 1,207 20.4 bash
12 no-host configure.ocaml 3,729 1,543 1,204 20.4 dash
20 no-host configure.ocaml 4,625 2,151 1,683 20.6 osh-cpython
28 no-host configure.ocaml 3,831 1,629 1,243 20.6 osh-native
5 no-host configure.tcc 48 35 13 19.4 bash
13 no-host configure.tcc 41 27 15 19.3 dash
21 no-host configure.tcc 195 151 47 19.3 osh-cpython
29 no-host configure.tcc 49 31 18 19.4 osh-native
3 no-host configure.util-linux 14,086 9,049 5,518 30.1 bash
11 no-host configure.util-linux 14,889 9,009 6,365 30.3 dash
19 no-host configure.util-linux 31,215 20,497 11,805 30.0 osh-cpython
27 no-host configure.util-linux 14,435 8,602 6,020 30.3 osh-native
6 no-host configure.yash 1,832 1,112 728 24.2 bash
14 no-host configure.yash 1,777 1,011 769 24.2 dash
22 no-host configure.yash 2,489 1,548 984 24.4 osh-cpython
30 no-host configure.yash 1,829 1,108 726 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 48 28 20 17.4 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,542 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,927 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 107,409 0 0 0 8 0 1,993 42 bash
9 no-host bin-true 66,381 0 0 0 8 0 1,986 39 dash
17 no-host bin-true 760,854 0 0 0 8 0 2,002 137 osh-cpython
25 no-host bin-true 125,168 0 0 0 16 0 1,991 63 osh-native
2 no-host configure.cpython 2,214,559 0 0 0 32,928 0 14,483 1,101 bash
10 no-host configure.cpython 2,249,422 0 0 0 32,992 0 14,661 1,274 dash
18 no-host configure.cpython 6,183,410 0 0 0 27,512 0 13,271 1,190 osh-cpython
26 no-host configure.cpython 2,231,417 0 0 0 27,520 0 13,278 1,123 osh-native
4 no-host configure.ocaml 411,023 0 0 0 5,120 0 1,955 170 bash
12 no-host configure.ocaml 391,398 0 0 0 5,112 0 1,898 139 dash
20 no-host configure.ocaml 640,079 0 0 0 5,112 0 1,859 168 osh-cpython
28 no-host configure.ocaml 413,564 0 0 0 5,120 0 1,938 159 osh-native
5 no-host configure.tcc 6,563 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,308 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,103,033 1 0 0 42,400 0 18,670 1,067 bash
11 no-host configure.util-linux 2,265,005 1 0 0 42,584 0 17,508 976 dash
19 no-host configure.util-linux 5,332,775 10 0 0 39,112 0 16,912 1,354 osh-cpython
27 no-host configure.util-linux 1,998,402 1 0 0 39,120 0 16,929 1,069 osh-native
6 no-host configure.yash 255,540 0 0 0 4,120 0 869 77 bash
14 no-host configure.yash 245,060 0 0 0 3,720 0 867 91 dash
22 no-host configure.yash 385,996 0 0 0 3,728 0 858 89 osh-cpython
30 no-host configure.yash 258,223 0 0 0 3,736 0 851 70 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,692 0 0 0 8 0 7 5 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-c6dd9f67
dash dash-308ec8e6
osh-cpython osh-b93efed7
osh-native osh-bd2c17fb
host label host id
no-host no-host-556df3ee