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 22 23.54 1.16
bin-true no-host 684 544 2,215 816 3.24 1.19
configure.cpython no-host 14,963 14,865 28,259 15,221 1.89 1.02
configure.ocaml no-host 3,751 3,704 4,611 3,795 1.23 1.01
configure.tcc no-host 47 41 191 49 4.05 1.03
configure.util-linux no-host 13,871 14,753 30,770 14,422 2.22 1.04
configure.yash no-host 1,806 1,749 2,452 1,807 1.36 1.00
hello-world no-host 1 1 48 3 32.76 1.96

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,531 1,124 23,489 3,217 9.28 1.27
bin-true no-host 107,401 66,451 750,727 127,120 6.99 1.18
configure.cpython no-host 2,218,371 2,242,822 6,155,913 2,232,813 2.77 1.01
configure.ocaml no-host 410,587 391,736 641,579 414,509 1.56 1.01
configure.tcc no-host 6,540 5,460 23,324 6,993 3.57 1.07
configure.util-linux no-host 2,109,920 2,260,591 5,315,009 2,019,138 2.52 0.96
configure.yash no-host 255,824 245,009 385,348 258,940 1.51 1.01
hello-world no-host 153 81 3,686 348 24.09 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.5 3.4 21.6 9.0 4.85 2.03
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.3 29.9 1.00 0.99
configure.yash no-host 24.5 24.4 24.5 24.2 1.00 0.99
hello-world no-host 2.8 1.4 17.3 6.2 6.29 2.24

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 684 1,877 1,166 2 0 50,000 0
bin-true no-host 816 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,221 1 60 15.8 27.4 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,422 3 60 22.2 29.9 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,795 0 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,807 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,270 64,455 42,663 4,610 54,546 57,114 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.5 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 451 423 31 21.6 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
1 no-host bin-true 684 495 218 3.0 bash
9 no-host bin-true 544 412 140 1.4 dash
17 no-host bin-true 2,215 1,410 1,062 17.3 osh-cpython
25 no-host bin-true 816 595 235 8.0 osh-native
2 no-host configure.cpython 14,963 9,097 6,259 27.4 bash
10 no-host configure.cpython 14,865 8,923 6,348 27.4 dash
18 no-host configure.cpython 28,259 17,333 12,750 27.3 osh-cpython
26 no-host configure.cpython 15,221 9,163 6,327 27.4 osh-native
4 no-host configure.ocaml 3,751 1,620 1,170 20.6 bash
12 no-host configure.ocaml 3,704 1,544 1,178 20.4 dash
20 no-host configure.ocaml 4,611 2,191 1,626 20.6 osh-cpython
28 no-host configure.ocaml 3,795 1,573 1,261 20.6 osh-native
5 no-host configure.tcc 47 28 20 19.3 bash
13 no-host configure.tcc 41 25 17 19.4 dash
21 no-host configure.tcc 191 146 48 19.4 osh-cpython
29 no-host configure.tcc 49 30 19 19.3 osh-native
3 no-host configure.util-linux 13,871 8,755 5,579 30.3 bash
11 no-host configure.util-linux 14,753 9,037 6,218 30.1 dash
19 no-host configure.util-linux 30,770 20,536 11,291 30.3 osh-cpython
27 no-host configure.util-linux 14,422 8,752 5,861 29.9 osh-native
6 no-host configure.yash 1,806 1,036 777 24.5 bash
14 no-host configure.yash 1,749 1,026 726 24.4 dash
22 no-host configure.yash 2,452 1,537 958 24.5 osh-cpython
30 no-host configure.yash 1,807 1,014 796 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 32 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,531 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,124 0 0 0 8 0 39 3 dash
23 no-host abuild-print-help 23,489 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,401 0 0 0 8 0 1,985 56 bash
9 no-host bin-true 66,451 0 0 0 8 0 1,991 54 dash
17 no-host bin-true 750,727 0 0 0 8 0 1,992 85 osh-cpython
25 no-host bin-true 127,120 0 0 0 16 0 1,988 135 osh-native
2 no-host configure.cpython 2,218,371 0 0 0 32,928 0 14,512 1,160 bash
10 no-host configure.cpython 2,242,822 0 0 0 32,992 0 14,647 1,182 dash
18 no-host configure.cpython 6,155,913 0 0 0 27,512 0 13,261 1,199 osh-cpython
26 no-host configure.cpython 2,232,813 0 0 0 27,520 0 13,308 1,036 osh-native
4 no-host configure.ocaml 410,587 0 0 0 5,120 0 1,950 180 bash
12 no-host configure.ocaml 391,736 0 0 0 5,112 0 1,911 163 dash
20 no-host configure.ocaml 641,579 0 0 0 5,112 0 1,856 183 osh-cpython
28 no-host configure.ocaml 414,509 0 0 0 5,120 0 1,931 187 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,324 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 10 osh-native
3 no-host configure.util-linux 2,109,920 0 0 0 42,400 0 18,487 1,058 bash
11 no-host configure.util-linux 2,260,591 0 0 0 42,592 0 17,456 1,040 dash
19 no-host configure.util-linux 5,315,009 13 0 0 39,112 0 17,151 1,242 osh-cpython
27 no-host configure.util-linux 2,019,138 1 0 0 39,128 0 17,049 1,052 osh-native
6 no-host configure.yash 255,824 0 0 0 4,120 0 874 85 bash
14 no-host configure.yash 245,009 0 0 0 3,720 0 869 82 dash
22 no-host configure.yash 385,348 0 0 0 3,728 0 858 84 osh-cpython
30 no-host configure.yash 258,940 0 0 0 3,736 0 849 78 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,686 0 0 0 8 0 7 4 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-ce915b59
dash dash-308ec8e6
osh-cpython osh-6eeca4de
osh-native osh-dbb0b099
host label host id
no-host no-host-556df3ee