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 453 23 23.97 1.21
bin-true no-host 669 540 2,207 813 3.30 1.22
configure.cpython no-host 14,798 14,904 28,222 15,093 1.91 1.02
configure.ocaml no-host 3,758 3,705 4,571 3,785 1.22 1.01
configure.tcc no-host 47 41 190 48 4.07 1.03
configure.util-linux no-host 13,869 14,679 30,803 14,235 2.22 1.03
configure.yash no-host 1,813 1,749 2,416 1,809 1.33 1.00
hello-world no-host 1 1 47 3 31.92 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,508 1,092 23,306 3,217 9.29 1.28
bin-true no-host 105,336 65,411 755,115 126,138 7.17 1.20
configure.cpython no-host 2,220,518 2,242,577 6,144,591 2,232,494 2.77 1.01
configure.ocaml no-host 410,309 390,434 638,202 413,715 1.56 1.01
configure.tcc no-host 6,551 5,487 23,197 7,000 3.54 1.07
configure.util-linux no-host 2,098,251 2,259,606 5,340,985 2,009,675 2.55 0.96
configure.yash no-host 256,038 245,137 385,306 258,504 1.50 1.01
hello-world no-host 153 82 3,657 348 23.90 2.27

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.5 8.8 4.97 2.03
bin-true no-host 2.9 1.6 17.2 7.9 5.95 2.73
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.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.0 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.4 30.0 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.2 6.3 5.95 2.18

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.3 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 813 1 2 2.7 7.9 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,093 1 60 15.8 27.5 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,235 2 58 22.2 30.3 2,703,267 44,765 65,811 126,121 1,320,494 1,256,652 49,081 41 131,622 1
configure.ocaml no-host 3,785 1 2 2.7 20.4 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,809 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,265 64,454 42,662 4,610 54,543 57,112 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 19 0 4.3 bash
15 no-host abuild-print-help 9 9 0 3.5 dash
23 no-host abuild-print-help 453 416 40 21.5 osh-cpython
31 no-host abuild-print-help 23 18 6 8.8 osh-native
1 no-host bin-true 669 496 202 2.9 bash
9 no-host bin-true 540 413 138 1.6 dash
17 no-host bin-true 2,207 1,456 1,004 17.2 osh-cpython
25 no-host bin-true 813 589 241 7.9 osh-native
2 no-host configure.cpython 14,798 8,861 6,332 27.4 bash
10 no-host configure.cpython 14,904 9,164 6,160 27.5 dash
18 no-host configure.cpython 28,222 17,213 12,820 27.4 osh-cpython
26 no-host configure.cpython 15,093 8,786 6,579 27.5 osh-native
4 no-host configure.ocaml 3,758 1,599 1,198 20.6 bash
12 no-host configure.ocaml 3,705 1,555 1,167 20.6 dash
20 no-host configure.ocaml 4,571 2,239 1,533 20.6 osh-cpython
28 no-host configure.ocaml 3,785 1,586 1,239 20.4 osh-native
5 no-host configure.tcc 47 27 20 19.3 bash
13 no-host configure.tcc 41 20 21 19.0 dash
21 no-host configure.tcc 190 131 63 19.4 osh-cpython
29 no-host configure.tcc 48 26 23 19.4 osh-native
3 no-host configure.util-linux 13,869 8,733 5,615 30.4 bash
11 no-host configure.util-linux 14,679 9,085 6,085 30.0 dash
19 no-host configure.util-linux 30,803 20,484 11,391 30.3 osh-cpython
27 no-host configure.util-linux 14,235 8,766 5,666 30.3 osh-native
6 no-host configure.yash 1,813 1,041 776 24.2 bash
14 no-host configure.yash 1,749 984 769 24.2 dash
22 no-host configure.yash 2,416 1,436 1,022 24.2 osh-cpython
30 no-host configure.yash 1,809 1,052 762 24.2 osh-native
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 31 15 17.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,508 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,306 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,336 0 0 0 8 0 1,992 65 bash
9 no-host bin-true 65,411 0 0 0 8 0 1,987 44 dash
17 no-host bin-true 755,115 0 0 0 8 0 1,996 166 osh-cpython
25 no-host bin-true 126,138 0 0 0 16 0 1,995 99 osh-native
2 no-host configure.cpython 2,220,518 0 0 0 32,928 0 14,549 1,046 bash
10 no-host configure.cpython 2,242,577 0 0 0 32,992 0 14,596 1,124 dash
18 no-host configure.cpython 6,144,591 1 0 0 27,512 0 13,298 1,257 osh-cpython
26 no-host configure.cpython 2,232,494 2 0 0 27,520 0 13,309 1,212 osh-native
4 no-host configure.ocaml 410,309 0 0 0 5,120 0 1,948 188 bash
12 no-host configure.ocaml 390,434 0 0 0 5,112 0 1,865 150 dash
20 no-host configure.ocaml 638,202 0 0 0 5,112 0 1,867 182 osh-cpython
28 no-host configure.ocaml 413,715 0 0 0 5,120 0 1,931 145 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,197 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,000 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,098,251 1 0 0 42,400 0 18,469 1,200 bash
11 no-host configure.util-linux 2,259,606 1 0 0 42,592 0 17,406 1,007 dash
19 no-host configure.util-linux 5,340,985 7 0 0 39,112 0 17,056 1,144 osh-cpython
27 no-host configure.util-linux 2,009,675 0 0 0 39,128 0 17,045 971 osh-native
6 no-host configure.yash 256,038 0 0 0 4,120 0 881 96 bash
14 no-host configure.yash 245,137 0 0 0 3,720 0 871 76 dash
22 no-host configure.yash 385,306 0 0 0 3,728 0 860 83 osh-cpython
30 no-host configure.yash 258,504 0 0 0 3,736 0 853 84 osh-native
0 no-host hello-world 153 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,657 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c0a0eae7
dash dash-308ec8e6
osh-cpython osh-f1606c79
osh-native osh-9bc1e8b3
host label host id
no-host no-host-13226fd6