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 456 23 23.17 1.15
bin-true no-host 671 550 2,282 823 3.40 1.23
configure.cpython no-host 15,482 15,567 28,851 15,224 1.86 0.98
configure.ocaml no-host 3,899 3,811 4,618 3,799 1.18 0.97
configure.tcc no-host 49 42 192 49 3.93 1.01
configure.util-linux no-host 14,485 15,260 31,135 14,445 2.15 1.00
configure.yash no-host 1,876 1,796 2,463 1,817 1.31 0.97
hello-world no-host 2 1 50 3 31.41 1.76

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,545 1,094 23,357 3,184 9.18 1.25
bin-true no-host 106,341 66,358 751,436 128,157 7.07 1.21
configure.cpython no-host 2,221,874 2,249,615 6,129,186 2,225,482 2.76 1.00
configure.ocaml no-host 411,160 391,336 639,013 414,006 1.55 1.01
configure.tcc no-host 6,558 5,460 23,167 6,979 3.53 1.06
configure.util-linux no-host 2,096,812 2,265,463 5,296,662 2,013,552 2.53 0.96
configure.yash no-host 256,127 245,018 384,686 258,919 1.50 1.01
hello-world no-host 154 82 3,654 345 23.73 2.24

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.4 21.5 9.0 4.82 2.03
bin-true no-host 3.0 1.3 17.6 8.0 5.83 2.65
configure.cpython no-host 27.5 27.5 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 26.4 24.2 1.08 0.99
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 823 1 2 2.7 8.0 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,224 1 60 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,445 3 62 22.2 30.1 2,703,274 44,770 65,796 126,121 1,320,501 1,256,652 49,081 41 131,592 1
configure.ocaml no-host 3,799 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,817 1 2 2.6 24.2 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 18 2 4.5 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 456 421 38 21.5 osh-cpython
31 no-host abuild-print-help 23 10 13 9.0 osh-native
1 no-host bin-true 671 485 218 3.0 bash
9 no-host bin-true 550 420 136 1.3 dash
17 no-host bin-true 2,282 1,465 1,079 17.6 osh-cpython
25 no-host bin-true 823 584 253 8.0 osh-native
2 no-host configure.cpython 15,482 9,365 6,512 27.5 bash
10 no-host configure.cpython 15,567 9,293 6,697 27.5 dash
18 no-host configure.cpython 28,851 17,669 13,027 27.5 osh-cpython
26 no-host configure.cpython 15,224 8,916 6,564 27.4 osh-native
4 no-host configure.ocaml 3,899 1,708 1,231 20.6 bash
12 no-host configure.ocaml 3,811 1,626 1,202 20.6 dash
20 no-host configure.ocaml 4,618 2,240 1,578 20.6 osh-cpython
28 no-host configure.ocaml 3,799 1,659 1,180 20.6 osh-native
5 no-host configure.tcc 49 27 22 19.3 bash
13 no-host configure.tcc 42 24 19 19.4 dash
21 no-host configure.tcc 192 154 42 19.3 osh-cpython
29 no-host configure.tcc 49 34 16 19.3 osh-native
3 no-host configure.util-linux 14,485 9,106 5,863 30.3 bash
11 no-host configure.util-linux 15,260 9,389 6,357 30.1 dash
19 no-host configure.util-linux 31,135 20,714 11,492 30.3 osh-cpython
27 no-host configure.util-linux 14,445 8,753 5,892 30.1 osh-native
6 no-host configure.yash 1,876 1,076 808 24.5 bash
14 no-host configure.yash 1,796 1,028 771 24.4 dash
22 no-host configure.yash 2,463 1,496 1,008 26.4 osh-cpython
30 no-host configure.yash 1,817 1,033 788 24.2 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 50 31 19 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,545 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,357 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,184 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,341 0 0 0 8 0 1,984 47 bash
9 no-host bin-true 66,358 0 0 0 8 0 1,983 121 dash
17 no-host bin-true 751,436 0 0 0 8 0 1,998 368 osh-cpython
25 no-host bin-true 128,157 0 0 0 16 0 1,988 131 osh-native
2 no-host configure.cpython 2,221,874 0 0 0 32,928 0 14,549 1,033 bash
10 no-host configure.cpython 2,249,615 0 0 0 32,992 0 14,606 1,292 dash
18 no-host configure.cpython 6,129,186 0 0 0 27,512 0 13,213 1,294 osh-cpython
26 no-host configure.cpython 2,225,482 0 0 0 27,520 0 13,260 1,019 osh-native
4 no-host configure.ocaml 411,160 0 0 0 5,120 0 1,950 151 bash
12 no-host configure.ocaml 391,336 0 0 0 5,112 0 1,893 145 dash
20 no-host configure.ocaml 639,013 0 0 0 5,112 0 1,861 183 osh-cpython
28 no-host configure.ocaml 414,006 0 0 0 5,120 0 1,932 190 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 23,167 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,096,812 0 0 0 42,400 0 18,613 1,150 bash
11 no-host configure.util-linux 2,265,463 0 0 0 42,592 0 17,475 1,293 dash
19 no-host configure.util-linux 5,296,662 15 0 0 39,112 0 17,090 1,349 osh-cpython
27 no-host configure.util-linux 2,013,552 0 0 0 39,120 0 17,208 1,091 osh-native
6 no-host configure.yash 256,127 0 0 0 4,120 0 869 87 bash
14 no-host configure.yash 245,018 0 0 0 3,720 0 870 75 dash
22 no-host configure.yash 384,686 0 0 0 3,728 0 857 99 osh-cpython
30 no-host configure.yash 258,919 0 0 0 3,736 0 852 73 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,654 0 0 0 8 0 7 5 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-cdeed7ce
dash dash-308ec8e6
osh-cpython osh-38d6dba7
osh-native osh-fd332952
host label host id
no-host no-host-1c33b689