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 466 23 24.30 1.19
bin-true no-host 687 544 2,340 828 3.41 1.21
configure.cpython no-host 15,805 15,821 30,159 15,835 1.91 1.00
configure.ocaml no-host 3,934 3,899 4,791 3,947 1.22 1.00
configure.tcc no-host 49 43 198 51 4.05 1.03
configure.util-linux no-host 14,599 15,456 32,942 14,913 2.26 1.02
configure.yash no-host 1,896 1,909 2,541 1,886 1.34 0.99
hello-world no-host 2 1 51 3 32.61 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,513 1,096 22,777 3,202 9.06 1.27
bin-true no-host 105,248 68,460 756,662 127,187 7.19 1.21
configure.cpython no-host 2,223,579 2,240,853 6,159,543 2,218,580 2.77 1.00
configure.ocaml no-host 410,362 390,769 639,632 412,997 1.56 1.01
configure.tcc no-host 6,552 5,488 23,276 6,988 3.55 1.07
configure.util-linux no-host 2,102,149 2,263,366 5,312,717 1,993,991 2.53 0.95
configure.yash no-host 256,651 244,032 383,233 258,541 1.49 1.01
hello-world no-host 154 78 3,693 346 23.98 2.25

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.9 9.0 5.06 2.09
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.5 27.5 28.4 1.00 1.04
configure.ocaml no-host 20.6 20.6 20.4 20.4 0.99 0.99
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.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.1 1.00 0.99
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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 828 1 2 2.6 8.0 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,835 1 67 15.0 28.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,913 3 66 21.3 30.3 2,703,426 44,785 65,811 109,643 1,320,611 1,273,172 49,081 41 131,622 1
configure.ocaml no-host 3,947 1 2 2.6 20.4 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,886 1 2 2.6 24.1 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 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 6 4.3 bash
15 no-host abuild-print-help 10 4 5 3.5 dash
23 no-host abuild-print-help 466 428 42 21.9 osh-cpython
31 no-host abuild-print-help 23 13 11 9.0 osh-native
1 no-host bin-true 687 504 218 3.0 bash
9 no-host bin-true 544 424 133 1.4 dash
17 no-host bin-true 2,340 1,486 1,135 17.4 osh-cpython
25 no-host bin-true 828 576 269 8.0 osh-native
2 no-host configure.cpython 15,805 9,437 6,777 27.4 bash
10 no-host configure.cpython 15,821 9,398 6,843 27.5 dash
18 no-host configure.cpython 30,159 18,304 13,832 27.5 osh-cpython
26 no-host configure.cpython 15,835 9,407 6,696 28.4 osh-native
4 no-host configure.ocaml 3,934 1,708 1,265 20.6 bash
12 no-host configure.ocaml 3,899 1,600 1,319 20.6 dash
20 no-host configure.ocaml 4,791 2,282 1,722 20.4 osh-cpython
28 no-host configure.ocaml 3,947 1,714 1,274 20.4 osh-native
5 no-host configure.tcc 49 34 15 19.4 bash
13 no-host configure.tcc 43 30 14 19.3 dash
21 no-host configure.tcc 198 146 55 19.3 osh-cpython
29 no-host configure.tcc 51 28 23 19.4 osh-native
3 no-host configure.util-linux 14,599 9,211 5,871 30.1 bash
11 no-host configure.util-linux 15,456 9,466 6,479 30.3 dash
19 no-host configure.util-linux 32,942 21,987 12,103 30.1 osh-cpython
27 no-host configure.util-linux 14,913 8,878 6,247 30.3 osh-native
6 no-host configure.yash 1,896 1,109 795 24.4 bash
14 no-host configure.yash 1,909 1,076 836 24.4 dash
22 no-host configure.yash 2,541 1,608 979 24.4 osh-cpython
30 no-host configure.yash 1,886 1,086 804 24.1 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 20 31 17.2 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,513 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,777 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 38 1 osh-native
1 no-host bin-true 105,248 0 0 0 8 0 1,993 53 bash
9 no-host bin-true 68,460 0 0 0 8 0 1,984 92 dash
17 no-host bin-true 756,662 0 0 0 8 0 2,001 197 osh-cpython
25 no-host bin-true 127,187 0 0 0 16 0 1,992 210 osh-native
2 no-host configure.cpython 2,223,579 0 0 0 32,928 0 14,529 1,163 bash
10 no-host configure.cpython 2,240,853 0 0 0 32,992 0 14,993 1,512 dash
18 no-host configure.cpython 6,159,543 2 0 0 27,512 0 13,271 1,258 osh-cpython
26 no-host configure.cpython 2,218,580 0 0 0 27,520 0 13,144 1,018 osh-native
4 no-host configure.ocaml 410,362 0 0 0 5,120 0 1,957 192 bash
12 no-host configure.ocaml 390,769 0 0 0 5,112 0 1,884 142 dash
20 no-host configure.ocaml 639,632 0 0 0 5,112 0 1,857 218 osh-cpython
28 no-host configure.ocaml 412,997 0 0 0 5,120 0 1,934 154 osh-native
5 no-host configure.tcc 6,552 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,276 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,988 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,102,149 0 0 0 42,400 0 18,553 1,036 bash
11 no-host configure.util-linux 2,263,366 0 0 0 42,584 0 18,074 1,726 dash
19 no-host configure.util-linux 5,312,717 5 0 0 39,152 0 16,965 1,265 osh-cpython
27 no-host configure.util-linux 1,993,991 1 0 0 39,128 0 17,049 1,079 osh-native
6 no-host configure.yash 256,651 0 0 0 4,120 0 869 79 bash
14 no-host configure.yash 244,032 0 0 0 3,720 0 869 85 dash
22 no-host configure.yash 383,233 0 0 0 3,728 0 854 119 osh-cpython
30 no-host configure.yash 258,541 0 0 0 3,736 0 846 96 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,693 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7629aad6
dash dash-308ec8e6
osh-cpython osh-0fabe158
osh-native osh-72affc77
host label host id
no-host no-host-556df3ee