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 460 22 21 23.97 1.15
bin-true no-host 680 545 2,299 817 812 3.38 1.20
configure.cpython no-host 15,294 15,054 28,821 15,291 15,393 1.88 1.00
configure.ocaml no-host 3,804 3,733 4,661 3,868 3,803 1.23 1.02
configure.tcc no-host 47 41 202 51 48 4.27 1.07
configure.util-linux no-host 13,981 14,880 31,529 14,441 14,333 2.26 1.03
configure.yash no-host 1,851 1,785 2,474 1,856 1,829 1.34 1.00
hello-world no-host 2 1 57 3 3 37.41 1.89

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,593 1,133 23,450 3,213 3,082 9.04 1.24
bin-true no-host 105,375 66,416 759,000 127,118 125,229 7.20 1.21
configure.cpython no-host 2,224,365 2,242,194 6,197,817 2,218,174 2,216,286 2.79 1.00
configure.ocaml no-host 411,276 391,112 643,172 413,017 412,545 1.56 1.00
configure.tcc no-host 6,538 5,468 23,905 6,931 6,918 3.66 1.06
configure.util-linux no-host 2,102,464 2,262,373 5,354,061 2,000,098 1,988,219 2.55 0.95
configure.yash no-host 256,680 244,971 386,965 258,436 258,011 1.51 1.01
hello-world no-host 156 84 3,951 346 337 25.33 2.22

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.7 8.9 8.5 5.10 2.00
bin-true no-host 2.9 1.3 18.5 8.1 7.6 6.42 2.82
configure.cpython no-host 27.3 27.5 27.4 27.4 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.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.6 18.4 6.3 5.9 6.38 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,291 1 63 14.9 27.4 1,771,804 49,616 28,523 85,427 878,138 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,441 3 61 21.2 30.3 2,702,550 45,811 65,722 108,699 1,290,655 1,303,196 32,241 41 131,444 1
configure.ocaml no-host 3,868 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,856 1 2 2.5 24.2 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 5.9 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.6 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,393 1 60 14.9 27.4 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,333 3 59 21.2 30.1 2,702,550 53,704 65,660 108,701 1,290,655 1,303,194 32,241 41 131,320 1
configure.ocaml no-host 3,803 1 2 2.6 20.6 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,829 1 2 2.5 24.2 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 9 9 1 3.5 dash
23 no-host abuild-print-help 460 416 47 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 8.9 osh-native
39 no-host abuild-print-help 21 16 5 8.5 osh-native-souffle
1 no-host bin-true 680 503 211 2.9 bash
9 no-host bin-true 545 418 135 1.3 dash
17 no-host bin-true 2,299 1,538 1,022 18.5 osh-cpython
25 no-host bin-true 817 581 252 8.1 osh-native
33 no-host bin-true 812 584 244 7.6 osh-native-souffle
2 no-host configure.cpython 15,294 9,143 6,549 27.3 bash
10 no-host configure.cpython 15,054 9,014 6,441 27.5 dash
18 no-host configure.cpython 28,821 17,677 12,985 27.4 osh-cpython
26 no-host configure.cpython 15,291 8,966 6,588 27.4 osh-native
34 no-host configure.cpython 15,393 9,069 6,414 27.4 osh-native-souffle
4 no-host configure.ocaml 3,804 1,632 1,209 20.6 bash
12 no-host configure.ocaml 3,733 1,595 1,154 20.6 dash
20 no-host configure.ocaml 4,661 2,250 1,621 20.6 osh-cpython
28 no-host configure.ocaml 3,868 1,646 1,262 20.6 osh-native
36 no-host configure.ocaml 3,803 1,636 1,204 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 41 32 10 19.3 dash
21 no-host configure.tcc 202 136 70 19.3 osh-cpython
29 no-host configure.tcc 51 39 12 19.4 osh-native
37 no-host configure.tcc 48 26 22 19.3 osh-native-souffle
3 no-host configure.util-linux 13,981 8,919 5,535 30.1 bash
11 no-host configure.util-linux 14,880 9,229 6,135 30.1 dash
19 no-host configure.util-linux 31,529 21,017 11,586 30.1 osh-cpython
27 no-host configure.util-linux 14,441 8,841 5,789 30.3 osh-native
35 no-host configure.util-linux 14,333 8,660 5,861 30.1 osh-native-souffle
6 no-host configure.yash 1,851 1,086 774 24.4 bash
14 no-host configure.yash 1,785 1,011 775 24.4 dash
22 no-host configure.yash 2,474 1,575 939 24.2 osh-cpython
30 no-host configure.yash 1,856 1,009 851 24.2 osh-native
38 no-host configure.yash 1,829 1,082 750 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 57 40 16 18.4 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,593 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,450 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,082 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,375 0 0 0 8 0 1,992 72 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,988 45 dash
17 no-host bin-true 759,000 0 0 0 8 0 2,003 292 osh-cpython
25 no-host bin-true 127,118 0 0 0 16 0 1,987 77 osh-native
33 no-host bin-true 125,229 0 0 0 16 0 1,987 80 osh-native-souffle
2 no-host configure.cpython 2,224,365 0 0 0 32,928 0 14,541 1,026 bash
10 no-host configure.cpython 2,242,194 1 0 0 32,992 0 14,622 1,218 dash
18 no-host configure.cpython 6,197,817 1 0 0 27,512 0 13,256 1,169 osh-cpython
26 no-host configure.cpython 2,218,174 0 0 0 27,520 0 13,272 1,077 osh-native
34 no-host configure.cpython 2,216,286 0 0 0 27,520 0 13,273 909 osh-native-souffle
4 no-host configure.ocaml 411,276 0 0 0 5,120 0 1,959 164 bash
12 no-host configure.ocaml 391,112 0 0 0 5,112 0 1,892 138 dash
20 no-host configure.ocaml 643,172 0 0 0 5,112 0 1,860 168 osh-cpython
28 no-host configure.ocaml 413,017 0 0 0 5,120 0 1,927 156 osh-native
36 no-host configure.ocaml 412,545 0 0 0 5,120 0 1,928 141 osh-native-souffle
5 no-host configure.tcc 6,538 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,905 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,931 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,102,464 0 0 0 42,400 0 18,558 902 bash
11 no-host configure.util-linux 2,262,373 1 0 0 42,584 0 17,495 959 dash
19 no-host configure.util-linux 5,354,061 12 0 0 39,112 0 16,959 1,140 osh-cpython
27 no-host configure.util-linux 2,000,098 0 0 0 39,120 0 16,965 1,062 osh-native
35 no-host configure.util-linux 1,988,219 0 0 0 39,128 0 17,012 933 osh-native-souffle
6 no-host configure.yash 256,680 0 0 0 4,120 0 870 77 bash
14 no-host configure.yash 244,971 0 0 0 3,720 0 866 98 dash
22 no-host configure.yash 386,965 0 0 0 3,728 0 850 78 osh-cpython
30 no-host configure.yash 258,436 0 0 0 3,736 0 851 68 osh-native
38 no-host configure.yash 258,011 0 0 0 3,736 0 849 79 osh-native-souffle
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,951 0 0 0 8 0 7 6 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-c4672d25
dash dash-0ebcf347
osh-cpython osh-4bb1d225
osh-native osh-c2024454
osh-native-souffle osh-56d32f47
host label host id
no-host no-host-556df3ee