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 460 22 24.31 1.17
bin-true no-host 666 540 2,275 814 3.41 1.22
configure.cpython no-host 15,310 15,133 28,762 15,473 1.88 1.01
configure.ocaml no-host 3,797 3,718 4,720 3,825 1.24 1.01
configure.tcc no-host 47 41 196 50 4.13 1.05
configure.util-linux no-host 14,165 14,750 31,332 14,299 2.21 1.01
configure.yash no-host 1,802 1,764 2,502 1,882 1.39 1.04
hello-world no-host 2 1 49 3 30.86 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,516 1,107 22,925 3,175 9.11 1.26
bin-true no-host 102,319 65,482 759,884 128,177 7.43 1.25
configure.cpython no-host 2,214,677 2,241,839 6,185,075 2,227,225 2.79 1.01
configure.ocaml no-host 410,409 390,921 640,228 413,277 1.56 1.01
configure.tcc no-host 6,574 5,486 23,330 6,984 3.55 1.06
configure.util-linux no-host 2,104,068 2,258,607 5,332,172 1,997,652 2.53 0.95
configure.yash no-host 256,033 245,064 384,881 257,390 1.50 1.01
hello-world no-host 154 82 3,696 351 24.00 2.28

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.7 9.0 5.03 2.09
bin-true no-host 3.0 1.4 17.6 8.0 5.82 2.65
configure.cpython no-host 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.0 30.0 0.99 0.99
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.6 6.2 6.09 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,473 1 63 15.0 27.5 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,299 4 62 21.3 30.0 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,825 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 50 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,882 1 2 2.6 24.2 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 19 13 7 4.3 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 460 407 56 21.7 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
1 no-host bin-true 666 498 200 3.0 bash
9 no-host bin-true 540 409 140 1.4 dash
17 no-host bin-true 2,275 1,482 1,060 17.6 osh-cpython
25 no-host bin-true 814 589 238 8.0 osh-native
2 no-host configure.cpython 15,310 9,243 6,465 27.4 bash
10 no-host configure.cpython 15,133 9,268 6,260 27.4 dash
18 no-host configure.cpython 28,762 17,423 13,198 27.5 osh-cpython
26 no-host configure.cpython 15,473 9,192 6,543 27.5 osh-native
4 no-host configure.ocaml 3,797 1,601 1,238 20.6 bash
12 no-host configure.ocaml 3,718 1,562 1,174 20.6 dash
20 no-host configure.ocaml 4,720 2,286 1,647 20.4 osh-cpython
28 no-host configure.ocaml 3,825 1,594 1,268 20.6 osh-native
5 no-host configure.tcc 47 25 23 19.4 bash
13 no-host configure.tcc 41 26 15 19.3 dash
21 no-host configure.tcc 196 144 55 19.3 osh-cpython
29 no-host configure.tcc 50 34 16 19.3 osh-native
3 no-host configure.util-linux 14,165 8,818 5,824 30.3 bash
11 no-host configure.util-linux 14,750 9,061 6,176 30.1 dash
19 no-host configure.util-linux 31,332 20,873 11,545 30.0 osh-cpython
27 no-host configure.util-linux 14,299 8,533 5,959 30.0 osh-native
6 no-host configure.yash 1,802 1,063 747 24.2 bash
14 no-host configure.yash 1,764 1,018 750 24.4 dash
22 no-host configure.yash 2,502 1,570 976 24.4 osh-cpython
30 no-host configure.yash 1,882 1,074 813 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 37 12 17.6 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,516 0 0 0 16 0 41 7 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,925 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,175 0 0 0 16 0 39 4 osh-native
1 no-host bin-true 102,319 0 0 0 8 0 1,993 77 bash
9 no-host bin-true 65,482 0 0 0 8 0 1,990 67 dash
17 no-host bin-true 759,884 0 0 0 8 0 1,997 215 osh-cpython
25 no-host bin-true 128,177 0 0 0 16 0 1,989 58 osh-native
2 no-host configure.cpython 2,214,677 0 0 0 32,928 0 14,471 1,222 bash
10 no-host configure.cpython 2,241,839 0 0 0 32,992 0 14,644 1,038 dash
18 no-host configure.cpython 6,185,075 1 0 0 27,512 0 13,197 1,278 osh-cpython
26 no-host configure.cpython 2,227,225 0 0 0 27,520 0 13,235 1,129 osh-native
4 no-host configure.ocaml 410,409 0 0 0 5,120 0 1,947 179 bash
12 no-host configure.ocaml 390,921 0 0 0 5,112 0 1,903 141 dash
20 no-host configure.ocaml 640,228 0 0 0 5,112 0 1,854 190 osh-cpython
28 no-host configure.ocaml 413,277 0 0 0 5,120 0 1,932 161 osh-native
5 no-host configure.tcc 6,574 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,330 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,104,068 0 0 0 42,408 0 18,527 1,157 bash
11 no-host configure.util-linux 2,258,607 0 0 0 42,592 0 17,456 1,049 dash
19 no-host configure.util-linux 5,332,172 9 0 0 39,112 0 16,956 1,208 osh-cpython
27 no-host configure.util-linux 1,997,652 0 0 0 39,120 0 17,004 1,023 osh-native
6 no-host configure.yash 256,033 0 0 0 4,120 0 870 258 bash
14 no-host configure.yash 245,064 0 0 0 3,720 0 868 76 dash
22 no-host configure.yash 384,881 0 0 0 3,728 0 854 97 osh-cpython
30 no-host configure.yash 257,390 0 0 0 3,736 0 851 87 osh-native
0 no-host hello-world 154 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,696 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-527bdb69
dash dash-308ec8e6
osh-cpython osh-69770afe
osh-native osh-d54faa76
host label host id
no-host no-host-556df3ee