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 452 23 23.38 1.19
bin-true no-host 678 547 2,215 819 3.27 1.21
configure.cpython no-host 14,967 15,073 28,453 15,200 1.90 1.02
configure.ocaml no-host 3,789 3,729 4,649 3,876 1.23 1.02
configure.tcc no-host 47 42 192 50 4.07 1.05
configure.util-linux no-host 13,932 14,807 31,120 14,632 2.23 1.05
configure.yash no-host 1,823 1,758 2,466 1,843 1.35 1.01
hello-world no-host 1 1 49 3 32.78 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,542 1,105 23,601 3,205 9.28 1.26
bin-true no-host 108,324 66,370 755,116 128,182 6.97 1.18
configure.cpython no-host 2,220,027 2,246,827 6,129,227 2,235,655 2.76 1.01
configure.ocaml no-host 410,649 391,033 638,849 414,062 1.56 1.01
configure.tcc no-host 6,546 5,479 23,270 6,993 3.55 1.07
configure.util-linux no-host 2,092,226 2,263,465 5,325,641 2,023,121 2.55 0.97
configure.yash no-host 256,513 243,137 385,295 257,755 1.50 1.00
hello-world no-host 152 83 3,688 349 24.26 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.9 8.9 4.91 2.00
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.0 30.3 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.2 1.01 0.99
hello-world no-host 2.9 1.4 17.3 6.2 6.00 2.14

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 819 1 2 2.7 8.1 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,200 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,632 3 63 22.2 30.0 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,876 1 2 2.7 20.4 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 50 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,843 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 23 1 2 2.8 8.9 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 9 8 1 3.4 dash
23 no-host abuild-print-help 452 406 49 21.9 osh-cpython
31 no-host abuild-print-help 23 21 3 8.9 osh-native
1 no-host bin-true 678 496 213 3.0 bash
9 no-host bin-true 547 408 144 1.4 dash
17 no-host bin-true 2,215 1,460 1,017 17.4 osh-cpython
25 no-host bin-true 819 566 269 8.1 osh-native
2 no-host configure.cpython 14,967 9,079 6,290 27.3 bash
10 no-host configure.cpython 15,073 9,298 6,187 27.4 dash
18 no-host configure.cpython 28,453 17,332 12,969 27.4 osh-cpython
26 no-host configure.cpython 15,200 8,962 6,506 27.4 osh-native
4 no-host configure.ocaml 3,789 1,618 1,213 20.4 bash
12 no-host configure.ocaml 3,729 1,484 1,264 20.6 dash
20 no-host configure.ocaml 4,649 2,210 1,643 20.6 osh-cpython
28 no-host configure.ocaml 3,876 1,668 1,248 20.4 osh-native
5 no-host configure.tcc 47 34 13 19.3 bash
13 no-host configure.tcc 42 30 13 19.3 dash
21 no-host configure.tcc 192 156 38 19.4 osh-cpython
29 no-host configure.tcc 50 28 22 19.3 osh-native
3 no-host configure.util-linux 13,932 8,883 5,532 30.0 bash
11 no-host configure.util-linux 14,807 9,176 6,135 30.3 dash
19 no-host configure.util-linux 31,120 20,818 11,403 30.1 osh-cpython
27 no-host configure.util-linux 14,632 8,930 5,904 30.0 osh-native
6 no-host configure.yash 1,823 1,046 782 24.4 bash
14 no-host configure.yash 1,758 1,015 747 24.4 dash
22 no-host configure.yash 2,466 1,581 928 24.5 osh-cpython
30 no-host configure.yash 1,843 1,037 811 24.2 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 25 24 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,542 0 0 0 16 0 40 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,601 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 108,324 0 0 0 8 0 1,999 78 bash
9 no-host bin-true 66,370 0 0 0 8 0 1,986 107 dash
17 no-host bin-true 755,116 0 0 0 8 0 1,995 82 osh-cpython
25 no-host bin-true 128,182 0 0 0 16 0 1,993 66 osh-native
2 no-host configure.cpython 2,220,027 0 0 0 32,928 0 14,508 1,131 bash
10 no-host configure.cpython 2,246,827 0 0 0 32,992 0 14,643 1,342 dash
18 no-host configure.cpython 6,129,227 1 0 0 27,512 0 13,260 1,299 osh-cpython
26 no-host configure.cpython 2,235,655 0 0 0 27,520 0 13,362 1,180 osh-native
4 no-host configure.ocaml 410,649 0 0 0 5,120 0 1,949 163 bash
12 no-host configure.ocaml 391,033 0 0 0 5,112 0 1,874 150 dash
20 no-host configure.ocaml 638,849 1 0 0 5,112 0 1,857 190 osh-cpython
28 no-host configure.ocaml 414,062 0 0 0 5,120 0 1,939 174 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,270 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,092,226 0 0 0 42,400 0 18,616 1,067 bash
11 no-host configure.util-linux 2,263,465 0 0 0 42,592 0 17,435 1,127 dash
19 no-host configure.util-linux 5,325,641 11 0 0 39,112 0 17,165 1,250 osh-cpython
27 no-host configure.util-linux 2,023,121 0 0 0 39,120 0 17,063 1,115 osh-native
6 no-host configure.yash 256,513 0 0 0 4,120 0 880 83 bash
14 no-host configure.yash 243,137 0 0 0 3,720 0 868 85 dash
22 no-host configure.yash 385,295 0 0 0 3,728 0 858 98 osh-cpython
30 no-host configure.yash 257,755 0 0 0 3,736 0 852 95 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,688 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-21457e22
dash dash-308ec8e6
osh-cpython osh-88a6a39b
osh-native osh-8d672035
host label host id
no-host no-host-1c33b689