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 459 21 21 24.75 1.15
bin-true no-host 646 523 2,295 789 793 3.55 1.22
configure.cpython no-host 14,706 14,751 28,330 14,863 14,782 1.93 1.01
configure.ocaml no-host 3,783 3,677 4,602 3,764 3,776 1.22 0.99
configure.tcc no-host 46 40 202 48 48 4.40 1.04
configure.util-linux no-host 13,633 14,466 31,031 13,964 13,917 2.28 1.02
configure.yash no-host 1,780 1,778 2,439 1,833 1,796 1.37 1.03
hello-world no-host 1 1 59 3 3 41.63 1.95

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,565 1,097 23,540 3,175 3,139 9.18 1.24
bin-true no-host 106,367 65,385 765,101 126,180 125,267 7.19 1.19
configure.cpython no-host 2,006,901 2,023,496 5,982,188 1,995,120 1,980,565 2.98 0.99
configure.ocaml no-host 373,754 354,192 606,654 375,751 375,037 1.62 1.01
configure.tcc no-host 6,103 5,008 23,419 6,486 6,438 3.84 1.06
configure.util-linux no-host 1,901,316 2,065,230 5,170,565 1,807,714 1,800,387 2.72 0.95
configure.yash no-host 233,812 222,309 364,479 235,706 234,642 1.56 1.01
hello-world no-host 146 76 3,945 343 338 27.02 2.35

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.6 9.0 8.8 5.07 2.03
bin-true no-host 3.0 1.4 18.4 8.3 7.6 6.10 2.74
configure.cpython no-host 29.2 29.1 29.3 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.7 19.7 19.7 19.6 19.7 1.00 0.99
configure.util-linux no-host 30.3 30.3 30.2 30.3 30.2 1.00 1.00
configure.yash no-host 26.4 26.4 26.4 26.4 26.5 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.3 5.8 6.63 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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 789 1 2 2.6 8.3 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,863 1 64 14.9 29.2 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 13,964 3 63 21.2 30.3 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,764 1 2 2.6 22.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,833 1 2 2.5 26.4 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 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.8 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 793 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 14,782 1 67 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 13,917 3 64 21.2 30.2 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,776 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,796 1 2 2.5 26.5 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 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 19 11 8 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 459 407 56 22.6 osh-cpython
31 no-host abuild-print-help 21 12 10 9.0 osh-native
39 no-host abuild-print-help 21 9 12 8.8 osh-native-souffle
1 no-host bin-true 646 304 375 3.0 bash
9 no-host bin-true 523 275 259 1.4 dash
17 no-host bin-true 2,295 775 1,780 18.4 osh-cpython
25 no-host bin-true 789 303 503 8.3 osh-native
33 no-host bin-true 793 293 515 7.6 osh-native-souffle
2 no-host configure.cpython 14,706 6,682 8,441 29.2 bash
10 no-host configure.cpython 14,751 6,705 8,481 29.1 dash
18 no-host configure.cpython 28,330 14,211 15,986 29.3 osh-cpython
26 no-host configure.cpython 14,863 6,580 8,566 29.2 osh-native
34 no-host configure.cpython 14,782 6,589 8,451 29.2 osh-native-souffle
4 no-host configure.ocaml 3,783 1,319 1,498 22.5 bash
12 no-host configure.ocaml 3,677 1,273 1,426 22.6 dash
20 no-host configure.ocaml 4,602 1,865 1,950 22.6 osh-cpython
28 no-host configure.ocaml 3,764 1,274 1,529 22.6 osh-native
36 no-host configure.ocaml 3,776 1,329 1,485 22.6 osh-native-souffle
5 no-host configure.tcc 46 24 22 19.7 bash
13 no-host configure.tcc 40 20 20 19.7 dash
21 no-host configure.tcc 202 137 68 19.7 osh-cpython
29 no-host configure.tcc 48 20 28 19.6 osh-native
37 no-host configure.tcc 48 27 21 19.7 osh-native-souffle
3 no-host configure.util-linux 13,633 5,803 8,318 30.3 bash
11 no-host configure.util-linux 14,466 5,773 9,213 30.3 dash
19 no-host configure.util-linux 31,031 17,577 14,553 30.2 osh-cpython
27 no-host configure.util-linux 13,964 5,572 8,611 30.3 osh-native
35 no-host configure.util-linux 13,917 5,502 8,637 30.2 osh-native-souffle
6 no-host configure.yash 1,780 912 877 26.4 bash
14 no-host configure.yash 1,778 890 890 26.4 dash
22 no-host configure.yash 2,439 1,322 1,161 26.4 osh-cpython
30 no-host configure.yash 1,833 901 937 26.4 osh-native
38 no-host configure.yash 1,796 895 899 26.5 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 37 22 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,565 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,540 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,175 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,139 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 106,367 0 0 0 8 0 1,981 85 bash
9 no-host bin-true 65,385 0 0 0 8 0 1,987 96 dash
17 no-host bin-true 765,101 0 0 0 8 0 1,989 441 osh-cpython
25 no-host bin-true 126,180 0 0 0 16 0 1,981 156 osh-native
33 no-host bin-true 125,267 0 0 0 16 0 1,987 410 osh-native-souffle
2 no-host configure.cpython 2,006,901 1 0 0 32,928 0 14,284 1,037 bash
10 no-host configure.cpython 2,023,496 1 0 0 32,992 0 14,257 1,274 dash
18 no-host configure.cpython 5,982,188 0 0 0 27,512 0 13,033 1,163 osh-cpython
26 no-host configure.cpython 1,995,120 0 0 0 27,520 0 13,155 1,190 osh-native
34 no-host configure.cpython 1,980,565 0 0 0 27,520 0 13,064 1,108 osh-native-souffle
4 no-host configure.ocaml 373,754 0 0 0 5,120 0 1,963 176 bash
12 no-host configure.ocaml 354,192 0 0 0 5,112 0 1,940 166 dash
20 no-host configure.ocaml 606,654 0 0 0 5,112 0 1,853 187 osh-cpython
28 no-host configure.ocaml 375,751 0 0 0 5,120 0 1,923 186 osh-native
36 no-host configure.ocaml 375,037 0 0 0 5,120 0 1,924 206 osh-native-souffle
5 no-host configure.tcc 6,103 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,008 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,419 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,486 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,438 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,901,316 0 0 0 42,400 0 18,467 1,267 bash
11 no-host configure.util-linux 2,065,230 1 0 0 42,584 0 17,359 1,310 dash
19 no-host configure.util-linux 5,170,565 10 0 0 39,112 0 17,014 1,304 osh-cpython
27 no-host configure.util-linux 1,807,714 0 0 0 39,120 0 16,922 1,147 osh-native
35 no-host configure.util-linux 1,800,387 2 0 0 39,136 0 17,077 1,224 osh-native-souffle
6 no-host configure.yash 233,812 0 0 0 4,120 0 871 94 bash
14 no-host configure.yash 222,309 0 0 0 3,720 0 872 88 dash
22 no-host configure.yash 364,479 0 0 0 3,728 0 852 89 osh-cpython
30 no-host configure.yash 235,706 0 0 0 3,736 0 849 90 osh-native
38 no-host configure.yash 234,642 0 0 0 3,736 0 851 91 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-79b5c903
dash dash-0ebcf347
osh-cpython osh-0cc1a160
osh-native osh-6497952e
osh-native-souffle osh-6635c7a7
host label host id
no-host no-host-e4839999