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 451 23 23.46 1.18
bin-true no-host 677 552 2,208 820 3.26 1.21
configure.cpython no-host 15,023 15,078 28,365 15,147 1.89 1.01
configure.ocaml no-host 3,794 3,717 4,583 3,795 1.21 1.00
configure.tcc no-host 49 42 191 48 3.92 0.99
configure.util-linux no-host 14,086 14,813 30,839 14,277 2.19 1.01
configure.yash no-host 1,801 1,758 2,412 1,824 1.34 1.01
hello-world no-host 1 1 47 3 32.19 1.95

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,566 1,105 23,413 3,188 9.12 1.24
bin-true no-host 106,338 65,502 751,392 128,166 7.07 1.21
configure.cpython no-host 2,213,682 2,245,787 6,143,504 2,241,470 2.78 1.01
configure.ocaml no-host 410,986 391,286 639,204 413,609 1.56 1.01
configure.tcc no-host 6,554 5,464 23,219 6,965 3.54 1.06
configure.util-linux no-host 2,099,587 2,263,851 5,335,118 2,010,500 2.54 0.96
configure.yash no-host 256,654 245,263 386,432 258,426 1.51 1.01
hello-world no-host 149 85 3,651 348 24.50 2.34

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.8 8.8 5.03 2.03
bin-true no-host 2.9 1.4 17.3 8.3 6.00 2.86
configure.cpython no-host 27.1 27.5 27.4 27.5 1.01 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.4 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.1 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.6 17.0 6.3 6.19 2.29

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 820 1 2 2.7 8.3 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,147 1 59 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,277 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,795 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.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 24.4 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,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 11 9 4.3 bash
15 no-host abuild-print-help 10 9 2 3.5 dash
23 no-host abuild-print-help 451 420 34 21.8 osh-cpython
31 no-host abuild-print-help 23 14 9 8.8 osh-native
1 no-host bin-true 677 519 188 2.9 bash
9 no-host bin-true 552 420 142 1.4 dash
17 no-host bin-true 2,208 1,425 1,042 17.3 osh-cpython
25 no-host bin-true 820 599 236 8.3 osh-native
2 no-host configure.cpython 15,023 8,996 6,424 27.1 bash
10 no-host configure.cpython 15,078 9,045 6,461 27.5 dash
18 no-host configure.cpython 28,365 17,286 12,901 27.4 osh-cpython
26 no-host configure.cpython 15,147 9,008 6,414 27.5 osh-native
4 no-host configure.ocaml 3,794 1,663 1,170 20.4 bash
12 no-host configure.ocaml 3,717 1,591 1,145 20.6 dash
20 no-host configure.ocaml 4,583 2,254 1,532 20.6 osh-cpython
28 no-host configure.ocaml 3,795 1,510 1,325 20.4 osh-native
5 no-host configure.tcc 49 24 25 19.3 bash
13 no-host configure.tcc 42 27 15 19.4 dash
21 no-host configure.tcc 191 129 65 19.4 osh-cpython
29 no-host configure.tcc 48 17 31 19.3 osh-native
3 no-host configure.util-linux 14,086 8,839 5,729 30.1 bash
11 no-host configure.util-linux 14,813 8,979 6,335 30.1 dash
19 no-host configure.util-linux 30,839 20,380 11,538 30.1 osh-cpython
27 no-host configure.util-linux 14,277 8,761 5,722 30.3 osh-native
6 no-host configure.yash 1,801 1,077 734 24.1 bash
14 no-host configure.yash 1,758 1,057 705 24.4 dash
22 no-host configure.yash 2,412 1,441 1,013 24.4 osh-cpython
30 no-host configure.yash 1,824 1,073 755 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 21 26 17.0 osh-cpython
24 no-host hello-world 3 3 0 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,566 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,413 0 0 0 8 0 47 15 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,338 0 0 0 8 0 1,993 191 bash
9 no-host bin-true 65,502 0 0 0 8 0 1,991 58 dash
17 no-host bin-true 751,392 0 0 0 8 0 2,000 194 osh-cpython
25 no-host bin-true 128,166 0 0 0 16 0 1,987 170 osh-native
2 no-host configure.cpython 2,213,682 0 0 0 32,928 0 14,448 1,195 bash
10 no-host configure.cpython 2,245,787 0 0 0 32,992 0 14,579 1,131 dash
18 no-host configure.cpython 6,143,504 0 0 0 27,512 0 13,282 1,249 osh-cpython
26 no-host configure.cpython 2,241,470 0 0 0 27,520 0 13,372 1,340 osh-native
4 no-host configure.ocaml 410,986 0 0 0 5,120 0 1,951 155 bash
12 no-host configure.ocaml 391,286 0 0 0 5,112 0 1,912 161 dash
20 no-host configure.ocaml 639,204 1 0 0 5,112 0 1,861 204 osh-cpython
28 no-host configure.ocaml 413,609 0 0 0 5,120 0 1,933 175 osh-native
5 no-host configure.tcc 6,554 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,219 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,965 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,099,587 0 0 0 42,408 0 18,728 1,140 bash
11 no-host configure.util-linux 2,263,851 1 0 0 42,592 0 17,448 1,066 dash
19 no-host configure.util-linux 5,335,118 11 0 0 39,112 0 17,073 1,210 osh-cpython
27 no-host configure.util-linux 2,010,500 1 0 0 39,120 0 17,088 1,056 osh-native
6 no-host configure.yash 256,654 0 0 0 4,120 0 867 67 bash
14 no-host configure.yash 245,263 0 0 0 3,720 0 869 70 dash
22 no-host configure.yash 386,432 0 0 0 3,728 0 858 92 osh-cpython
30 no-host configure.yash 258,426 0 0 0 3,736 0 850 89 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,651 0 0 0 8 0 7 6 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-a2d34c61
dash dash-308ec8e6
osh-cpython osh-637fb88b
osh-native osh-b8c7f244
host label host id
no-host no-host-13226fd6