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 459 22 24.18 1.15
bin-true no-host 673 544 2,686 1,007 3.99 1.50
configure.cpython no-host 15,028 15,100 28,518 15,419 1.90 1.03
configure.ocaml no-host 3,814 3,763 4,642 3,839 1.22 1.01
configure.tcc no-host 47 41 192 49 4.09 1.04
configure.util-linux no-host 14,031 14,936 31,232 14,600 2.23 1.04
configure.yash no-host 1,816 1,776 2,471 1,858 1.36 1.02
hello-world no-host 1 1 49 3 32.65 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,524 1,102 23,038 3,197 9.13 1.27
bin-true no-host 105,293 66,440 884,096 245,752 8.40 2.33
configure.cpython no-host 2,213,046 2,247,975 6,156,058 2,229,481 2.78 1.01
configure.ocaml no-host 410,860 390,740 639,921 414,049 1.56 1.01
configure.tcc no-host 6,538 5,474 23,238 7,037 3.55 1.08
configure.util-linux no-host 2,106,210 2,255,520 5,327,968 1,995,654 2.53 0.95
configure.yash no-host 255,884 244,496 387,139 261,521 1.51 1.02
hello-world no-host 152 80 3,696 348 24.32 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.3 3.5 21.7 9.0 5.03 2.09
bin-true no-host 2.9 1.4 19.0 8.1 6.59 2.82
configure.cpython no-host 27.3 27.4 27.4 27.4 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.3 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.4 6.2 6.04 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 1,007 0 2 2.6 8.1 202,738 13,857 2,818 9,734 106,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,419 1 62 15.0 27.4 1,772,714 49,108 28,528 86,381 908,127 778,206 22,694 60 50,000 0
configure.util-linux no-host 14,600 3 62 21.3 30.1 2,703,546 44,172 65,812 109,643 1,320,681 1,273,222 27,391 41 131,624 1
configure.ocaml no-host 3,839 1 2 2.6 20.6 150,084 10,993 5,163 7,513 71,663 70,908 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,573 30,573 0 1,504 14,830 14,239 226 0 50,000 0
configure.yash no-host 1,858 1 2 2.6 24.2 142,957 10,576 6,510 6,320 72,211 64,426 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 11 9 4.3 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 459 407 55 21.7 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
1 no-host bin-true 673 502 201 2.9 bash
9 no-host bin-true 544 421 132 1.4 dash
17 no-host bin-true 2,686 1,806 1,144 19.0 osh-cpython
25 no-host bin-true 1,007 740 285 8.1 osh-native
2 no-host configure.cpython 15,028 9,051 6,380 27.3 bash
10 no-host configure.cpython 15,100 9,198 6,320 27.4 dash
18 no-host configure.cpython 28,518 17,629 12,724 27.4 osh-cpython
26 no-host configure.cpython 15,419 9,053 6,611 27.4 osh-native
4 no-host configure.ocaml 3,814 1,576 1,273 20.6 bash
12 no-host configure.ocaml 3,763 1,519 1,262 20.4 dash
20 no-host configure.ocaml 4,642 2,218 1,629 20.6 osh-cpython
28 no-host configure.ocaml 3,839 1,595 1,283 20.6 osh-native
5 no-host configure.tcc 47 34 14 19.4 bash
13 no-host configure.tcc 41 28 13 19.4 dash
21 no-host configure.tcc 192 142 53 19.3 osh-cpython
29 no-host configure.tcc 49 37 12 19.3 osh-native
3 no-host configure.util-linux 14,031 8,858 5,637 30.3 bash
11 no-host configure.util-linux 14,936 9,180 6,230 30.0 dash
19 no-host configure.util-linux 31,232 20,893 11,419 30.3 osh-cpython
27 no-host configure.util-linux 14,600 8,861 5,911 30.1 osh-native
6 no-host configure.yash 1,816 1,051 773 24.5 bash
14 no-host configure.yash 1,776 1,050 729 24.4 dash
22 no-host configure.yash 2,471 1,588 927 24.2 osh-cpython
30 no-host configure.yash 1,858 1,048 814 24.2 osh-native
0 no-host hello-world 1 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 41 8 17.4 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,524 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,038 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,293 0 0 0 8 0 1,988 108 bash
9 no-host bin-true 66,440 0 0 0 8 0 1,990 118 dash
17 no-host bin-true 884,096 0 0 0 8 0 1,997 165 osh-cpython
25 no-host bin-true 245,752 0 0 0 16 0 1,991 47 osh-native
2 no-host configure.cpython 2,213,046 0 0 0 32,928 0 14,542 959 bash
10 no-host configure.cpython 2,247,975 0 0 0 32,992 0 14,496 1,105 dash
18 no-host configure.cpython 6,156,058 1 0 0 27,512 0 13,267 1,234 osh-cpython
26 no-host configure.cpython 2,229,481 0 0 0 27,520 0 13,229 1,103 osh-native
4 no-host configure.ocaml 410,860 0 0 0 5,120 0 1,959 179 bash
12 no-host configure.ocaml 390,740 0 0 0 5,112 0 1,920 201 dash
20 no-host configure.ocaml 639,921 0 0 0 5,112 0 1,856 226 osh-cpython
28 no-host configure.ocaml 414,049 0 0 0 5,120 0 1,936 175 osh-native
5 no-host configure.tcc 6,538 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,238 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,037 0 0 0 104 0 46 1 osh-native
3 no-host configure.util-linux 2,106,210 1 0 0 42,400 0 18,738 1,011 bash
11 no-host configure.util-linux 2,255,520 1 0 0 42,584 0 17,446 1,152 dash
19 no-host configure.util-linux 5,327,968 16 0 0 39,112 0 16,973 1,329 osh-cpython
27 no-host configure.util-linux 1,995,654 0 0 0 39,120 0 16,989 1,079 osh-native
6 no-host configure.yash 255,884 0 0 0 4,120 0 869 86 bash
14 no-host configure.yash 244,496 0 0 0 3,720 0 872 98 dash
22 no-host configure.yash 387,139 0 0 0 3,728 0 855 99 osh-cpython
30 no-host configure.yash 261,521 0 0 0 3,736 0 850 85 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,696 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-38b47d3e
dash dash-308ec8e6
osh-cpython osh-ea9cbee8
osh-native osh-6fceec44
host label host id
no-host no-host-556df3ee