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 10 469 23 23.75 1.19
bin-true no-host 685 554 2,288 826 3.34 1.21
configure.cpython no-host 15,565 15,647 29,881 16,439 1.92 1.06
configure.ocaml no-host 3,936 3,854 4,782 4,004 1.21 1.02
configure.tcc no-host 48 44 198 51 4.11 1.06
configure.util-linux no-host 14,526 15,400 32,568 15,507 2.24 1.07
configure.yash no-host 1,887 1,852 2,557 1,931 1.35 1.02
hello-world no-host 2 1 50 3 30.55 1.79

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,126 23,221 3,207 9.15 1.26
bin-true no-host 106,319 65,357 749,062 126,107 7.05 1.19
configure.cpython no-host 2,221,160 2,238,426 6,137,996 2,227,934 2.76 1.00
configure.ocaml no-host 409,972 391,234 637,603 413,612 1.56 1.01
configure.tcc no-host 6,555 5,477 23,217 6,970 3.54 1.06
configure.util-linux no-host 2,099,733 2,259,572 5,331,698 2,012,262 2.54 0.96
configure.yash no-host 256,181 244,611 385,707 258,924 1.51 1.01
hello-world no-host 151 79 3,655 349 24.21 2.31

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.5 21.6 9.0 4.85 2.03
bin-true no-host 2.9 1.6 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.4 27.5 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.3 0.99 0.99
configure.util-linux no-host 30.0 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.2 6.3 5.95 2.18

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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 826 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 16,439 1 66 15.8 27.5 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,507 3 66 22.2 30.1 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 4,004 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,931 1 2 2.6 24.2 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 17 3 4.5 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 469 428 44 21.6 osh-cpython
31 no-host abuild-print-help 23 17 7 9.0 osh-native
1 no-host bin-true 685 513 204 2.9 bash
9 no-host bin-true 554 423 138 1.6 dash
17 no-host bin-true 2,288 1,533 1,022 17.3 osh-cpython
25 no-host bin-true 826 563 276 8.0 osh-native
2 no-host configure.cpython 15,565 9,298 6,672 27.4 bash
10 no-host configure.cpython 15,647 9,252 6,823 27.4 dash
18 no-host configure.cpython 29,881 18,071 13,742 27.4 osh-cpython
26 no-host configure.cpython 16,439 9,419 6,721 27.5 osh-native
4 no-host configure.ocaml 3,936 1,700 1,271 20.4 bash
12 no-host configure.ocaml 3,854 1,593 1,281 20.6 dash
20 no-host configure.ocaml 4,782 2,288 1,708 20.6 osh-cpython
28 no-host configure.ocaml 4,004 1,695 1,348 20.6 osh-native
5 no-host configure.tcc 48 32 17 19.4 bash
13 no-host configure.tcc 44 29 16 19.3 dash
21 no-host configure.tcc 198 155 47 19.3 osh-cpython
29 no-host configure.tcc 51 32 20 19.3 osh-native
3 no-host configure.util-linux 14,526 9,160 5,857 30.0 bash
11 no-host configure.util-linux 15,400 9,408 6,489 30.0 dash
19 no-host configure.util-linux 32,568 21,420 12,296 30.1 osh-cpython
27 no-host configure.util-linux 15,507 9,126 6,103 30.1 osh-native
6 no-host configure.yash 1,887 1,138 759 24.2 bash
14 no-host configure.yash 1,852 1,038 817 24.2 dash
22 no-host configure.yash 2,557 1,549 1,053 24.4 osh-cpython
30 no-host configure.yash 1,931 1,129 806 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 45 4 17.2 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,539 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,126 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,221 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,319 0 0 0 8 0 1,992 36 bash
9 no-host bin-true 65,357 0 0 0 8 0 1,991 53 dash
17 no-host bin-true 749,062 0 0 0 8 0 1,997 158 osh-cpython
25 no-host bin-true 126,107 0 0 0 16 0 1,990 58 osh-native
2 no-host configure.cpython 2,221,160 0 0 0 32,928 0 14,416 1,014 bash
10 no-host configure.cpython 2,238,426 0 0 0 32,992 0 14,591 1,137 dash
18 no-host configure.cpython 6,137,996 5 0 0 27,512 0 13,285 1,285 osh-cpython
26 no-host configure.cpython 2,227,934 0 0 0 27,520 0 13,212 956 osh-native
4 no-host configure.ocaml 409,972 0 0 0 5,120 0 1,955 171 bash
12 no-host configure.ocaml 391,234 0 0 0 5,112 0 1,939 153 dash
20 no-host configure.ocaml 637,603 0 0 0 5,112 0 1,869 165 osh-cpython
28 no-host configure.ocaml 413,612 0 0 0 5,120 0 1,942 144 osh-native
5 no-host configure.tcc 6,555 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,217 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,099,733 0 0 0 42,400 0 18,658 1,212 bash
11 no-host configure.util-linux 2,259,572 1 0 0 42,592 0 17,467 1,057 dash
19 no-host configure.util-linux 5,331,698 1 0 0 39,112 0 17,036 1,211 osh-cpython
27 no-host configure.util-linux 2,012,262 0 0 0 39,128 0 17,075 1,037 osh-native
6 no-host configure.yash 256,181 0 0 0 4,120 0 871 79 bash
14 no-host configure.yash 244,611 0 0 0 3,720 0 869 86 dash
22 no-host configure.yash 385,707 0 0 0 3,728 0 857 157 osh-cpython
30 no-host configure.yash 258,924 0 0 0 3,736 0 848 82 osh-native
0 no-host hello-world 151 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,655 0 0 0 8 0 7 4 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-eaf90686
dash dash-308ec8e6
osh-cpython osh-6ecf8e83
osh-native osh-8f8d0f97
host label host id
no-host no-host-13226fd6