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 468 22 21 24.33 1.13
bin-true no-host 681 547 2,344 813 805 3.44 1.19
configure.cpython no-host 15,035 15,055 28,709 15,207 15,357 1.91 1.01
configure.ocaml no-host 3,807 3,734 4,658 3,816 3,803 1.22 1.00
configure.tcc no-host 48 42 202 49 48 4.26 1.03
configure.util-linux no-host 13,968 14,859 31,413 14,352 14,264 2.25 1.03
configure.yash no-host 1,812 1,771 2,463 1,824 1,855 1.36 1.01
hello-world no-host 1 1 59 3 3 39.80 1.91

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,510 1,120 23,888 3,193 3,112 9.52 1.27
bin-true no-host 107,390 66,478 773,643 126,249 125,293 7.20 1.18
configure.cpython no-host 2,225,728 2,241,375 6,215,087 2,223,782 2,203,523 2.79 1.00
configure.ocaml no-host 410,411 390,726 646,359 413,006 412,061 1.57 1.01
configure.tcc no-host 6,572 5,494 23,999 6,944 6,912 3.65 1.06
configure.util-linux no-host 2,101,207 2,260,379 5,384,302 2,001,475 1,983,947 2.56 0.95
configure.yash no-host 256,458 244,763 388,374 257,876 255,861 1.51 1.01
hello-world no-host 148 79 3,950 345 337 26.69 2.33

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.3 3.4 22.4 9.0 8.7 5.19 2.09
bin-true no-host 2.9 1.3 18.5 8.1 7.6 6.41 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.1 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.2 24.5 24.4 24.4 1.00 0.99
hello-world no-host 2.8 1.4 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 813 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,207 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,352 3 61 21.2 30.1 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,816 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,824 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 805 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,357 1 61 14.9 27.5 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,264 3 61 21.2 30.3 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,803 0 2 2.6 20.6 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,855 1 2 2.5 24.4 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 13 6 4.3 bash
15 no-host abuild-print-help 9 6 3 3.4 dash
23 no-host abuild-print-help 468 433 39 22.4 osh-cpython
31 no-host abuild-print-help 22 10 12 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 681 507 207 2.9 bash
9 no-host bin-true 547 422 135 1.3 dash
17 no-host bin-true 2,344 1,546 1,063 18.5 osh-cpython
25 no-host bin-true 813 569 258 8.1 osh-native
33 no-host bin-true 805 585 235 7.6 osh-native-souffle
2 no-host configure.cpython 15,035 8,946 6,491 27.4 bash
10 no-host configure.cpython 15,055 9,175 6,300 27.4 dash
18 no-host configure.cpython 28,709 17,765 12,781 27.4 osh-cpython
26 no-host configure.cpython 15,207 9,107 6,362 27.4 osh-native
34 no-host configure.cpython 15,357 8,977 6,493 27.5 osh-native-souffle
4 no-host configure.ocaml 3,807 1,647 1,197 20.6 bash
12 no-host configure.ocaml 3,734 1,575 1,178 20.6 dash
20 no-host configure.ocaml 4,658 2,299 1,550 20.6 osh-cpython
28 no-host configure.ocaml 3,816 1,611 1,243 20.6 osh-native
36 no-host configure.ocaml 3,803 1,586 1,254 20.6 osh-native-souffle
5 no-host configure.tcc 48 35 13 19.4 bash
13 no-host configure.tcc 42 22 20 19.4 dash
21 no-host configure.tcc 202 152 53 19.1 osh-cpython
29 no-host configure.tcc 49 31 18 19.3 osh-native
37 no-host configure.tcc 48 33 15 19.3 osh-native-souffle
3 no-host configure.util-linux 13,968 8,770 5,672 30.3 bash
11 no-host configure.util-linux 14,859 9,171 6,174 30.1 dash
19 no-host configure.util-linux 31,413 21,132 11,356 30.3 osh-cpython
27 no-host configure.util-linux 14,352 8,750 5,800 30.1 osh-native
35 no-host configure.util-linux 14,264 8,654 5,794 30.3 osh-native-souffle
6 no-host configure.yash 1,812 979 841 24.5 bash
14 no-host configure.yash 1,771 1,084 690 24.2 dash
22 no-host configure.yash 2,463 1,507 997 24.5 osh-cpython
30 no-host configure.yash 1,824 1,079 748 24.4 osh-native
38 no-host configure.yash 1,855 1,113 746 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 59 42 17 18.2 osh-cpython
24 no-host hello-world 3 0 3 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,510 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,120 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,888 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,390 0 0 0 8 0 1,986 133 bash
9 no-host bin-true 66,478 0 0 0 8 0 1,987 94 dash
17 no-host bin-true 773,643 0 0 0 8 0 1,994 399 osh-cpython
25 no-host bin-true 126,249 0 0 0 16 0 1,984 65 osh-native
33 no-host bin-true 125,293 0 0 0 16 0 1,994 99 osh-native-souffle
2 no-host configure.cpython 2,225,728 0 0 0 32,928 0 14,522 932 bash
10 no-host configure.cpython 2,241,375 0 0 0 32,992 0 14,675 958 dash
18 no-host configure.cpython 6,215,087 0 0 0 27,512 0 13,237 1,265 osh-cpython
26 no-host configure.cpython 2,223,782 1 0 0 27,520 0 13,177 1,150 osh-native
34 no-host configure.cpython 2,203,523 0 0 0 27,520 0 13,265 967 osh-native-souffle
4 no-host configure.ocaml 410,411 0 0 0 5,120 0 1,946 280 bash
12 no-host configure.ocaml 390,726 0 0 0 5,112 0 1,889 137 dash
20 no-host configure.ocaml 646,359 1 0 0 5,112 0 1,860 175 osh-cpython
28 no-host configure.ocaml 413,006 0 0 0 5,120 0 1,931 166 osh-native
36 no-host configure.ocaml 412,061 0 0 0 5,120 0 1,934 165 osh-native-souffle
5 no-host configure.tcc 6,572 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,999 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,944 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,101,207 1 0 0 42,400 0 18,642 946 bash
11 no-host configure.util-linux 2,260,379 0 0 0 42,584 0 17,433 980 dash
19 no-host configure.util-linux 5,384,302 4 0 0 39,120 0 16,980 1,198 osh-cpython
27 no-host configure.util-linux 2,001,475 1 0 0 39,120 0 17,134 908 osh-native
35 no-host configure.util-linux 1,983,947 3 0 0 39,128 0 17,011 921 osh-native-souffle
6 no-host configure.yash 256,458 0 0 0 4,120 0 871 75 bash
14 no-host configure.yash 244,763 0 0 0 3,720 0 866 74 dash
22 no-host configure.yash 388,374 0 0 0 3,728 0 852 86 osh-cpython
30 no-host configure.yash 257,876 0 0 0 3,736 0 848 76 osh-native
38 no-host configure.yash 255,861 0 0 0 3,736 0 849 95 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,950 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 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-de6fff2b
dash dash-0ebcf347
osh-cpython osh-95d0a771
osh-native osh-5a97cb97
osh-native-souffle osh-46ebbcd3
host label host id
no-host no-host-556df3ee