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 485 22 22 25.05 1.13
bin-true no-host 664 543 2,461 842 796 3.71 1.27
configure.cpython no-host 15,247 15,582 30,478 15,458 15,381 2.00 1.01
configure.ocaml no-host 3,915 3,829 4,777 3,876 3,846 1.22 0.99
configure.tcc no-host 48 42 219 49 48 4.58 1.03
configure.util-linux no-host 14,230 15,194 32,822 14,644 14,375 2.31 1.03
configure.yash no-host 1,873 1,826 2,573 1,866 1,865 1.37 1.00
hello-world no-host 2 1 60 3 3 38.04 1.79

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,569 1,139 24,126 3,183 3,090 9.39 1.24
bin-true no-host 106,375 66,463 801,890 127,235 126,188 7.54 1.20
configure.cpython no-host 1,992,376 2,026,141 6,079,522 2,019,396 1,994,545 3.05 1.01
configure.ocaml no-host 373,380 353,769 614,310 377,275 375,801 1.65 1.01
configure.tcc no-host 6,098 5,013 24,023 6,506 6,437 3.94 1.07
configure.util-linux no-host 1,914,291 2,080,888 5,298,131 1,820,587 1,808,102 2.77 0.95
configure.yash no-host 232,656 222,401 369,580 234,861 235,412 1.59 1.01
hello-world no-host 148 77 3,971 344 340 26.83 2.32

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.4 22.6 9.0 8.5 5.07 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.5 6.38 2.77
configure.cpython no-host 29.2 29.2 29.2 29.2 28.9 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.5 1.00 0.99
configure.tcc no-host 19.6 19.6 19.6 19.7 19.6 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.3 26.5 26.3 0.99 1.00
hello-world no-host 2.9 1.6 18.4 6.3 5.8 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 842 1 2 2.6 8.0 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,458 2 72 15.5 29.2 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 14,644 3 67 21.6 30.3 2,709,214 53,761 65,705 114,372 1,296,230 1,298,612 32,241 41 131,410 1
configure.ocaml no-host 3,876 1 2 2.6 22.5 149,859 11,178 5,221 7,733 70,879 71,247 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.7 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,866 1 2 2.6 26.5 139,881 8,045 6,700 6,397 68,350 65,134 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,337 64,419 42,627 4,544 54,462 57,331 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.8 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 796 1 2 2.6 7.5 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 15,381 2 73 15.4 28.9 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 14,375 3 68 21.6 30.3 2,709,214 53,738 65,720 114,374 1,296,230 1,298,610 32,241 41 131,440 1
configure.ocaml no-host 3,846 1 2 2.6 22.5 149,859 11,173 5,216 7,735 70,879 71,245 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,865 1 2 2.6 26.3 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,336 64,414 42,622 4,545 54,462 57,329 277 3 85,244 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 11 9 4.5 bash
15 no-host abuild-print-help 10 3 7 3.4 dash
23 no-host abuild-print-help 485 432 57 22.6 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
39 no-host abuild-print-help 22 10 12 8.5 osh-native-souffle
1 no-host bin-true 664 318 384 2.9 bash
9 no-host bin-true 543 278 277 1.4 dash
17 no-host bin-true 2,461 838 1,896 18.4 osh-cpython
25 no-host bin-true 842 286 573 8.0 osh-native
33 no-host bin-true 796 282 532 7.5 osh-native-souffle
2 no-host configure.cpython 15,247 6,839 8,833 29.2 bash
10 no-host configure.cpython 15,582 6,892 9,094 29.2 dash
18 no-host configure.cpython 30,478 15,297 17,192 29.2 osh-cpython
26 no-host configure.cpython 15,458 6,709 9,056 29.2 osh-native
34 no-host configure.cpython 15,381 6,823 8,836 28.9 osh-native-souffle
4 no-host configure.ocaml 3,915 1,366 1,556 22.6 bash
12 no-host configure.ocaml 3,829 1,345 1,507 22.6 dash
20 no-host configure.ocaml 4,777 1,952 2,060 22.6 osh-cpython
28 no-host configure.ocaml 3,876 1,299 1,619 22.5 osh-native
36 no-host configure.ocaml 3,846 1,389 1,498 22.5 osh-native-souffle
5 no-host configure.tcc 48 21 28 19.6 bash
13 no-host configure.tcc 42 20 23 19.6 dash
21 no-host configure.tcc 219 143 80 19.6 osh-cpython
29 no-host configure.tcc 49 27 23 19.7 osh-native
37 no-host configure.tcc 48 23 26 19.6 osh-native-souffle
3 no-host configure.util-linux 14,230 5,943 8,806 30.3 bash
11 no-host configure.util-linux 15,194 6,188 9,537 30.3 dash
19 no-host configure.util-linux 32,822 18,636 15,326 30.3 osh-cpython
27 no-host configure.util-linux 14,644 5,734 9,135 30.3 osh-native
35 no-host configure.util-linux 14,375 5,739 8,859 30.3 osh-native-souffle
6 no-host configure.yash 1,873 909 974 26.4 bash
14 no-host configure.yash 1,826 922 909 26.4 dash
22 no-host configure.yash 2,573 1,384 1,233 26.3 osh-cpython
30 no-host configure.yash 1,866 910 961 26.5 osh-native
38 no-host configure.yash 1,865 934 935 26.3 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 37 23 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 1 2 5.8 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,569 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,139 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,126 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,090 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,375 0 0 0 8 0 1,989 101 bash
9 no-host bin-true 66,463 0 0 0 8 0 1,984 96 dash
17 no-host bin-true 801,890 0 0 0 8 0 1,982 196 osh-cpython
25 no-host bin-true 127,235 0 0 0 16 0 1,980 172 osh-native
33 no-host bin-true 126,188 0 0 0 16 0 1,976 119 osh-native-souffle
2 no-host configure.cpython 1,992,376 0 0 0 32,928 0 14,221 1,047 bash
10 no-host configure.cpython 2,026,141 1 0 0 32,992 0 14,351 1,209 dash
18 no-host configure.cpython 6,079,522 0 0 0 27,512 0 13,036 981 osh-cpython
26 no-host configure.cpython 2,019,396 0 0 0 27,520 0 13,045 1,049 osh-native
34 no-host configure.cpython 1,994,545 0 0 0 27,520 0 13,006 1,048 osh-native-souffle
4 no-host configure.ocaml 373,380 0 0 0 5,120 0 1,948 182 bash
12 no-host configure.ocaml 353,769 0 0 0 5,112 0 1,925 164 dash
20 no-host configure.ocaml 614,310 1 0 0 5,112 0 1,846 183 osh-cpython
28 no-host configure.ocaml 377,275 0 0 0 5,120 0 1,916 217 osh-native
36 no-host configure.ocaml 375,801 0 0 0 5,120 0 1,922 200 osh-native-souffle
5 no-host configure.tcc 6,098 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,013 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,023 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,506 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,437 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,914,291 1 0 0 42,400 0 18,433 1,242 bash
11 no-host configure.util-linux 2,080,888 1 0 0 42,592 0 17,319 1,344 dash
19 no-host configure.util-linux 5,298,131 12 0 0 39,136 0 17,053 1,329 osh-cpython
27 no-host configure.util-linux 1,820,587 0 0 0 39,128 0 17,030 1,190 osh-native
35 no-host configure.util-linux 1,808,102 0 0 0 39,136 0 17,013 1,082 osh-native-souffle
6 no-host configure.yash 232,656 0 0 0 4,120 0 873 86 bash
14 no-host configure.yash 222,401 0 0 0 3,720 0 869 93 dash
22 no-host configure.yash 369,580 0 0 0 3,728 0 852 101 osh-cpython
30 no-host configure.yash 234,861 0 0 0 3,736 0 848 84 osh-native
38 no-host configure.yash 235,412 0 0 0 3,736 0 848 81 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,971 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-72b2aed6
dash dash-0ebcf347
osh-cpython osh-bab6da59
osh-native osh-463f0b8b
osh-native-souffle osh-2de4bc9d
host label host id
no-host no-host-e4839999