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 9 450 22 23.33 1.14
bin-true no-host 672 544 2,253 813 3.35 1.21
configure.cpython no-host 15,182 15,393 28,656 15,175 1.89 1.00
configure.ocaml no-host 3,881 3,769 4,594 3,804 1.18 0.98
configure.tcc no-host 48 42 190 49 3.95 1.02
configure.util-linux no-host 14,128 15,224 31,141 14,321 2.20 1.01
configure.yash no-host 1,847 1,799 2,421 1,824 1.31 0.99
hello-world no-host 2 1 48 3 31.14 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,524 1,114 23,072 3,225 9.14 1.28
bin-true no-host 104,390 66,399 741,993 128,602 7.11 1.23
configure.cpython no-host 2,221,828 2,240,381 6,062,290 2,239,718 2.73 1.01
configure.ocaml no-host 410,653 391,563 633,708 413,770 1.54 1.01
configure.tcc no-host 6,529 5,492 22,980 6,973 3.52 1.07
configure.util-linux no-host 2,102,938 2,260,968 5,296,705 2,019,610 2.52 0.96
configure.yash no-host 256,811 244,616 383,866 259,437 1.49 1.01
hello-world no-host 155 82 3,626 342 23.39 2.21

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.6 8.9 5.00 2.06
bin-true no-host 3.0 1.6 17.2 8.0 5.70 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.0 29.9 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 1.00 1.01
hello-world no-host 2.9 1.4 17.0 6.0 5.91 2.09

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.2 6.0 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 813 1 2 2.7 8.0 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,175 1 59 15.9 27.4 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,321 3 57 22.2 30.0 2,695,085 29,056 65,774 126,121 1,312,366 1,256,598 49,081 41 131,548 1
configure.ocaml no-host 3,804 1 2 2.7 20.4 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 24.4 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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 16 4 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 450 406 47 21.6 osh-cpython
31 no-host abuild-print-help 22 11 11 8.9 osh-native
1 no-host bin-true 672 494 207 3.0 bash
9 no-host bin-true 544 407 148 1.6 dash
17 no-host bin-true 2,253 1,475 1,028 17.2 osh-cpython
25 no-host bin-true 813 577 252 8.0 osh-native
2 no-host configure.cpython 15,182 9,106 6,474 27.4 bash
10 no-host configure.cpython 15,393 9,288 6,533 27.4 dash
18 no-host configure.cpython 28,656 17,709 12,756 27.4 osh-cpython
26 no-host configure.cpython 15,175 8,915 6,523 27.4 osh-native
4 no-host configure.ocaml 3,881 1,703 1,212 20.6 bash
12 no-host configure.ocaml 3,769 1,637 1,153 20.6 dash
20 no-host configure.ocaml 4,594 2,226 1,564 20.6 osh-cpython
28 no-host configure.ocaml 3,804 1,582 1,260 20.4 osh-native
5 no-host configure.tcc 48 28 21 19.3 bash
13 no-host configure.tcc 42 33 9 19.4 dash
21 no-host configure.tcc 190 150 44 19.3 osh-cpython
29 no-host configure.tcc 49 36 14 19.3 osh-native
3 no-host configure.util-linux 14,128 8,760 5,841 30.0 bash
11 no-host configure.util-linux 15,224 9,274 6,442 30.0 dash
19 no-host configure.util-linux 31,141 20,712 11,483 29.9 osh-cpython
27 no-host configure.util-linux 14,321 8,545 5,974 30.0 osh-native
6 no-host configure.yash 1,847 1,081 775 24.2 bash
14 no-host configure.yash 1,799 1,065 737 24.2 dash
22 no-host configure.yash 2,421 1,487 975 24.2 osh-cpython
30 no-host configure.yash 1,824 1,037 790 24.4 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 48 24 23 17.0 osh-cpython
24 no-host hello-world 3 3 0 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,524 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,114 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,072 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,225 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,390 0 0 0 8 0 1,993 214 bash
9 no-host bin-true 66,399 0 0 0 8 0 1,981 57 dash
17 no-host bin-true 741,993 0 0 0 8 0 1,999 591 osh-cpython
25 no-host bin-true 128,602 0 0 0 16 0 1,992 86 osh-native
2 no-host configure.cpython 2,221,828 0 0 0 32,928 0 14,598 1,079 bash
10 no-host configure.cpython 2,240,381 0 0 0 32,992 0 14,727 938 dash
18 no-host configure.cpython 6,062,290 0 0 0 27,512 0 13,387 1,108 osh-cpython
26 no-host configure.cpython 2,239,718 0 0 0 27,520 0 13,404 1,023 osh-native
4 no-host configure.ocaml 410,653 0 0 0 5,120 0 1,954 170 bash
12 no-host configure.ocaml 391,563 0 0 0 5,112 0 1,938 140 dash
20 no-host configure.ocaml 633,708 0 0 0 5,112 0 1,853 170 osh-cpython
28 no-host configure.ocaml 413,770 0 0 0 5,120 0 1,927 176 osh-native
5 no-host configure.tcc 6,529 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,492 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 22,980 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,973 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,102,938 0 0 0 42,400 0 18,529 1,030 bash
11 no-host configure.util-linux 2,260,968 2 0 0 42,584 0 17,401 1,326 dash
19 no-host configure.util-linux 5,296,705 11 0 0 39,112 0 17,071 1,397 osh-cpython
27 no-host configure.util-linux 2,019,610 1 0 0 39,120 0 16,990 961 osh-native
6 no-host configure.yash 256,811 0 0 0 4,120 0 870 80 bash
14 no-host configure.yash 244,616 0 0 0 3,720 0 868 62 dash
22 no-host configure.yash 383,866 0 0 0 3,728 0 853 123 osh-cpython
30 no-host configure.yash 259,437 0 0 0 3,736 0 854 143 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,626 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4ebdcaaa
dash dash-308ec8e6
osh-cpython osh-9f934555
osh-native osh-74391fee
host label host id
no-host no-host-f581f4dd