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 471 23 24.68 1.21
bin-true no-host 686 548 2,297 841 3.35 1.23
configure.cpython no-host 15,527 15,325 29,173 16,289 1.88 1.05
configure.ocaml no-host 3,824 3,797 4,859 3,938 1.27 1.03
configure.tcc no-host 48 42 201 49 4.18 1.02
configure.util-linux no-host 14,588 15,138 31,978 15,265 2.19 1.05
configure.yash no-host 1,843 1,788 2,577 1,910 1.40 1.04
hello-world no-host 2 1 49 3 31.25 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,515 1,109 23,266 3,224 9.25 1.28
bin-true no-host 106,379 68,409 753,067 127,197 7.08 1.20
configure.cpython no-host 2,222,288 2,239,461 6,146,908 2,232,764 2.77 1.00
configure.ocaml no-host 410,998 390,860 637,948 414,679 1.55 1.01
configure.tcc no-host 6,547 5,465 23,184 7,008 3.54 1.07
configure.util-linux no-host 2,101,469 2,260,462 5,344,936 2,016,544 2.54 0.96
configure.yash no-host 256,399 243,556 385,170 257,980 1.50 1.01
hello-world no-host 149 79 3,661 348 24.57 2.34

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.4 21.5 8.7 4.96 2.00
bin-true no-host 2.9 1.4 17.2 7.7 5.95 2.68
configure.cpython no-host 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.0 30.3 30.1 1.01 1.00
configure.yash no-host 24.2 24.4 24.2 24.5 1.00 1.01
hello-world no-host 2.6 1.3 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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 841 1 2 2.7 7.7 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 16,289 1 70 15.8 27.5 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,265 3 69 22.2 30.1 2,703,376 44,765 65,791 126,155 1,320,530 1,256,691 49,086 41 131,582 1
configure.ocaml no-host 3,938 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,910 1 2 2.6 24.5 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,265 64,454 42,662 4,610 54,543 57,112 478 3 85,324 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 12 8 4.3 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 471 430 44 21.5 osh-cpython
31 no-host abuild-print-help 23 18 6 8.7 osh-native
1 no-host bin-true 686 511 204 2.9 bash
9 no-host bin-true 548 431 129 1.4 dash
17 no-host bin-true 2,297 1,467 1,099 17.2 osh-cpython
25 no-host bin-true 841 586 270 7.7 osh-native
2 no-host configure.cpython 15,527 9,355 6,583 27.4 bash
10 no-host configure.cpython 15,325 9,162 6,580 27.4 dash
18 no-host configure.cpython 29,173 17,870 13,186 27.5 osh-cpython
26 no-host configure.cpython 16,289 9,454 7,109 27.5 osh-native
4 no-host configure.ocaml 3,824 1,669 1,195 20.6 bash
12 no-host configure.ocaml 3,797 1,640 1,177 20.6 dash
20 no-host configure.ocaml 4,859 2,349 1,726 20.4 osh-cpython
28 no-host configure.ocaml 3,938 1,794 1,186 20.6 osh-native
5 no-host configure.tcc 48 32 17 19.3 bash
13 no-host configure.tcc 42 24 19 19.4 dash
21 no-host configure.tcc 201 145 59 19.3 osh-cpython
29 no-host configure.tcc 49 31 18 19.3 osh-native
3 no-host configure.util-linux 14,588 8,999 5,948 30.0 bash
11 no-host configure.util-linux 15,138 9,225 6,401 30.0 dash
19 no-host configure.util-linux 31,978 21,424 11,669 30.3 osh-cpython
27 no-host configure.util-linux 15,265 9,040 6,417 30.1 osh-native
6 no-host configure.yash 1,843 1,073 778 24.2 bash
14 no-host configure.yash 1,788 1,028 763 24.4 dash
22 no-host configure.yash 2,577 1,542 1,081 24.2 osh-cpython
30 no-host configure.yash 1,910 1,094 805 24.5 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 49 33 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,515 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,266 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,224 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,379 0 0 0 8 0 1,994 59 bash
9 no-host bin-true 68,409 0 0 0 8 0 1,989 35 dash
17 no-host bin-true 753,067 0 0 0 8 0 1,997 450 osh-cpython
25 no-host bin-true 127,197 0 0 0 16 0 1,984 92 osh-native
2 no-host configure.cpython 2,222,288 0 0 0 32,928 0 14,510 1,032 bash
10 no-host configure.cpython 2,239,461 0 0 0 32,992 0 14,616 1,110 dash
18 no-host configure.cpython 6,146,908 2 0 0 27,512 0 13,286 1,248 osh-cpython
26 no-host configure.cpython 2,232,764 0 0 0 27,520 0 13,241 995 osh-native
4 no-host configure.ocaml 410,998 0 0 0 5,120 0 1,946 164 bash
12 no-host configure.ocaml 390,860 0 0 0 5,112 0 1,920 148 dash
20 no-host configure.ocaml 637,948 0 0 0 5,112 0 1,858 177 osh-cpython
28 no-host configure.ocaml 414,679 0 0 0 5,120 0 1,939 173 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,184 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,008 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,101,469 0 0 0 42,400 0 18,605 1,125 bash
11 no-host configure.util-linux 2,260,462 1 0 0 42,584 0 17,451 1,187 dash
19 no-host configure.util-linux 5,344,936 9 0 0 39,112 0 17,088 1,409 osh-cpython
27 no-host configure.util-linux 2,016,544 1 0 0 39,144 0 17,040 1,186 osh-native
6 no-host configure.yash 256,399 0 0 0 4,120 0 872 90 bash
14 no-host configure.yash 243,556 0 0 0 3,720 0 866 88 dash
22 no-host configure.yash 385,170 1 0 0 3,728 0 860 103 osh-cpython
30 no-host configure.yash 257,980 0 0 0 3,736 0 856 94 osh-native
0 no-host hello-world 149 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,661 0 0 0 8 0 7 5 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-e2650ff5
dash dash-308ec8e6
osh-cpython osh-087d543a
osh-native osh-8724d77d
host label host id
no-host no-host-13226fd6