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 481 24 24.96 1.24
bin-true no-host 680 558 2,317 844 3.41 1.24
configure.cpython no-host 15,713 15,867 30,459 16,081 1.94 1.02
configure.ocaml no-host 3,904 3,876 4,862 3,942 1.25 1.01
configure.tcc no-host 48 45 210 52 4.33 1.08
configure.util-linux no-host 14,649 15,523 33,716 15,398 2.30 1.05
configure.yash no-host 1,860 1,845 2,600 1,899 1.40 1.02
hello-world no-host 2 1 52 3 29.91 1.67

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,558 1,115 24,474 3,398 9.57 1.33
bin-true no-host 104,355 67,468 748,582 130,221 7.17 1.25
configure.cpython no-host 2,234,157 2,246,330 6,175,357 2,235,658 2.76 1.00
configure.ocaml no-host 410,830 391,208 642,545 415,237 1.56 1.01
configure.tcc no-host 6,564 5,479 26,067 7,438 3.97 1.13
configure.util-linux no-host 2,097,952 2,262,568 5,647,904 2,067,788 2.69 0.99
configure.yash no-host 256,484 244,603 389,332 259,151 1.52 1.01
hello-world no-host 154 84 3,658 344 23.75 2.23

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.2 8.9 4.91 2.06
bin-true no-host 3.0 1.6 17.3 7.7 5.74 2.57
configure.cpython no-host 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.3 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.1 25.4 24.2 24.4 1.01 1.01
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.2 6.2 3,715 3,715 0 681 1,869 1,165 2 0 50,000 0
bin-true no-host 844 1 2 2.7 7.7 154,662 12,890 2,792 11,730 78,322 64,610 5,012 3 50,000 0
configure.cpython no-host 16,081 1 68 15.8 27.5 1,772,659 49,191 28,502 101,770 908,090 762,799 42,399 60 50,000 0
configure.util-linux no-host 15,398 3 67 22.2 30.0 2,703,395 44,760 65,786 126,121 1,320,588 1,256,686 49,081 41 131,572 1
configure.ocaml no-host 3,942 1 2 2.7 20.6 150,029 11,039 5,132 8,602 71,626 69,801 2,680 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.4 30,518 30,518 0 1,599 14,793 14,126 350 0 50,000 0
configure.yash no-host 1,899 1 2 2.6 24.4 139,686 7,958 6,594 7,554 70,298 61,834 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.9 116,225 64,449 42,657 4,601 54,506 57,118 478 3 85,314 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.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 481 428 58 21.2 osh-cpython
31 no-host abuild-print-help 24 16 8 8.9 osh-native
1 no-host bin-true 680 493 218 3.0 bash
9 no-host bin-true 558 424 141 1.6 dash
17 no-host bin-true 2,317 1,469 1,117 17.3 osh-cpython
25 no-host bin-true 844 608 250 7.7 osh-native
2 no-host configure.cpython 15,713 9,541 6,582 27.4 bash
10 no-host configure.cpython 15,867 9,506 6,785 27.4 dash
18 no-host configure.cpython 30,459 18,151 14,406 27.5 osh-cpython
26 no-host configure.cpython 16,081 9,503 6,879 27.5 osh-native
4 no-host configure.ocaml 3,904 1,600 1,332 20.6 bash
12 no-host configure.ocaml 3,876 1,630 1,265 20.3 dash
20 no-host configure.ocaml 4,862 2,270 1,821 20.6 osh-cpython
28 no-host configure.ocaml 3,942 1,599 1,388 20.6 osh-native
5 no-host configure.tcc 48 22 27 19.3 bash
13 no-host configure.tcc 45 26 19 19.3 dash
21 no-host configure.tcc 210 164 52 19.3 osh-cpython
29 no-host configure.tcc 52 29 24 19.4 osh-native
3 no-host configure.util-linux 14,649 9,088 6,039 30.0 bash
11 no-host configure.util-linux 15,523 9,302 6,714 30.0 dash
19 no-host configure.util-linux 33,716 22,769 12,953 30.1 osh-cpython
27 no-host configure.util-linux 15,398 9,542 6,294 30.0 osh-native
6 no-host configure.yash 1,860 1,145 723 24.1 bash
14 no-host configure.yash 1,845 1,058 791 25.4 dash
22 no-host configure.yash 2,600 1,521 1,121 24.2 osh-cpython
30 no-host configure.yash 1,899 1,064 830 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 52 24 27 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,558 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,474 0 0 0 8 0 53 5 osh-cpython
31 no-host abuild-print-help 3,398 0 0 0 16 0 47 3 osh-native
1 no-host bin-true 104,355 0 0 0 8 0 1,992 60 bash
9 no-host bin-true 67,468 0 0 0 8 0 1,987 119 dash
17 no-host bin-true 748,582 0 0 0 8 0 1,997 369 osh-cpython
25 no-host bin-true 130,221 0 0 0 16 0 1,985 60 osh-native
2 no-host configure.cpython 2,234,157 0 0 0 32,928 0 14,509 1,068 bash
10 no-host configure.cpython 2,246,330 0 0 0 32,992 0 14,652 1,187 dash
18 no-host configure.cpython 6,175,357 0 0 0 27,512 0 13,429 1,405 osh-cpython
26 no-host configure.cpython 2,235,658 7 0 0 27,520 0 13,423 1,018 osh-native
4 no-host configure.ocaml 410,830 0 0 0 5,120 0 1,952 261 bash
12 no-host configure.ocaml 391,208 0 0 0 5,112 0 1,893 138 dash
20 no-host configure.ocaml 642,545 0 0 0 5,112 0 1,882 169 osh-cpython
28 no-host configure.ocaml 415,237 0 0 0 5,120 0 1,959 151 osh-native
5 no-host configure.tcc 6,564 0 0 0 104 0 47 5 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 26,067 0 0 0 96 0 67 7 osh-cpython
29 no-host configure.tcc 7,438 0 0 0 104 0 61 5 osh-native
3 no-host configure.util-linux 2,097,952 0 0 0 42,408 0 18,578 1,093 bash
11 no-host configure.util-linux 2,262,568 2 0 0 42,592 0 17,501 1,086 dash
19 no-host configure.util-linux 5,647,904 12 0 0 39,152 0 18,193 1,402 osh-cpython
27 no-host configure.util-linux 2,067,788 7 0 0 39,128 0 18,425 1,202 osh-native
6 no-host configure.yash 256,484 0 0 0 4,120 0 872 84 bash
14 no-host configure.yash 244,603 0 0 0 3,720 0 868 83 dash
22 no-host configure.yash 389,332 0 0 0 3,728 0 877 99 osh-cpython
30 no-host configure.yash 259,151 0 0 0 3,736 0 871 78 osh-native
0 no-host hello-world 154 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,658 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-628c39c7
dash dash-308ec8e6
osh-cpython osh-207b7ba6
osh-native osh-3d6768f6
host label host id
no-host no-host-e54d7702