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 457 22 23.49 1.15
bin-true no-host 672 547 2,240 809 3.33 1.20
configure.cpython no-host 15,326 15,393 28,736 15,355 1.87 1.00
configure.ocaml no-host 3,861 3,784 4,650 3,835 1.20 0.99
configure.tcc no-host 48 42 191 49 4.01 1.02
configure.util-linux no-host 14,192 15,039 31,334 14,456 2.21 1.02
configure.yash no-host 1,844 1,791 2,451 1,836 1.33 1.00
hello-world no-host 1 1 48 3 32.13 1.89

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,094 23,152 3,226 9.11 1.27
bin-true no-host 106,388 66,468 746,970 127,190 7.02 1.20
configure.cpython no-host 2,223,941 2,246,574 6,137,600 2,238,244 2.76 1.01
configure.ocaml no-host 410,299 391,379 639,467 413,408 1.56 1.01
configure.tcc no-host 6,548 5,476 23,187 6,998 3.54 1.07
configure.util-linux no-host 2,102,268 2,255,733 5,307,499 2,014,628 2.52 0.96
configure.yash no-host 255,924 243,984 385,397 258,124 1.51 1.01
hello-world no-host 152 81 3,651 348 24.02 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.5 3.5 21.6 8.8 4.85 1.97
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.4 27.3 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.1 19.0 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.1 30.3 30.0 1.01 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 809 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,355 1 60 15.8 27.3 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,456 3 61 22.2 30.0 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,835 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.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,836 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,265 64,454 42,662 4,609 54,543 57,113 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 19 1 4.5 bash
15 no-host abuild-print-help 10 4 5 3.5 dash
23 no-host abuild-print-help 457 405 55 21.6 osh-cpython
31 no-host abuild-print-help 22 15 8 8.8 osh-native
1 no-host bin-true 672 516 187 3.0 bash
9 no-host bin-true 547 417 138 1.4 dash
17 no-host bin-true 2,240 1,449 1,047 17.3 osh-cpython
25 no-host bin-true 809 590 234 8.0 osh-native
2 no-host configure.cpython 15,326 9,184 6,533 27.4 bash
10 no-host configure.cpython 15,393 9,134 6,494 27.4 dash
18 no-host configure.cpython 28,736 17,466 13,120 27.4 osh-cpython
26 no-host configure.cpython 15,355 9,060 6,561 27.3 osh-native
4 no-host configure.ocaml 3,861 1,572 1,314 20.6 bash
12 no-host configure.ocaml 3,784 1,577 1,223 20.6 dash
20 no-host configure.ocaml 4,650 2,211 1,643 20.4 osh-cpython
28 no-host configure.ocaml 3,835 1,674 1,199 20.6 osh-native
5 no-host configure.tcc 48 20 28 19.1 bash
13 no-host configure.tcc 42 20 22 19.0 dash
21 no-host configure.tcc 191 134 59 19.3 osh-cpython
29 no-host configure.tcc 49 25 24 19.4 osh-native
3 no-host configure.util-linux 14,192 8,866 5,803 30.0 bash
11 no-host configure.util-linux 15,039 9,281 6,246 30.1 dash
19 no-host configure.util-linux 31,334 21,165 11,252 30.3 osh-cpython
27 no-host configure.util-linux 14,456 8,669 5,982 30.0 osh-native
6 no-host configure.yash 1,844 1,064 785 24.4 bash
14 no-host configure.yash 1,791 1,049 746 24.2 dash
22 no-host configure.yash 2,451 1,460 1,032 24.4 osh-cpython
30 no-host configure.yash 1,836 1,109 732 24.2 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 30 18 17.2 osh-cpython
24 no-host hello-world 3 0 3 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 41 2 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,152 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,226 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,388 0 0 0 8 0 1,989 46 bash
9 no-host bin-true 66,468 0 0 0 8 0 1,991 54 dash
17 no-host bin-true 746,970 0 0 0 8 0 1,995 274 osh-cpython
25 no-host bin-true 127,190 0 0 0 16 0 1,992 50 osh-native
2 no-host configure.cpython 2,223,941 0 0 0 32,928 0 14,472 1,064 bash
10 no-host configure.cpython 2,246,574 0 0 0 32,992 0 14,659 1,051 dash
18 no-host configure.cpython 6,137,600 0 0 0 27,512 0 13,332 1,162 osh-cpython
26 no-host configure.cpython 2,238,244 0 0 0 27,520 0 13,320 1,150 osh-native
4 no-host configure.ocaml 410,299 0 0 0 5,120 0 1,971 175 bash
12 no-host configure.ocaml 391,379 0 0 0 5,112 0 1,934 154 dash
20 no-host configure.ocaml 639,467 1 0 0 5,112 0 1,854 213 osh-cpython
28 no-host configure.ocaml 413,408 0 0 0 5,120 0 1,934 174 osh-native
5 no-host configure.tcc 6,548 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 23,187 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,998 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,102,268 0 0 0 42,408 0 18,502 1,179 bash
11 no-host configure.util-linux 2,255,733 1 0 0 42,592 0 17,414 1,107 dash
19 no-host configure.util-linux 5,307,499 5 0 0 39,112 0 17,109 1,277 osh-cpython
27 no-host configure.util-linux 2,014,628 0 0 0 39,128 0 17,055 1,081 osh-native
6 no-host configure.yash 255,924 0 0 0 4,120 0 873 92 bash
14 no-host configure.yash 243,984 0 0 0 3,720 0 871 76 dash
22 no-host configure.yash 385,397 0 0 0 3,728 0 860 112 osh-cpython
30 no-host configure.yash 258,124 0 0 0 3,736 0 846 99 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,651 0 0 0 8 0 7 4 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-7c941021
dash dash-308ec8e6
osh-cpython osh-cae7c499
osh-native osh-28844356
host label host id
no-host no-host-13226fd6