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 20 10 466 24 22.91 1.20
bin-true no-host 695 559 2,430 846 3.50 1.22
configure.cpython no-host 15,797 16,166 31,437 16,533 1.99 1.05
configure.ocaml no-host 4,059 4,003 4,895 4,169 1.21 1.03
configure.tcc no-host 50 42 199 62 4.01 1.26
configure.util-linux no-host 15,046 16,014 33,434 16,302 2.22 1.08
configure.yash no-host 1,967 1,878 2,588 2,043 1.32 1.04
hello-world no-host 2 1 49 3 30.70 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,518 1,122 23,203 3,205 9.21 1.27
bin-true no-host 105,282 66,433 750,112 128,188 7.12 1.22
configure.cpython no-host 2,219,705 2,250,772 6,135,720 2,226,140 2.76 1.00
configure.ocaml no-host 410,529 390,837 637,906 413,165 1.55 1.01
configure.tcc no-host 6,528 5,463 23,194 6,977 3.55 1.07
configure.util-linux no-host 2,101,140 2,267,871 5,340,964 2,015,979 2.54 0.96
configure.yash no-host 256,598 245,072 385,539 258,821 1.50 1.01
hello-world no-host 155 82 3,648 344 23.54 2.22

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.7 21.5 8.9 4.97 2.06
bin-true no-host 3.0 1.4 17.1 8.1 5.69 2.70
configure.cpython no-host 27.4 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 0.99 0.99
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.6 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 846 1 2 2.7 8.1 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 16,533 4 74 15.8 27.5 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 16,302 6 72 22.2 30.1 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 4,169 1 2 2.7 20.4 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 62 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 2,043 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.9 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 20 11 9 4.3 bash
15 no-host abuild-print-help 10 9 1 3.7 dash
23 no-host abuild-print-help 466 421 48 21.5 osh-cpython
31 no-host abuild-print-help 24 15 10 8.9 osh-native
1 no-host bin-true 695 501 219 3.0 bash
9 no-host bin-true 559 423 144 1.4 dash
17 no-host bin-true 2,430 1,529 1,145 17.1 osh-cpython
25 no-host bin-true 846 578 271 8.1 osh-native
2 no-host configure.cpython 15,797 9,465 6,706 27.4 bash
10 no-host configure.cpython 16,166 9,625 6,897 27.5 dash
18 no-host configure.cpython 31,437 18,904 14,427 27.4 osh-cpython
26 no-host configure.cpython 16,533 9,497 7,205 27.5 osh-native
4 no-host configure.ocaml 4,059 1,744 1,337 20.6 bash
12 no-host configure.ocaml 4,003 1,687 1,310 20.6 dash
20 no-host configure.ocaml 4,895 2,291 1,804 20.4 osh-cpython
28 no-host configure.ocaml 4,169 1,725 1,467 20.4 osh-native
5 no-host configure.tcc 50 33 17 19.3 bash
13 no-host configure.tcc 42 24 18 19.3 dash
21 no-host configure.tcc 199 152 50 19.4 osh-cpython
29 no-host configure.tcc 62 35 24 19.3 osh-native
3 no-host configure.util-linux 15,046 9,199 6,277 30.3 bash
11 no-host configure.util-linux 16,014 9,513 6,937 30.1 dash
19 no-host configure.util-linux 33,434 21,947 12,526 30.1 osh-cpython
27 no-host configure.util-linux 16,302 9,386 6,893 30.1 osh-native
6 no-host configure.yash 1,967 1,138 834 24.4 bash
14 no-host configure.yash 1,878 1,014 861 24.2 dash
22 no-host configure.yash 2,588 1,574 1,055 24.4 osh-cpython
30 no-host configure.yash 2,043 1,134 901 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 30 18 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,518 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,203 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 105,282 0 0 0 8 0 1,986 96 bash
9 no-host bin-true 66,433 0 0 0 8 0 1,977 47 dash
17 no-host bin-true 750,112 0 0 0 8 0 1,997 150 osh-cpython
25 no-host bin-true 128,188 0 0 0 16 0 1,988 110 osh-native
2 no-host configure.cpython 2,219,705 0 0 0 32,928 0 14,432 1,207 bash
10 no-host configure.cpython 2,250,772 1 0 0 32,992 0 14,604 1,026 dash
18 no-host configure.cpython 6,135,720 2 0 0 27,520 0 13,289 1,189 osh-cpython
26 no-host configure.cpython 2,226,140 0 0 0 27,520 0 13,228 979 osh-native
4 no-host configure.ocaml 410,529 0 0 0 5,120 0 1,947 169 bash
12 no-host configure.ocaml 390,837 0 0 0 5,112 0 1,919 153 dash
20 no-host configure.ocaml 637,906 0 0 0 5,112 0 1,854 179 osh-cpython
28 no-host configure.ocaml 413,165 0 0 0 5,120 0 1,930 174 osh-native
5 no-host configure.tcc 6,528 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,194 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,101,140 2 0 0 42,408 0 18,387 1,102 bash
11 no-host configure.util-linux 2,267,871 0 0 0 42,592 0 17,353 1,219 dash
19 no-host configure.util-linux 5,340,964 13 0 0 39,136 0 17,057 1,413 osh-cpython
27 no-host configure.util-linux 2,015,979 0 0 0 39,128 0 16,954 1,176 osh-native
6 no-host configure.yash 256,598 0 0 0 4,120 0 870 79 bash
14 no-host configure.yash 245,072 0 0 0 3,720 0 866 73 dash
22 no-host configure.yash 385,539 0 0 0 3,728 0 860 103 osh-cpython
30 no-host configure.yash 258,821 0 0 0 3,736 0 849 77 osh-native
0 no-host hello-world 155 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,648 0 0 0 8 0 7 9 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-a7577df9
dash dash-308ec8e6
osh-cpython osh-c4ae784a
osh-native osh-87d93b3c
host label host id
no-host no-host-e54d7702