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 465 23 24.54 1.19
bin-true no-host 676 544 2,228 817 3.29 1.21
configure.cpython no-host 15,096 15,243 28,838 15,337 1.91 1.02
configure.ocaml no-host 3,811 3,768 4,672 3,858 1.23 1.01
configure.tcc no-host 48 42 193 49 4.06 1.04
configure.util-linux no-host 14,036 15,009 31,368 14,550 2.23 1.04
configure.yash no-host 1,846 1,787 2,469 1,860 1.34 1.01
hello-world no-host 2 1 49 3 31.62 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,540 1,105 23,302 3,249 9.17 1.28
bin-true no-host 105,343 66,509 743,927 127,147 7.06 1.21
configure.cpython no-host 2,223,551 2,245,006 6,159,502 2,225,346 2.77 1.00
configure.ocaml no-host 410,838 390,819 638,635 413,118 1.55 1.01
configure.tcc no-host 6,541 5,470 23,286 6,977 3.56 1.07
configure.util-linux no-host 2,100,803 2,253,224 5,301,477 2,004,228 2.52 0.95
configure.yash no-host 256,197 244,764 385,303 258,448 1.50 1.01
hello-world no-host 154 84 3,723 352 24.18 2.29

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.4 21.9 8.9 5.06 2.06
bin-true no-host 2.9 1.6 17.4 7.9 6.05 2.73
configure.cpython no-host 27.3 27.4 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.4 19.4 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.4 30.1 30.0 1.00 0.99
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 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,727 3,727 0 681 1,877 1,169 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.9 154,692 12,992 2,799 9,731 78,346 66,615 5,012 3 50,000 0
configure.cpython no-host 15,337 1 63 15.0 27.4 1,772,668 49,197 28,508 86,378 908,098 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,550 3 62 21.3 30.0 2,703,404 44,766 65,792 109,640 1,320,596 1,273,168 49,081 41 131,584 1
configure.ocaml no-host 3,858 1 2 2.6 20.6 150,038 11,045 5,138 7,510 71,634 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,860 1 2 2.6 24.4 139,695 7,964 6,600 6,317 70,306 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,270 64,455 42,663 4,552 54,546 57,172 478 3 85,326 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.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 465 427 42 21.9 osh-cpython
31 no-host abuild-print-help 23 15 8 8.9 osh-native
1 no-host bin-true 676 500 206 2.9 bash
9 no-host bin-true 544 422 130 1.6 dash
17 no-host bin-true 2,228 1,414 1,070 17.4 osh-cpython
25 no-host bin-true 817 570 261 7.9 osh-native
2 no-host configure.cpython 15,096 9,068 6,421 27.3 bash
10 no-host configure.cpython 15,243 9,014 6,654 27.4 dash
18 no-host configure.cpython 28,838 17,641 13,072 27.4 osh-cpython
26 no-host configure.cpython 15,337 9,114 6,475 27.4 osh-native
4 no-host configure.ocaml 3,811 1,626 1,226 20.6 bash
12 no-host configure.ocaml 3,768 1,621 1,166 20.6 dash
20 no-host configure.ocaml 4,672 2,322 1,553 20.6 osh-cpython
28 no-host configure.ocaml 3,858 1,643 1,253 20.6 osh-native
5 no-host configure.tcc 48 32 16 19.4 bash
13 no-host configure.tcc 42 32 10 19.4 dash
21 no-host configure.tcc 193 126 70 19.3 osh-cpython
29 no-host configure.tcc 49 31 19 19.3 osh-native
3 no-host configure.util-linux 14,036 8,711 5,798 30.3 bash
11 no-host configure.util-linux 15,009 9,211 6,301 30.4 dash
19 no-host configure.util-linux 31,368 20,960 11,509 30.1 osh-cpython
27 no-host configure.util-linux 14,550 8,630 6,094 30.0 osh-native
6 no-host configure.yash 1,846 1,052 803 24.2 bash
14 no-host configure.yash 1,787 1,021 768 24.2 dash
22 no-host configure.yash 2,469 1,493 1,018 24.4 osh-cpython
30 no-host configure.yash 1,860 1,074 789 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.4 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,540 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,302 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,249 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,343 0 0 0 8 0 1,993 173 bash
9 no-host bin-true 66,509 0 0 0 8 0 1,988 104 dash
17 no-host bin-true 743,927 0 0 0 8 0 1,996 155 osh-cpython
25 no-host bin-true 127,147 0 0 0 16 0 1,989 95 osh-native
2 no-host configure.cpython 2,223,551 0 0 0 32,928 0 14,508 1,106 bash
10 no-host configure.cpython 2,245,006 0 0 0 32,992 0 14,656 1,211 dash
18 no-host configure.cpython 6,159,502 0 0 0 27,512 0 13,330 1,299 osh-cpython
26 no-host configure.cpython 2,225,346 0 0 0 27,520 0 13,231 987 osh-native
4 no-host configure.ocaml 410,838 0 0 0 5,120 0 1,946 165 bash
12 no-host configure.ocaml 390,819 0 0 0 5,112 0 1,878 144 dash
20 no-host configure.ocaml 638,635 0 0 0 5,112 0 1,856 166 osh-cpython
28 no-host configure.ocaml 413,118 0 0 0 5,120 0 1,924 190 osh-native
5 no-host configure.tcc 6,541 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,286 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,803 0 0 0 42,408 0 18,474 1,085 bash
11 no-host configure.util-linux 2,253,224 0 0 0 42,592 0 17,472 1,118 dash
19 no-host configure.util-linux 5,301,477 17 0 0 39,112 0 17,134 1,268 osh-cpython
27 no-host configure.util-linux 2,004,228 2 0 0 39,128 0 17,072 1,105 osh-native
6 no-host configure.yash 256,197 0 0 0 4,120 0 871 71 bash
14 no-host configure.yash 244,764 0 0 0 3,720 0 870 87 dash
22 no-host configure.yash 385,303 0 0 0 3,728 0 859 103 osh-cpython
30 no-host configure.yash 258,448 0 0 0 3,736 0 851 78 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,723 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-0bf52972
dash dash-308ec8e6
osh-cpython osh-b575a740
osh-native osh-4ece376c
host label host id
no-host no-host-556df3ee