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 21 10 482 23 23 23.31 1.11
bin-true no-host 688 560 2,302 817 830 3.35 1.19
configure.cpython no-host 15,467 15,689 30,563 15,942 15,974 1.98 1.03
configure.ocaml no-host 3,941 3,847 4,772 4,002 4,018 1.21 1.02
configure.tcc no-host 50 43 212 51 50 4.21 1.01
configure.util-linux no-host 14,692 15,460 32,933 15,048 15,261 2.24 1.02
configure.yash no-host 1,943 1,872 2,569 1,942 1,942 1.32 1.00
hello-world no-host 2 1 59 3 3 36.77 1.85

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,566 1,103 23,635 3,165 3,125 9.21 1.23
bin-true no-host 107,316 66,400 761,103 125,251 127,274 7.09 1.17
configure.cpython no-host 2,221,724 2,236,576 6,188,057 2,224,461 2,215,435 2.79 1.00
configure.ocaml no-host 410,917 391,213 642,691 413,125 412,037 1.56 1.01
configure.tcc no-host 6,586 5,487 23,855 6,971 6,913 3.62 1.06
configure.util-linux no-host 2,094,884 2,259,972 5,358,666 2,001,245 1,987,538 2.56 0.96
configure.yash no-host 256,099 245,183 386,507 258,170 256,948 1.51 1.01
hello-world no-host 153 82 3,965 348 336 25.92 2.27

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 8.9 8.5 5.13 2.00
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.38 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 21.0 1.00 1.00
configure.tcc no-host 19.3 19.1 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.9 1.4 18.3 6.4 5.9 6.33 2.23

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.4 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,942 1 66 14.9 27.4 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 15,048 3 65 21.2 30.1 2,698,991 29,940 65,698 108,699 1,288,281 1,302,011 32,241 41 131,396 1
configure.ocaml no-host 4,002 1 2 2.6 20.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,942 1 2 2.5 24.2 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 830 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,974 1 69 14.9 27.4 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 15,261 3 68 21.2 30.3 2,698,991 29,878 65,636 108,701 1,288,281 1,302,009 32,241 41 131,272 1
configure.ocaml no-host 4,018 1 2 2.6 21.0 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,942 1 2 2.5 24.2 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.5 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 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 21 14 7 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 482 445 41 22.8 osh-cpython
31 no-host abuild-print-help 23 18 6 8.9 osh-native
39 no-host abuild-print-help 23 15 8 8.5 osh-native-souffle
1 no-host bin-true 688 517 204 2.9 bash
9 no-host bin-true 560 425 143 1.4 dash
17 no-host bin-true 2,302 1,488 1,073 18.4 osh-cpython
25 no-host bin-true 817 576 255 8.1 osh-native
33 no-host bin-true 830 582 262 7.6 osh-native-souffle
2 no-host configure.cpython 15,467 9,266 6,612 27.4 bash
10 no-host configure.cpython 15,689 9,493 6,626 27.4 dash
18 no-host configure.cpython 30,563 18,686 13,838 27.4 osh-cpython
26 no-host configure.cpython 15,942 9,302 6,911 27.4 osh-native
34 no-host configure.cpython 15,974 9,309 6,929 27.4 osh-native-souffle
4 no-host configure.ocaml 3,941 1,737 1,244 20.6 bash
12 no-host configure.ocaml 3,847 1,634 1,232 20.4 dash
20 no-host configure.ocaml 4,772 2,326 1,662 20.6 osh-cpython
28 no-host configure.ocaml 4,002 1,704 1,338 20.6 osh-native
36 no-host configure.ocaml 4,018 1,710 1,344 21.0 osh-native-souffle
5 no-host configure.tcc 50 35 16 19.3 bash
13 no-host configure.tcc 43 23 21 19.1 dash
21 no-host configure.tcc 212 158 57 19.4 osh-cpython
29 no-host configure.tcc 51 31 21 19.4 osh-native
37 no-host configure.tcc 50 27 24 19.4 osh-native-souffle
3 no-host configure.util-linux 14,692 9,322 5,850 30.1 bash
11 no-host configure.util-linux 15,460 9,357 6,595 30.1 dash
19 no-host configure.util-linux 32,933 21,615 12,453 30.1 osh-cpython
27 no-host configure.util-linux 15,048 8,970 6,280 30.1 osh-native
35 no-host configure.util-linux 15,261 8,908 6,550 30.3 osh-native-souffle
6 no-host configure.yash 1,943 1,090 850 24.4 bash
14 no-host configure.yash 1,872 1,065 810 24.2 dash
22 no-host configure.yash 2,569 1,588 1,025 24.4 osh-cpython
30 no-host configure.yash 1,942 1,163 783 24.2 osh-native
38 no-host configure.yash 1,942 1,214 732 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 59 43 15 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,566 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,635 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,125 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,316 0 0 0 8 0 1,985 36 bash
9 no-host bin-true 66,400 0 0 0 8 0 1,990 95 dash
17 no-host bin-true 761,103 0 0 0 8 0 1,997 175 osh-cpython
25 no-host bin-true 125,251 0 0 0 16 0 1,997 63 osh-native
33 no-host bin-true 127,274 0 0 0 16 0 1,982 56 osh-native-souffle
2 no-host configure.cpython 2,221,724 0 0 0 32,928 0 14,406 957 bash
10 no-host configure.cpython 2,236,576 0 0 0 32,992 0 14,615 1,104 dash
18 no-host configure.cpython 6,188,057 0 0 0 27,512 0 13,243 1,228 osh-cpython
26 no-host configure.cpython 2,224,461 0 0 0 27,520 0 13,193 877 osh-native
34 no-host configure.cpython 2,215,435 0 0 0 27,520 0 13,219 992 osh-native-souffle
4 no-host configure.ocaml 410,917 0 0 0 5,120 0 1,943 145 bash
12 no-host configure.ocaml 391,213 0 0 0 5,112 0 1,915 132 dash
20 no-host configure.ocaml 642,691 0 0 0 5,112 0 1,860 175 osh-cpython
28 no-host configure.ocaml 413,125 0 0 0 5,120 0 1,927 145 osh-native
36 no-host configure.ocaml 412,037 0 0 0 5,120 0 1,937 156 osh-native-souffle
5 no-host configure.tcc 6,586 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,855 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,913 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,094,884 0 0 0 42,400 0 18,586 1,068 bash
11 no-host configure.util-linux 2,259,972 1 0 0 42,592 0 17,411 1,079 dash
19 no-host configure.util-linux 5,358,666 7 0 0 39,112 0 16,931 1,311 osh-cpython
27 no-host configure.util-linux 2,001,245 2 0 0 39,128 0 17,004 882 osh-native
35 no-host configure.util-linux 1,987,538 1 0 0 39,136 0 17,059 917 osh-native-souffle
6 no-host configure.yash 256,099 0 0 0 4,120 0 868 64 bash
14 no-host configure.yash 245,183 0 0 0 3,720 0 866 90 dash
22 no-host configure.yash 386,507 0 0 0 3,728 0 855 85 osh-cpython
30 no-host configure.yash 258,170 0 0 0 3,736 0 850 91 osh-native
38 no-host configure.yash 256,948 0 0 0 3,736 0 850 74 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,965 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-71b88333
dash dash-0ebcf347
osh-cpython osh-4d4352ab
osh-native osh-b11fff6b
osh-native-souffle osh-583b9709
host label host id
no-host no-host-556df3ee