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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 467 22 21 24.39 1.14
bin-true no-host 673 545 2,304 804 812 3.43 1.20
configure.cpython no-host 14,877 14,933 28,531 15,109 15,166 1.92 1.02
configure.ocaml no-host 3,768 3,702 4,628 3,788 3,792 1.23 1.01
configure.tcc no-host 47 41 201 49 48 4.28 1.05
configure.util-linux no-host 13,862 14,727 31,183 14,200 14,169 2.25 1.02
configure.yash no-host 1,806 1,746 2,440 1,805 1,809 1.35 1.00
hello-world no-host 1 1 55 3 3 38.15 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,514 1,111 23,849 3,168 3,124 9.49 1.26
bin-true no-host 107,314 66,444 770,606 126,310 126,264 7.18 1.18
configure.cpython no-host 2,220,249 2,244,882 6,244,699 2,221,245 2,204,867 2.81 1.00
configure.ocaml no-host 410,187 391,603 647,298 412,594 412,361 1.58 1.01
configure.tcc no-host 6,548 5,469 24,134 6,948 6,901 3.69 1.06
configure.util-linux no-host 2,101,830 2,261,809 5,399,709 1,989,417 1,990,686 2.57 0.95
configure.yash no-host 255,325 244,501 388,759 257,605 258,169 1.52 1.01
hello-world no-host 152 80 3,943 341 337 25.94 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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 22.5 9.0 8.7 5.04 2.03
bin-true no-host 2.8 1.6 18.2 8.1 7.3 6.61 2.95
configure.cpython no-host 27.5 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.4 30.0 30.0 1.01 1.00
configure.yash no-host 24.2 24.5 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.8 1.3 18.2 6.3 5.9 6.62 2.29

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.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 804 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,109 2 62 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,200 3 59 21.2 30.0 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,788 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,805 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.3 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,166 1 59 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,169 3 58 21.2 30.0 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,792 0 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,809 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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.5 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 467 432 38 22.5 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 673 500 203 2.8 bash
9 no-host bin-true 545 425 127 1.6 dash
17 no-host bin-true 2,304 1,495 1,065 18.2 osh-cpython
25 no-host bin-true 804 564 254 8.1 osh-native
33 no-host bin-true 812 585 241 7.3 osh-native-souffle
2 no-host configure.cpython 14,877 8,896 6,378 27.5 bash
10 no-host configure.cpython 14,933 9,108 6,244 27.3 dash
18 no-host configure.cpython 28,531 17,048 13,327 27.4 osh-cpython
26 no-host configure.cpython 15,109 8,863 6,511 27.4 osh-native
34 no-host configure.cpython 15,166 8,724 6,531 27.4 osh-native-souffle
4 no-host configure.ocaml 3,768 1,587 1,222 20.6 bash
12 no-host configure.ocaml 3,702 1,517 1,203 20.6 dash
20 no-host configure.ocaml 4,628 2,232 1,601 20.4 osh-cpython
28 no-host configure.ocaml 3,788 1,602 1,223 20.6 osh-native
36 no-host configure.ocaml 3,792 1,646 1,181 20.4 osh-native-souffle
5 no-host configure.tcc 47 30 18 19.3 bash
13 no-host configure.tcc 41 17 24 19.3 dash
21 no-host configure.tcc 201 155 49 19.3 osh-cpython
29 no-host configure.tcc 49 28 22 19.3 osh-native
37 no-host configure.tcc 48 28 20 19.3 osh-native-souffle
3 no-host configure.util-linux 13,862 8,723 5,600 30.0 bash
11 no-host configure.util-linux 14,727 9,096 6,121 30.1 dash
19 no-host configure.util-linux 31,183 21,004 11,249 30.4 osh-cpython
27 no-host configure.util-linux 14,200 8,532 5,863 30.0 osh-native
35 no-host configure.util-linux 14,169 8,442 5,927 30.0 osh-native-souffle
6 no-host configure.yash 1,806 1,035 780 24.2 bash
14 no-host configure.yash 1,746 1,018 731 24.5 dash
22 no-host configure.yash 2,440 1,525 954 24.4 osh-cpython
30 no-host configure.yash 1,805 956 851 24.4 osh-native
38 no-host configure.yash 1,809 1,007 806 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 55 28 27 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

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,514 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,849 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,168 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,124 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,314 0 0 0 8 0 1,990 43 bash
9 no-host bin-true 66,444 0 0 0 8 0 1,991 80 dash
17 no-host bin-true 770,606 0 0 0 8 0 1,997 265 osh-cpython
25 no-host bin-true 126,310 0 0 0 16 0 1,989 54 osh-native
33 no-host bin-true 126,264 0 0 0 16 0 1,983 180 osh-native-souffle
2 no-host configure.cpython 2,220,249 0 0 0 32,928 0 14,524 935 bash
10 no-host configure.cpython 2,244,882 0 0 0 32,992 0 14,612 1,139 dash
18 no-host configure.cpython 6,244,699 0 0 0 27,512 0 13,243 1,152 osh-cpython
26 no-host configure.cpython 2,221,245 0 0 0 27,520 0 13,268 1,046 osh-native
34 no-host configure.cpython 2,204,867 0 0 0 27,520 0 13,133 998 osh-native-souffle
4 no-host configure.ocaml 410,187 0 0 0 5,120 0 1,948 163 bash
12 no-host configure.ocaml 391,603 0 0 0 5,112 0 1,947 144 dash
20 no-host configure.ocaml 647,298 0 0 0 5,112 0 1,860 180 osh-cpython
28 no-host configure.ocaml 412,594 0 0 0 5,120 0 1,929 156 osh-native
36 no-host configure.ocaml 412,361 0 0 0 5,120 0 1,930 246 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,134 0 0 0 96 0 54 9 osh-cpython
29 no-host configure.tcc 6,948 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,901 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,101,830 0 0 0 42,408 0 18,589 983 bash
11 no-host configure.util-linux 2,261,809 0 0 0 42,592 0 17,429 957 dash
19 no-host configure.util-linux 5,399,709 20 0 0 39,112 0 16,990 1,072 osh-cpython
27 no-host configure.util-linux 1,989,417 0 0 0 39,120 0 16,994 937 osh-native
35 no-host configure.util-linux 1,990,686 2 0 0 39,128 0 16,977 983 osh-native-souffle
6 no-host configure.yash 255,325 0 0 0 4,120 0 869 86 bash
14 no-host configure.yash 244,501 0 0 0 3,720 0 869 78 dash
22 no-host configure.yash 388,759 0 0 0 3,728 0 852 80 osh-cpython
30 no-host configure.yash 257,605 0 0 0 3,736 0 847 73 osh-native
38 no-host configure.yash 258,169 0 0 0 3,736 0 848 71 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,943 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b2389eb9
dash dash-0ebcf347
osh-cpython osh-ae70f75b
osh-native osh-f58daad5
osh-native-souffle osh-f07304dd
host label host id
no-host no-host-556df3ee