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 454 22 23.81 1.17
bin-true no-host 690 552 2,254 818 3.27 1.19
configure.cpython no-host 15,590 15,992 28,530 15,200 1.83 0.98
configure.ocaml no-host 3,876 3,738 4,597 3,845 1.19 0.99
configure.tcc no-host 48 42 190 49 3.97 1.03
configure.util-linux no-host 14,634 15,815 31,377 14,307 2.14 0.98
configure.yash no-host 1,848 1,765 2,428 1,848 1.31 1.00
hello-world no-host 2 1 50 3 31.73 2.00

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,550 1,101 23,401 3,210 9.18 1.26
bin-true no-host 105,279 65,432 752,525 126,206 7.15 1.20
configure.cpython no-host 2,222,916 2,239,902 6,147,694 2,245,798 2.77 1.01
configure.ocaml no-host 410,401 391,685 638,716 413,133 1.56 1.01
configure.tcc no-host 6,574 5,480 23,170 6,983 3.52 1.06
configure.util-linux no-host 2,100,442 2,259,575 5,332,677 2,015,503 2.54 0.96
configure.yash no-host 256,521 245,182 385,801 258,170 1.50 1.01
hello-world no-host 151 84 3,661 348 24.25 2.30

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.8 8.7 4.88 1.94
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.5 27.4 27.3 27.3 0.99 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 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 818 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,200 1 58 15.8 27.3 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,307 2 57 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,845 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,848 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 22 1 2 2.8 8.7 116,265 64,454 42,662 4,609 54,543 57,113 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 15 4 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 454 423 35 21.8 osh-cpython
31 no-host abuild-print-help 22 16 7 8.7 osh-native
1 no-host bin-true 690 483 229 2.9 bash
9 no-host bin-true 552 418 139 1.4 dash
17 no-host bin-true 2,254 1,446 1,064 17.3 osh-cpython
25 no-host bin-true 818 591 242 7.9 osh-native
2 no-host configure.cpython 15,590 9,244 6,705 27.5 bash
10 no-host configure.cpython 15,992 9,497 6,869 27.4 dash
18 no-host configure.cpython 28,530 17,471 12,889 27.3 osh-cpython
26 no-host configure.cpython 15,200 8,886 6,576 27.3 osh-native
4 no-host configure.ocaml 3,876 1,659 1,254 20.6 bash
12 no-host configure.ocaml 3,738 1,538 1,220 20.6 dash
20 no-host configure.ocaml 4,597 2,230 1,571 20.6 osh-cpython
28 no-host configure.ocaml 3,845 1,605 1,280 20.6 osh-native
5 no-host configure.tcc 48 27 22 19.3 bash
13 no-host configure.tcc 42 24 18 19.3 dash
21 no-host configure.tcc 190 127 67 19.3 osh-cpython
29 no-host configure.tcc 49 33 17 19.3 osh-native
3 no-host configure.util-linux 14,634 9,061 6,025 30.1 bash
11 no-host configure.util-linux 15,815 9,320 6,957 30.1 dash
19 no-host configure.util-linux 31,377 21,047 11,415 30.1 osh-cpython
27 no-host configure.util-linux 14,307 8,699 5,808 30.3 osh-native
6 no-host configure.yash 1,848 1,047 810 24.2 bash
14 no-host configure.yash 1,765 1,025 743 24.4 dash
22 no-host configure.yash 2,428 1,469 1,001 24.2 osh-cpython
30 no-host configure.yash 1,848 1,051 801 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 29 20 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,550 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,401 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,210 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 105,279 0 0 0 8 0 1,991 186 bash
9 no-host bin-true 65,432 0 0 0 8 0 1,988 47 dash
17 no-host bin-true 752,525 0 0 0 8 0 1,997 316 osh-cpython
25 no-host bin-true 126,206 0 0 0 16 0 1,987 104 osh-native
2 no-host configure.cpython 2,222,916 0 0 0 32,928 0 14,408 1,041 bash
10 no-host configure.cpython 2,239,902 0 0 0 32,992 0 14,649 1,139 dash
18 no-host configure.cpython 6,147,694 2 0 0 27,512 0 13,097 1,244 osh-cpython
26 no-host configure.cpython 2,245,798 0 0 0 27,520 0 13,359 1,147 osh-native
4 no-host configure.ocaml 410,401 0 0 0 5,120 0 1,947 223 bash
12 no-host configure.ocaml 391,685 0 0 0 5,112 0 1,930 175 dash
20 no-host configure.ocaml 638,716 1 0 0 5,112 0 1,858 179 osh-cpython
28 no-host configure.ocaml 413,133 0 0 0 5,120 0 1,932 162 osh-native
5 no-host configure.tcc 6,574 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,170 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,983 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,442 1 0 0 42,400 0 18,483 1,105 bash
11 no-host configure.util-linux 2,259,575 1 0 0 42,592 0 17,423 1,136 dash
19 no-host configure.util-linux 5,332,677 15 0 0 39,112 0 17,067 1,248 osh-cpython
27 no-host configure.util-linux 2,015,503 1 0 0 39,120 0 17,047 1,128 osh-native
6 no-host configure.yash 256,521 0 0 0 4,120 0 870 93 bash
14 no-host configure.yash 245,182 0 0 0 3,720 0 869 80 dash
22 no-host configure.yash 385,801 0 0 0 3,728 0 861 108 osh-cpython
30 no-host configure.yash 258,170 0 0 0 3,736 0 851 92 osh-native
0 no-host hello-world 151 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,661 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-e3f8aa4d
dash dash-308ec8e6
osh-cpython osh-11f15cab
osh-native osh-79656f7c
host label host id
no-host no-host-13226fd6