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 445 22 23.48 1.16
bin-true no-host 672 539 2,248 813 3.35 1.21
configure.cpython no-host 14,678 14,861 28,120 14,907 1.92 1.02
configure.ocaml no-host 3,748 3,700 4,543 3,783 1.21 1.01
configure.tcc no-host 47 41 187 52 3.97 1.11
configure.util-linux no-host 13,847 14,637 30,567 14,114 2.21 1.02
configure.yash no-host 1,808 1,742 2,395 1,801 1.32 1.00
hello-world no-host 1 1 51 3 34.49 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,537 1,100 22,960 3,176 9.05 1.25
bin-true no-host 104,350 66,434 760,877 128,199 7.29 1.23
configure.cpython no-host 2,215,760 2,246,101 6,188,378 2,221,392 2.79 1.00
configure.ocaml no-host 410,635 391,319 639,980 413,265 1.56 1.01
configure.tcc no-host 6,566 5,509 23,304 6,975 3.55 1.06
configure.util-linux no-host 2,111,899 2,260,257 5,324,115 2,001,339 2.52 0.95
configure.yash no-host 255,757 245,002 384,212 257,613 1.50 1.01
hello-world no-host 153 80 3,696 347 24.16 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.2 3.4 21.6 9.0 5.15 2.16
bin-true no-host 3.0 1.4 17.6 8.0 5.82 2.65
configure.cpython no-host 27.3 27.5 27.5 27.3 1.01 1.00
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.0 30.1 30.3 30.1 1.01 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 0.99 1.00
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 813 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 14,907 1 58 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,114 3 58 21.3 30.1 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,783 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 52 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,801 1 2 2.6 24.4 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 12 8 4.2 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 445 417 31 21.6 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
1 no-host bin-true 672 493 210 3.0 bash
9 no-host bin-true 539 410 137 1.4 dash
17 no-host bin-true 2,248 1,499 1,009 17.6 osh-cpython
25 no-host bin-true 813 596 230 8.0 osh-native
2 no-host configure.cpython 14,678 8,990 6,080 27.3 bash
10 no-host configure.cpython 14,861 8,920 6,361 27.5 dash
18 no-host configure.cpython 28,120 17,210 12,737 27.5 osh-cpython
26 no-host configure.cpython 14,907 8,939 6,229 27.3 osh-native
4 no-host configure.ocaml 3,748 1,619 1,168 20.4 bash
12 no-host configure.ocaml 3,700 1,568 1,152 20.4 dash
20 no-host configure.ocaml 4,543 2,074 1,668 20.6 osh-cpython
28 no-host configure.ocaml 3,783 1,608 1,213 20.6 osh-native
5 no-host configure.tcc 47 39 9 19.4 bash
13 no-host configure.tcc 41 27 14 19.3 dash
21 no-host configure.tcc 187 138 52 19.3 osh-cpython
29 no-host configure.tcc 52 42 11 19.4 osh-native
3 no-host configure.util-linux 13,847 8,761 5,565 30.0 bash
11 no-host configure.util-linux 14,637 9,103 6,027 30.1 dash
19 no-host configure.util-linux 30,567 20,460 11,172 30.3 osh-cpython
27 no-host configure.util-linux 14,114 8,512 5,804 30.1 osh-native
6 no-host configure.yash 1,808 1,063 751 24.4 bash
14 no-host configure.yash 1,742 1,060 686 24.2 dash
22 no-host configure.yash 2,395 1,577 860 24.2 osh-cpython
30 no-host configure.yash 1,801 1,037 767 24.4 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 51 39 11 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,537 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 22,960 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 104,350 0 0 0 8 0 1,986 59 bash
9 no-host bin-true 66,434 0 0 0 8 0 1,989 40 dash
17 no-host bin-true 760,877 0 0 0 8 0 1,990 100 osh-cpython
25 no-host bin-true 128,199 0 0 0 16 0 1,985 54 osh-native
2 no-host configure.cpython 2,215,760 0 0 0 32,928 0 14,495 1,253 bash
10 no-host configure.cpython 2,246,101 0 0 0 32,992 0 14,652 1,095 dash
18 no-host configure.cpython 6,188,378 2 0 0 27,512 0 13,272 1,154 osh-cpython
26 no-host configure.cpython 2,221,392 0 0 0 27,520 0 13,222 893 osh-native
4 no-host configure.ocaml 410,635 0 0 0 5,120 0 1,940 156 bash
12 no-host configure.ocaml 391,319 0 0 0 5,112 0 1,927 163 dash
20 no-host configure.ocaml 639,980 1 0 0 5,112 0 1,844 193 osh-cpython
28 no-host configure.ocaml 413,265 0 0 0 5,120 0 1,927 169 osh-native
5 no-host configure.tcc 6,566 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,509 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,304 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,111,899 0 0 0 42,400 0 18,518 1,003 bash
11 no-host configure.util-linux 2,260,257 1 0 0 42,592 0 17,501 1,064 dash
19 no-host configure.util-linux 5,324,115 8 0 0 39,112 0 16,942 1,113 osh-cpython
27 no-host configure.util-linux 2,001,339 1 0 0 39,120 0 16,996 1,095 osh-native
6 no-host configure.yash 255,757 0 0 0 4,120 0 875 97 bash
14 no-host configure.yash 245,002 0 0 0 3,720 0 871 95 dash
22 no-host configure.yash 384,212 0 0 0 3,728 0 853 104 osh-cpython
30 no-host configure.yash 257,613 0 0 0 3,736 0 847 90 osh-native
0 no-host hello-world 153 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 147 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-0218f72b
dash dash-308ec8e6
osh-cpython osh-717cd86b
osh-native osh-d456765e
host label host id
no-host no-host-556df3ee