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 20 12 483 23 24.67 1.15
bin-true no-host 691 556 2,505 824 3.63 1.19
configure.cpython no-host 15,906 15,704 30,328 15,848 1.91 1.00
configure.ocaml no-host 3,919 3,810 4,833 3,882 1.23 0.99
configure.tcc no-host 49 44 194 50 3.95 1.03
configure.util-linux no-host 14,751 15,441 33,172 14,679 2.25 1.00
configure.yash no-host 1,902 1,865 2,510 1,882 1.32 0.99
hello-world no-host 2 1 56 3 35.81 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,506 1,099 22,846 3,210 9.12 1.28
bin-true no-host 104,422 66,491 747,298 127,175 7.16 1.22
configure.cpython no-host 2,222,690 2,243,070 6,160,221 2,221,299 2.77 1.00
configure.ocaml no-host 410,388 391,298 637,607 413,566 1.55 1.01
configure.tcc no-host 6,572 5,478 23,217 6,986 3.53 1.06
configure.util-linux no-host 2,104,287 2,258,455 5,286,039 1,997,391 2.51 0.95
configure.yash no-host 255,209 243,694 384,696 258,661 1.51 1.01
hello-world no-host 150 79 3,725 344 24.83 2.29

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.2 3.4 21.8 9.2 5.19 2.19
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.3 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.3 30.0 30.1 30.0 1.00 0.99
configure.yash no-host 24.5 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.6 1.4 17.3 6.3 6.60 2.40

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,727 3,727 0 681 1,877 1,169 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.0 154,692 12,992 2,799 9,731 78,346 66,615 5,012 3 50,000 0
configure.cpython no-host 15,848 1 65 15.0 27.4 1,772,668 49,197 28,508 86,378 908,098 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,679 3 65 21.3 30.0 2,703,404 44,766 65,792 109,640 1,320,596 1,273,168 49,081 41 131,584 1
configure.ocaml no-host 3,882 1 2 2.6 20.6 150,038 11,045 5,138 7,510 71,634 70,894 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,882 1 2 2.6 24.4 139,695 7,964 6,600 6,317 70,306 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 116,270 64,455 42,663 4,552 54,546 57,172 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 20 13 7 4.2 bash
15 no-host abuild-print-help 12 5 7 3.4 dash
23 no-host abuild-print-help 483 447 39 21.8 osh-cpython
31 no-host abuild-print-help 23 14 9 9.2 osh-native
1 no-host bin-true 691 522 199 2.9 bash
9 no-host bin-true 556 422 143 1.4 dash
17 no-host bin-true 2,505 1,562 1,223 17.3 osh-cpython
25 no-host bin-true 824 576 262 8.0 osh-native
2 no-host configure.cpython 15,906 9,399 6,918 27.4 bash
10 no-host configure.cpython 15,704 9,513 6,621 27.4 dash
18 no-host configure.cpython 30,328 18,193 14,100 27.4 osh-cpython
26 no-host configure.cpython 15,848 9,377 6,740 27.4 osh-native
4 no-host configure.ocaml 3,919 1,654 1,304 20.4 bash
12 no-host configure.ocaml 3,810 1,654 1,176 20.6 dash
20 no-host configure.ocaml 4,833 2,263 1,747 20.6 osh-cpython
28 no-host configure.ocaml 3,882 1,726 1,193 20.6 osh-native
5 no-host configure.tcc 49 31 19 19.4 bash
13 no-host configure.tcc 44 31 13 19.3 dash
21 no-host configure.tcc 194 141 56 19.3 osh-cpython
29 no-host configure.tcc 50 35 16 19.4 osh-native
3 no-host configure.util-linux 14,751 9,151 6,085 30.3 bash
11 no-host configure.util-linux 15,441 9,522 6,414 30.0 dash
19 no-host configure.util-linux 33,172 21,699 12,612 30.1 osh-cpython
27 no-host configure.util-linux 14,679 8,894 5,988 30.0 osh-native
6 no-host configure.yash 1,902 1,184 725 24.5 bash
14 no-host configure.yash 1,865 1,103 766 24.4 dash
22 no-host configure.yash 2,510 1,563 991 24.2 osh-cpython
30 no-host configure.yash 1,882 1,063 822 24.4 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 51 5 17.3 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,506 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 4 dash
23 no-host abuild-print-help 22,846 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,210 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 104,422 0 0 0 8 0 1,989 94 bash
9 no-host bin-true 66,491 0 0 0 8 0 1,980 90 dash
17 no-host bin-true 747,298 0 0 0 8 0 1,987 158 osh-cpython
25 no-host bin-true 127,175 0 0 0 16 0 1,992 117 osh-native
2 no-host configure.cpython 2,222,690 1 0 0 32,928 0 14,444 1,081 bash
10 no-host configure.cpython 2,243,070 0 0 0 32,992 0 14,661 1,080 dash
18 no-host configure.cpython 6,160,221 0 0 0 27,512 0 13,324 1,395 osh-cpython
26 no-host configure.cpython 2,221,299 0 0 0 27,520 0 13,273 1,069 osh-native
4 no-host configure.ocaml 410,388 0 0 0 5,120 0 1,949 157 bash
12 no-host configure.ocaml 391,298 0 0 0 5,112 0 1,937 158 dash
20 no-host configure.ocaml 637,607 0 0 0 5,112 0 1,858 170 osh-cpython
28 no-host configure.ocaml 413,566 0 0 0 5,120 0 1,929 179 osh-native
5 no-host configure.tcc 6,572 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,217 0 0 0 96 0 52 9 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,104,287 2 0 0 42,408 0 18,596 1,031 bash
11 no-host configure.util-linux 2,258,455 0 0 0 42,592 0 17,488 1,097 dash
19 no-host configure.util-linux 5,286,039 11 0 0 39,112 0 16,981 1,378 osh-cpython
27 no-host configure.util-linux 1,997,391 1 0 0 39,128 0 17,059 1,035 osh-native
6 no-host configure.yash 255,209 0 0 0 4,120 0 869 95 bash
14 no-host configure.yash 243,694 0 0 0 3,720 0 869 76 dash
22 no-host configure.yash 384,696 0 0 0 3,728 0 852 80 osh-cpython
30 no-host configure.yash 258,661 0 0 0 3,736 0 847 88 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,725 0 0 0 8 0 7 4 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-2919aac6
dash dash-308ec8e6
osh-cpython osh-4e6a2beb
osh-native osh-fe7299ed
host label host id
no-host no-host-556df3ee