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 463 23 23.86 1.19
bin-true no-host 693 549 2,288 822 3.30 1.19
configure.cpython no-host 15,381 15,465 29,320 15,704 1.91 1.02
configure.ocaml no-host 3,901 3,807 4,723 3,929 1.21 1.01
configure.tcc no-host 48 42 195 50 4.05 1.03
configure.util-linux no-host 14,332 15,225 32,060 14,804 2.24 1.03
configure.yash no-host 1,870 1,802 2,509 1,885 1.34 1.01
hello-world no-host 2 1 49 3 30.78 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,531 1,150 23,415 3,207 9.25 1.27
bin-true no-host 107,321 65,388 753,387 125,199 7.02 1.17
configure.cpython no-host 2,220,175 2,245,482 6,135,548 2,232,182 2.76 1.01
configure.ocaml no-host 410,602 391,057 638,990 413,460 1.56 1.01
configure.tcc no-host 6,544 5,496 23,222 6,992 3.55 1.07
configure.util-linux no-host 2,101,001 2,260,523 5,330,220 2,008,947 2.54 0.96
configure.yash no-host 256,249 245,091 386,073 258,152 1.51 1.01
hello-world no-host 152 81 3,655 345 24.05 2.27

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.9 4.97 2.06
bin-true no-host 3.0 1.4 17.3 8.1 5.74 2.70
configure.cpython no-host 27.5 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.5 0.99 1.00
hello-world no-host 2.9 1.4 17.2 6.0 5.95 2.09

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.0 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 822 1 2 2.7 8.1 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,704 1 62 15.8 27.4 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,804 3 64 22.2 30.3 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,929 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 50 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,885 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.9 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 18 2 4.3 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 463 413 53 21.5 osh-cpython
31 no-host abuild-print-help 23 19 5 8.9 osh-native
1 no-host bin-true 693 495 230 3.0 bash
9 no-host bin-true 549 423 134 1.4 dash
17 no-host bin-true 2,288 1,492 1,064 17.3 osh-cpython
25 no-host bin-true 822 605 231 8.1 osh-native
2 no-host configure.cpython 15,381 9,436 6,349 27.5 bash
10 no-host configure.cpython 15,465 9,248 6,634 27.3 dash
18 no-host configure.cpython 29,320 17,545 13,668 27.5 osh-cpython
26 no-host configure.cpython 15,704 9,242 6,725 27.4 osh-native
4 no-host configure.ocaml 3,901 1,745 1,195 20.6 bash
12 no-host configure.ocaml 3,807 1,687 1,139 20.4 dash
20 no-host configure.ocaml 4,723 2,231 1,698 20.4 osh-cpython
28 no-host configure.ocaml 3,929 1,683 1,284 20.6 osh-native
5 no-host configure.tcc 48 32 17 19.4 bash
13 no-host configure.tcc 42 31 11 19.4 dash
21 no-host configure.tcc 195 136 62 19.3 osh-cpython
29 no-host configure.tcc 50 36 14 19.3 osh-native
3 no-host configure.util-linux 14,332 9,144 5,670 30.3 bash
11 no-host configure.util-linux 15,225 9,309 6,405 30.1 dash
19 no-host configure.util-linux 32,060 21,382 11,797 30.1 osh-cpython
27 no-host configure.util-linux 14,804 8,870 6,125 30.3 osh-native
6 no-host configure.yash 1,870 1,099 781 24.5 bash
14 no-host configure.yash 1,802 1,026 779 24.4 dash
22 no-host configure.yash 2,509 1,524 1,028 24.2 osh-cpython
30 no-host configure.yash 1,885 1,008 881 24.5 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 37 12 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,531 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,415 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,321 0 0 0 8 0 1,989 51 bash
9 no-host bin-true 65,388 0 0 0 8 0 1,983 40 dash
17 no-host bin-true 753,387 0 0 0 8 0 1,997 208 osh-cpython
25 no-host bin-true 125,199 0 0 0 16 0 1,987 53 osh-native
2 no-host configure.cpython 2,220,175 0 0 0 32,928 0 14,426 1,085 bash
10 no-host configure.cpython 2,245,482 1 0 0 32,992 0 14,608 1,209 dash
18 no-host configure.cpython 6,135,548 0 0 0 27,512 0 13,242 1,323 osh-cpython
26 no-host configure.cpython 2,232,182 0 0 0 27,520 0 13,265 1,021 osh-native
4 no-host configure.ocaml 410,602 0 0 0 5,120 0 1,955 148 bash
12 no-host configure.ocaml 391,057 0 0 0 5,112 0 1,903 148 dash
20 no-host configure.ocaml 638,990 0 0 0 5,112 0 1,853 209 osh-cpython
28 no-host configure.ocaml 413,460 0 0 0 5,120 0 1,937 170 osh-native
5 no-host configure.tcc 6,544 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,496 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,222 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,992 0 0 0 104 0 46 2 osh-native
3 no-host configure.util-linux 2,101,001 0 0 0 42,400 0 18,549 1,029 bash
11 no-host configure.util-linux 2,260,523 2 0 0 42,584 0 17,309 1,227 dash
19 no-host configure.util-linux 5,330,220 10 0 0 39,144 0 17,066 1,337 osh-cpython
27 no-host configure.util-linux 2,008,947 3 0 0 39,128 0 17,026 1,126 osh-native
6 no-host configure.yash 256,249 0 0 0 4,120 0 870 59 bash
14 no-host configure.yash 245,091 0 0 0 3,720 0 867 99 dash
22 no-host configure.yash 386,073 0 0 0 3,728 0 854 105 osh-cpython
30 no-host configure.yash 258,152 0 0 0 3,736 0 854 89 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,655 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-623b4194
dash dash-308ec8e6
osh-cpython osh-17397fae
osh-native osh-d8864cec
host label host id
no-host no-host-13226fd6