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 449 22 23.15 1.14
bin-true no-host 680 546 2,202 819 3.24 1.20
configure.cpython no-host 14,987 15,067 28,328 15,286 1.89 1.02
configure.ocaml no-host 3,793 3,725 4,602 3,821 1.21 1.01
configure.tcc no-host 47 42 191 49 4.04 1.04
configure.util-linux no-host 14,003 14,928 31,069 14,456 2.22 1.03
configure.yash no-host 1,806 1,758 2,434 1,824 1.35 1.01
hello-world no-host 2 1 47 3 29.16 1.72

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,096 23,070 3,160 9.11 1.25
bin-true no-host 106,421 67,442 744,972 126,571 7.00 1.19
configure.cpython no-host 2,225,056 2,241,067 6,069,812 2,240,983 2.73 1.01
configure.ocaml no-host 410,034 390,731 634,489 413,822 1.55 1.01
configure.tcc no-host 6,577 5,476 22,962 6,977 3.49 1.06
configure.util-linux no-host 2,104,341 2,261,057 5,292,781 2,020,173 2.52 0.96
configure.yash no-host 255,555 245,081 383,399 259,105 1.50 1.01
hello-world no-host 153 80 3,626 341 23.70 2.23

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.6 8.7 5.00 2.00
bin-true no-host 3.0 1.4 17.2 8.0 5.70 2.65
configure.cpython no-host 27.5 27.5 27.4 27.3 1.00 0.99
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.4 30.3 30.1 30.3 0.99 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.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.2 6.0 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 819 1 2 2.7 8.0 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,286 1 60 15.9 27.3 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,456 3 59 22.2 30.3 2,695,085 29,056 65,754 126,121 1,312,366 1,256,598 49,081 41 131,508 1
configure.ocaml no-host 3,821 1 2 2.7 20.6 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 24.2 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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 14 5 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 449 394 58 21.6 osh-cpython
31 no-host abuild-print-help 22 10 12 8.7 osh-native
1 no-host bin-true 680 516 196 3.0 bash
9 no-host bin-true 546 440 116 1.4 dash
17 no-host bin-true 2,202 1,479 967 17.2 osh-cpython
25 no-host bin-true 819 593 242 8.0 osh-native
2 no-host configure.cpython 14,987 9,065 6,319 27.5 bash
10 no-host configure.cpython 15,067 9,114 6,379 27.5 dash
18 no-host configure.cpython 28,328 17,298 12,803 27.4 osh-cpython
26 no-host configure.cpython 15,286 9,076 6,477 27.3 osh-native
4 no-host configure.ocaml 3,793 1,614 1,209 20.6 bash
12 no-host configure.ocaml 3,725 1,563 1,182 20.4 dash
20 no-host configure.ocaml 4,602 2,229 1,569 20.6 osh-cpython
28 no-host configure.ocaml 3,821 1,612 1,248 20.6 osh-native
5 no-host configure.tcc 47 33 15 19.3 bash
13 no-host configure.tcc 42 30 12 19.3 dash
21 no-host configure.tcc 191 130 64 19.3 osh-cpython
29 no-host configure.tcc 49 33 17 19.4 osh-native
3 no-host configure.util-linux 14,003 8,778 5,690 30.4 bash
11 no-host configure.util-linux 14,928 9,152 6,264 30.3 dash
19 no-host configure.util-linux 31,069 20,563 11,558 30.1 osh-cpython
27 no-host configure.util-linux 14,456 8,708 5,936 30.3 osh-native
6 no-host configure.yash 1,806 1,069 747 24.4 bash
14 no-host configure.yash 1,758 1,065 696 24.4 dash
22 no-host configure.yash 2,434 1,507 965 24.4 osh-cpython
30 no-host configure.yash 1,824 1,131 697 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 47 26 21 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,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,070 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,421 0 0 0 8 0 1,993 37 bash
9 no-host bin-true 67,442 0 0 0 8 0 1,991 48 dash
17 no-host bin-true 744,972 0 0 0 8 0 1,998 175 osh-cpython
25 no-host bin-true 126,571 0 0 0 16 0 1,987 178 osh-native
2 no-host configure.cpython 2,225,056 0 0 0 32,928 0 14,578 1,034 bash
10 no-host configure.cpython 2,241,067 0 0 0 32,992 0 14,730 1,209 dash
18 no-host configure.cpython 6,069,812 0 0 0 27,512 0 13,395 1,162 osh-cpython
26 no-host configure.cpython 2,240,983 0 0 0 27,520 0 13,392 1,002 osh-native
4 no-host configure.ocaml 410,034 0 0 0 5,120 0 1,969 174 bash
12 no-host configure.ocaml 390,731 0 0 0 5,112 0 1,926 143 dash
20 no-host configure.ocaml 634,489 0 0 0 5,112 0 1,857 152 osh-cpython
28 no-host configure.ocaml 413,822 0 0 0 5,120 0 1,926 162 osh-native
5 no-host configure.tcc 6,577 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,962 0 0 0 96 0 51 9 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,104,341 0 0 0 42,400 0 18,540 990 bash
11 no-host configure.util-linux 2,261,057 0 0 0 42,584 0 17,319 1,085 dash
19 no-host configure.util-linux 5,292,781 12 0 0 39,128 0 17,070 1,160 osh-cpython
27 no-host configure.util-linux 2,020,173 0 0 0 39,120 0 17,043 1,112 osh-native
6 no-host configure.yash 255,555 0 0 0 4,120 0 872 67 bash
14 no-host configure.yash 245,081 0 0 0 3,720 0 869 96 dash
22 no-host configure.yash 383,399 0 0 0 3,728 0 854 78 osh-cpython
30 no-host configure.yash 259,105 0 0 0 3,736 0 852 75 osh-native
0 no-host hello-world 153 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,626 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1d5f3901
dash dash-308ec8e6
osh-cpython osh-46ca2770
osh-native osh-422d6511
host label host id
no-host no-host-f581f4dd