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 10 465 22 21 24.54 1.17
bin-true no-host 673 536 2,308 812 801 3.43 1.21
configure.cpython no-host 14,791 14,895 28,498 14,987 15,122 1.93 1.01
configure.ocaml no-host 3,765 3,694 4,611 3,776 3,772 1.22 1.00
configure.tcc no-host 47 41 200 48 48 4.22 1.01
configure.util-linux no-host 13,834 14,742 30,839 14,236 14,165 2.23 1.03
configure.yash no-host 1,824 1,740 2,440 1,793 1,791 1.34 0.98
hello-world no-host 2 1 56 3 3 34.28 1.76

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,556 1,101 23,881 3,174 3,089 9.34 1.24
bin-true no-host 106,294 66,466 769,595 126,238 124,273 7.24 1.19
configure.cpython no-host 2,220,478 2,249,561 6,246,702 2,224,113 2,207,851 2.81 1.00
configure.ocaml no-host 410,854 391,360 647,552 413,121 412,606 1.58 1.01
configure.tcc no-host 6,559 5,487 24,103 6,967 6,882 3.67 1.06
configure.util-linux no-host 2,097,366 2,260,527 5,393,868 2,001,430 1,991,974 2.57 0.95
configure.yash no-host 256,417 245,162 388,850 257,286 257,942 1.52 1.00
hello-world no-host 154 79 3,943 346 337 25.60 2.25

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.8 9.0 8.7 5.12 2.03
bin-true no-host 3.0 1.6 18.5 8.0 7.7 6.14 2.65
configure.cpython no-host 27.5 27.5 27.4 27.5 27.4 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.3 19.3 19.3 19.3 19.0 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.0 30.3 30.3 1.00 1.01
configure.yash no-host 24.5 24.2 24.4 24.4 24.5 0.99 0.99
hello-world no-host 2.9 1.3 18.1 6.3 5.9 6.28 2.18

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 812 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 14,987 1 58 14.9 27.5 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,236 2 59 21.2 30.3 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,776 0 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 48 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,793 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 801 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,122 1 57 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,165 2 57 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,772 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.0 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,791 1 2 2.5 24.5 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 17 3 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 465 420 48 22.8 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 673 502 202 3.0 bash
9 no-host bin-true 536 412 134 1.6 dash
17 no-host bin-true 2,308 1,515 1,044 18.5 osh-cpython
25 no-host bin-true 812 582 244 8.0 osh-native
33 no-host bin-true 801 567 246 7.7 osh-native-souffle
2 no-host configure.cpython 14,791 9,006 6,176 27.5 bash
10 no-host configure.cpython 14,895 9,132 6,154 27.5 dash
18 no-host configure.cpython 28,498 17,310 13,028 27.4 osh-cpython
26 no-host configure.cpython 14,987 8,817 6,437 27.5 osh-native
34 no-host configure.cpython 15,122 8,846 6,399 27.4 osh-native-souffle
4 no-host configure.ocaml 3,765 1,622 1,181 20.6 bash
12 no-host configure.ocaml 3,694 1,552 1,162 20.6 dash
20 no-host configure.ocaml 4,611 2,291 1,525 20.6 osh-cpython
28 no-host configure.ocaml 3,776 1,591 1,223 20.6 osh-native
36 no-host configure.ocaml 3,772 1,557 1,250 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 15 19.3 bash
13 no-host configure.tcc 41 36 5 19.3 dash
21 no-host configure.tcc 200 140 63 19.3 osh-cpython
29 no-host configure.tcc 48 30 18 19.3 osh-native
37 no-host configure.tcc 48 32 16 19.0 osh-native-souffle
3 no-host configure.util-linux 13,834 8,724 5,579 30.0 bash
11 no-host configure.util-linux 14,742 9,066 6,165 30.1 dash
19 no-host configure.util-linux 30,839 20,639 11,261 30.0 osh-cpython
27 no-host configure.util-linux 14,236 8,669 5,766 30.3 osh-native
35 no-host configure.util-linux 14,165 8,501 5,859 30.3 osh-native-souffle
6 no-host configure.yash 1,824 1,045 783 24.5 bash
14 no-host configure.yash 1,740 1,028 715 24.2 dash
22 no-host configure.yash 2,440 1,508 973 24.4 osh-cpython
30 no-host configure.yash 1,793 1,031 766 24.4 osh-native
38 no-host configure.yash 1,791 981 814 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 56 32 23 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,556 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 6 dash
23 no-host abuild-print-help 23,881 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 41 2 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,294 0 0 0 8 0 1,991 55 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,987 40 dash
17 no-host bin-true 769,595 0 0 0 8 0 1,999 194 osh-cpython
25 no-host bin-true 126,238 0 0 0 16 0 1,986 91 osh-native
33 no-host bin-true 124,273 0 0 0 16 0 1,989 74 osh-native-souffle
2 no-host configure.cpython 2,220,478 0 0 0 32,928 0 14,434 984 bash
10 no-host configure.cpython 2,249,561 0 0 0 32,992 0 14,697 883 dash
18 no-host configure.cpython 6,246,702 1 0 0 27,512 0 13,305 1,130 osh-cpython
26 no-host configure.cpython 2,224,113 0 0 0 27,520 0 13,195 976 osh-native
34 no-host configure.cpython 2,207,851 0 0 0 27,520 0 13,260 928 osh-native-souffle
4 no-host configure.ocaml 410,854 0 0 0 5,120 0 1,942 153 bash
12 no-host configure.ocaml 391,360 0 0 0 5,112 0 1,875 158 dash
20 no-host configure.ocaml 647,552 1 0 0 5,112 0 1,854 172 osh-cpython
28 no-host configure.ocaml 413,121 0 0 0 5,120 0 1,927 185 osh-native
36 no-host configure.ocaml 412,606 0 0 0 5,120 0 1,935 154 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,103 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,882 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,097,366 0 0 0 42,400 0 18,614 1,132 bash
11 no-host configure.util-linux 2,260,527 0 0 0 42,584 0 17,405 1,062 dash
19 no-host configure.util-linux 5,393,868 12 0 0 39,112 0 16,944 1,300 osh-cpython
27 no-host configure.util-linux 2,001,430 1 0 0 39,128 0 16,981 941 osh-native
35 no-host configure.util-linux 1,991,974 0 0 0 39,136 0 16,957 970 osh-native-souffle
6 no-host configure.yash 256,417 0 0 0 4,120 0 876 70 bash
14 no-host configure.yash 245,162 0 0 0 3,720 0 872 82 dash
22 no-host configure.yash 388,850 0 0 0 3,728 0 853 201 osh-cpython
30 no-host configure.yash 257,286 0 0 0 3,736 0 848 89 osh-native
38 no-host configure.yash 257,942 0 0 0 3,736 0 851 79 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 1 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,943 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 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-f90fcc0c
dash dash-0ebcf347
osh-cpython osh-dab51145
osh-native osh-7e111c0e
osh-native-souffle osh-cf1f7aa9
host label host id
no-host no-host-556df3ee