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 451 22 23.64 1.13
bin-true no-host 684 544 2,259 813 3.30 1.19
configure.cpython no-host 14,855 15,051 28,519 15,197 1.92 1.02
configure.ocaml no-host 3,764 3,708 4,611 3,807 1.23 1.01
configure.tcc no-host 48 42 190 48 3.97 1.01
configure.util-linux no-host 13,928 14,801 31,117 14,276 2.23 1.02
configure.yash no-host 1,833 1,753 2,437 1,832 1.33 1.00
hello-world no-host 1 1 48 3 32.23 1.95

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,096 22,951 3,171 9.05 1.25
bin-true no-host 107,373 66,414 760,846 128,153 7.09 1.19
configure.cpython no-host 2,215,834 2,247,793 6,185,389 2,234,427 2.79 1.01
configure.ocaml no-host 410,874 390,878 640,342 413,469 1.56 1.01
configure.tcc no-host 6,569 5,472 23,292 6,999 3.55 1.07
configure.util-linux no-host 2,106,453 2,258,598 5,331,619 1,993,860 2.53 0.95
configure.yash no-host 256,579 244,746 385,196 256,448 1.50 1.00
hello-world no-host 152 81 3,698 347 24.33 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 2.9 1.4 17.4 8.0 6.04 2.77
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.0 6.33 2.19

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.0 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 15,197 2 59 15.0 27.4 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,276 3 58 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,807 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 48 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,832 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 14 5 4.3 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 451 397 57 21.7 osh-cpython
31 no-host abuild-print-help 22 13 9 9.0 osh-native
1 no-host bin-true 684 521 192 2.9 bash
9 no-host bin-true 544 416 137 1.4 dash
17 no-host bin-true 2,259 1,450 1,073 17.4 osh-cpython
25 no-host bin-true 813 587 241 8.0 osh-native
2 no-host configure.cpython 14,855 8,948 6,306 27.4 bash
10 no-host configure.cpython 15,051 9,068 6,409 27.3 dash
18 no-host configure.cpython 28,519 17,417 12,969 27.4 osh-cpython
26 no-host configure.cpython 15,197 9,045 6,417 27.4 osh-native
4 no-host configure.ocaml 3,764 1,605 1,200 20.6 bash
12 no-host configure.ocaml 3,708 1,533 1,194 20.6 dash
20 no-host configure.ocaml 4,611 2,313 1,508 20.6 osh-cpython
28 no-host configure.ocaml 3,807 1,570 1,275 20.6 osh-native
5 no-host configure.tcc 48 27 22 19.3 bash
13 no-host configure.tcc 42 29 13 19.3 dash
21 no-host configure.tcc 190 143 50 19.3 osh-cpython
29 no-host configure.tcc 48 18 31 19.3 osh-native
3 no-host configure.util-linux 13,928 8,842 5,558 30.1 bash
11 no-host configure.util-linux 14,801 8,998 6,282 30.0 dash
19 no-host configure.util-linux 31,117 20,740 11,470 30.3 osh-cpython
27 no-host configure.util-linux 14,276 8,699 5,780 30.3 osh-native
6 no-host configure.yash 1,833 1,115 720 24.4 bash
14 no-host configure.yash 1,753 972 782 24.2 dash
22 no-host configure.yash 2,437 1,422 1,057 24.2 osh-cpython
30 no-host configure.yash 1,832 1,012 824 24.4 osh-native
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 36 12 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.0 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 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,951 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 107,373 0 0 0 8 0 1,991 66 bash
9 no-host bin-true 66,414 0 0 0 8 0 1,992 35 dash
17 no-host bin-true 760,846 0 0 0 8 0 1,996 188 osh-cpython
25 no-host bin-true 128,153 0 0 0 16 0 1,988 54 osh-native
2 no-host configure.cpython 2,215,834 0 0 0 32,928 0 14,525 1,069 bash
10 no-host configure.cpython 2,247,793 0 0 0 32,992 0 14,676 1,150 dash
18 no-host configure.cpython 6,185,389 1 0 0 27,512 0 13,266 1,210 osh-cpython
26 no-host configure.cpython 2,234,427 0 0 0 27,520 0 13,223 1,040 osh-native
4 no-host configure.ocaml 410,874 0 0 0 5,120 0 1,951 177 bash
12 no-host configure.ocaml 390,878 0 0 0 5,112 0 1,921 151 dash
20 no-host configure.ocaml 640,342 1 0 0 5,112 0 1,857 167 osh-cpython
28 no-host configure.ocaml 413,469 0 0 0 5,120 0 1,921 180 osh-native
5 no-host configure.tcc 6,569 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,472 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,292 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,106,453 1 0 0 42,400 0 18,506 1,223 bash
11 no-host configure.util-linux 2,258,598 0 0 0 42,584 0 17,482 1,019 dash
19 no-host configure.util-linux 5,331,619 12 0 0 39,112 0 16,959 1,267 osh-cpython
27 no-host configure.util-linux 1,993,860 0 0 0 39,120 0 16,954 1,192 osh-native
6 no-host configure.yash 256,579 0 0 0 4,120 0 880 83 bash
14 no-host configure.yash 244,746 0 0 0 3,720 0 869 96 dash
22 no-host configure.yash 385,196 0 0 0 3,728 0 854 244 osh-cpython
30 no-host configure.yash 256,448 0 0 0 3,736 0 847 81 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,698 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-42be32cc
dash dash-308ec8e6
osh-cpython osh-7b73ef4e
osh-native osh-66b14551
host label host id
no-host no-host-556df3ee