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 455 23 23.58 1.17
bin-true no-host 681 546 2,216 815 3.26 1.20
configure.cpython no-host 15,014 15,118 28,525 15,286 1.90 1.02
configure.ocaml no-host 3,778 3,737 4,647 3,854 1.23 1.02
configure.tcc no-host 48 42 194 50 4.04 1.03
configure.util-linux no-host 13,995 14,865 31,217 14,560 2.23 1.04
configure.yash no-host 1,855 1,770 2,482 1,842 1.34 0.99
hello-world no-host 1 1 48 3 32.81 1.97

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,542 1,130 23,412 3,218 9.21 1.27
bin-true no-host 107,369 66,428 746,598 128,208 6.95 1.19
configure.cpython no-host 2,227,977 2,244,530 6,141,931 2,229,168 2.76 1.00
configure.ocaml no-host 410,832 390,827 639,409 413,675 1.56 1.01
configure.tcc no-host 6,554 5,478 23,171 6,992 3.54 1.07
configure.util-linux no-host 2,091,358 2,260,027 5,331,697 2,021,806 2.55 0.97
configure.yash no-host 256,130 244,998 385,349 258,978 1.50 1.01
hello-world no-host 155 83 3,689 351 23.80 2.26

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.5 3.4 21.9 8.7 4.91 1.94
bin-true no-host 3.0 1.6 17.4 7.9 5.78 2.61
configure.cpython no-host 27.4 27.1 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.4 20.4 1.00 1.00
configure.tcc no-host 19.4 19.4 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.5 0.99 1.01
hello-world no-host 2.9 1.6 17.4 6.2 6.05 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,726 3,726 0 684 1,876 1,166 2 0 50,000 0
bin-true no-host 815 1 2 2.7 7.9 154,691 12,991 2,798 11,737 78,345 64,609 5,012 3 50,000 0
configure.cpython no-host 15,286 1 63 15.8 27.5 1,772,667 49,196 28,507 101,770 908,097 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,560 3 62 22.2 30.1 2,703,403 44,765 65,791 126,121 1,320,595 1,256,687 49,081 41 131,582 1
configure.ocaml no-host 3,854 1 2 2.7 20.4 150,037 11,044 5,137 8,602 71,633 69,802 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,526 30,526 0 1,599 14,800 14,127 350 0 50,000 0
configure.yash no-host 1,842 1 2 2.6 24.5 139,694 7,963 6,599 7,554 70,305 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,269 64,454 42,662 4,610 54,545 57,114 478 3 85,324 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 7 4.5 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 455 397 62 21.9 osh-cpython
31 no-host abuild-print-help 23 13 10 8.7 osh-native
1 no-host bin-true 681 489 221 3.0 bash
9 no-host bin-true 546 424 132 1.6 dash
17 no-host bin-true 2,216 1,505 967 17.4 osh-cpython
25 no-host bin-true 815 592 241 7.9 osh-native
2 no-host configure.cpython 15,014 8,890 6,529 27.4 bash
10 no-host configure.cpython 15,118 9,061 6,477 27.1 dash
18 no-host configure.cpython 28,525 17,127 13,236 27.3 osh-cpython
26 no-host configure.cpython 15,286 9,108 6,454 27.5 osh-native
4 no-host configure.ocaml 3,778 1,579 1,239 20.4 bash
12 no-host configure.ocaml 3,737 1,536 1,219 20.4 dash
20 no-host configure.ocaml 4,647 2,298 1,557 20.4 osh-cpython
28 no-host configure.ocaml 3,854 1,557 1,337 20.4 osh-native
5 no-host configure.tcc 48 35 14 19.4 bash
13 no-host configure.tcc 42 27 15 19.4 dash
21 no-host configure.tcc 194 134 63 19.4 osh-cpython
29 no-host configure.tcc 50 42 8 19.3 osh-native
3 no-host configure.util-linux 13,995 8,891 5,572 30.0 bash
11 no-host configure.util-linux 14,865 9,181 6,182 30.1 dash
19 no-host configure.util-linux 31,217 20,777 11,519 30.0 osh-cpython
27 no-host configure.util-linux 14,560 8,696 6,066 30.1 osh-native
6 no-host configure.yash 1,855 1,087 759 24.4 bash
14 no-host configure.yash 1,770 1,023 750 24.2 dash
22 no-host configure.yash 2,482 1,562 963 24.2 osh-cpython
30 no-host configure.yash 1,842 1,061 786 24.5 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 28 20 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,542 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,412 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,218 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,369 0 0 0 8 0 1,989 103 bash
9 no-host bin-true 66,428 0 0 0 8 0 1,990 93 dash
17 no-host bin-true 746,598 0 0 0 8 0 2,003 112 osh-cpython
25 no-host bin-true 128,208 0 0 0 16 0 1,993 135 osh-native
2 no-host configure.cpython 2,227,977 2 0 0 32,928 0 14,519 1,208 bash
10 no-host configure.cpython 2,244,530 0 0 0 32,992 0 14,654 1,143 dash
18 no-host configure.cpython 6,141,931 2 0 0 27,512 0 13,268 1,195 osh-cpython
26 no-host configure.cpython 2,229,168 0 0 0 27,520 0 13,205 1,053 osh-native
4 no-host configure.ocaml 410,832 0 0 0 5,120 0 1,948 143 bash
12 no-host configure.ocaml 390,827 0 0 0 5,112 0 1,875 146 dash
20 no-host configure.ocaml 639,409 0 0 0 5,112 0 1,856 202 osh-cpython
28 no-host configure.ocaml 413,675 0 0 0 5,120 0 1,936 156 osh-native
5 no-host configure.tcc 6,554 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,171 0 0 0 96 0 53 19 osh-cpython
29 no-host configure.tcc 6,992 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,091,358 0 0 0 42,400 0 18,719 1,249 bash
11 no-host configure.util-linux 2,260,027 1 0 0 42,584 0 17,520 1,264 dash
19 no-host configure.util-linux 5,331,697 8 0 0 39,112 0 17,093 1,198 osh-cpython
27 no-host configure.util-linux 2,021,806 0 0 0 39,128 0 17,015 1,036 osh-native
6 no-host configure.yash 256,130 0 0 0 4,120 0 885 70 bash
14 no-host configure.yash 244,998 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 385,349 0 0 0 3,728 0 862 90 osh-cpython
30 no-host configure.yash 258,978 0 0 0 3,736 0 850 76 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,689 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-183d5076
dash dash-308ec8e6
osh-cpython osh-08414c73
osh-native osh-fc3dd5f7
host label host id
no-host no-host-1c33b689