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 9 448 23 23.55 1.23
bin-true no-host 680 544 2,271 818 3.34 1.20
configure.cpython no-host 15,064 15,151 29,332 15,302 1.95 1.02
configure.ocaml no-host 3,900 3,784 4,637 3,799 1.19 0.97
configure.tcc no-host 49 41 191 48 3.91 0.99
configure.util-linux no-host 13,879 15,331 31,695 14,415 2.28 1.04
configure.yash no-host 1,824 1,763 2,426 1,822 1.33 1.00
hello-world no-host 2 1 49 3 29.30 1.69

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,536 1,106 22,946 3,165 9.05 1.25
bin-true no-host 105,359 66,453 759,834 126,235 7.21 1.20
configure.cpython no-host 2,213,520 2,239,510 6,180,728 2,224,047 2.79 1.00
configure.ocaml no-host 410,752 390,480 641,568 413,423 1.56 1.01
configure.tcc no-host 6,547 5,463 23,326 7,004 3.56 1.07
configure.util-linux no-host 2,105,032 2,264,900 5,336,661 1,997,854 2.54 0.95
configure.yash no-host 256,633 244,536 385,778 258,332 1.50 1.01
hello-world no-host 152 80 3,696 349 24.32 2.30

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 3.0 1.4 17.6 8.1 5.82 2.70
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.1 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.4 6.2 6.04 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.1 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,302 1 61 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,415 3 60 21.3 30.0 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,799 1 2 2.6 20.4 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,822 1 2 2.6 24.2 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 18 2 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 448 393 59 21.6 osh-cpython
31 no-host abuild-print-help 23 18 6 9.0 osh-native
1 no-host bin-true 680 490 221 3.0 bash
9 no-host bin-true 544 417 137 1.4 dash
17 no-host bin-true 2,271 1,459 1,078 17.6 osh-cpython
25 no-host bin-true 818 584 249 8.1 osh-native
2 no-host configure.cpython 15,064 8,950 6,510 27.4 bash
10 no-host configure.cpython 15,151 9,194 6,391 27.4 dash
18 no-host configure.cpython 29,332 18,010 13,240 27.4 osh-cpython
26 no-host configure.cpython 15,302 8,865 6,711 27.4 osh-native
4 no-host configure.ocaml 3,900 1,696 1,241 20.6 bash
12 no-host configure.ocaml 3,784 1,583 1,221 20.6 dash
20 no-host configure.ocaml 4,637 2,237 1,608 20.6 osh-cpython
28 no-host configure.ocaml 3,799 1,590 1,248 20.4 osh-native
5 no-host configure.tcc 49 37 13 19.3 bash
13 no-host configure.tcc 41 28 13 19.1 dash
21 no-host configure.tcc 191 147 47 19.3 osh-cpython
29 no-host configure.tcc 48 22 27 19.4 osh-native
3 no-host configure.util-linux 13,879 8,818 5,535 30.0 bash
11 no-host configure.util-linux 15,331 9,446 6,392 30.1 dash
19 no-host configure.util-linux 31,695 21,045 11,771 30.0 osh-cpython
27 no-host configure.util-linux 14,415 8,849 5,767 30.0 osh-native
6 no-host configure.yash 1,824 1,046 788 24.4 bash
14 no-host configure.yash 1,763 969 795 24.4 dash
22 no-host configure.yash 2,426 1,561 907 24.4 osh-cpython
30 no-host configure.yash 1,822 1,058 768 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 49 33 16 17.4 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,536 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,946 0 0 0 8 0 44 10 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 4 osh-native
1 no-host bin-true 105,359 0 0 0 8 0 1,997 63 bash
9 no-host bin-true 66,453 0 0 0 8 0 1,994 38 dash
17 no-host bin-true 759,834 0 0 0 8 0 2,002 135 osh-cpython
25 no-host bin-true 126,235 0 0 0 16 0 1,990 51 osh-native
2 no-host configure.cpython 2,213,520 1 0 0 32,928 0 14,517 1,130 bash
10 no-host configure.cpython 2,239,510 0 0 0 32,992 0 14,646 1,039 dash
18 no-host configure.cpython 6,180,728 0 0 0 27,512 0 13,204 1,224 osh-cpython
26 no-host configure.cpython 2,224,047 0 0 0 27,520 0 13,307 937 osh-native
4 no-host configure.ocaml 410,752 0 0 0 5,120 0 1,954 169 bash
12 no-host configure.ocaml 390,480 0 0 0 5,112 0 1,939 165 dash
20 no-host configure.ocaml 641,568 0 0 0 5,112 0 1,860 211 osh-cpython
28 no-host configure.ocaml 413,423 0 0 0 5,120 0 1,930 161 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,326 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,105,032 0 0 0 42,400 0 18,594 1,026 bash
11 no-host configure.util-linux 2,264,900 0 0 0 42,584 0 17,410 1,103 dash
19 no-host configure.util-linux 5,336,661 5 0 0 39,136 0 17,095 1,412 osh-cpython
27 no-host configure.util-linux 1,997,854 0 0 0 39,128 0 17,009 995 osh-native
6 no-host configure.yash 256,633 0 0 0 4,120 0 871 62 bash
14 no-host configure.yash 244,536 0 0 0 3,720 0 869 273 dash
22 no-host configure.yash 385,778 0 0 0 3,728 0 855 80 osh-cpython
30 no-host configure.yash 258,332 0 0 0 3,736 0 850 75 osh-native
0 no-host hello-world 152 0 0 0 8 0 0 1 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,696 0 0 0 8 0 7 3 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-7ae59059
dash dash-308ec8e6
osh-cpython osh-da07ed0d
osh-native osh-a3c2989c
host label host id
no-host no-host-556df3ee