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 485 22 20 26.18 1.16
bin-true no-host 652 531 2,321 794 781 3.56 1.22
configure.cpython no-host 14,613 14,664 28,750 14,913 14,800 1.97 1.02
configure.ocaml no-host 3,728 3,741 4,629 3,789 3,766 1.24 1.02
configure.tcc no-host 46 41 200 49 47 4.33 1.06
configure.util-linux no-host 13,648 14,438 31,062 13,989 13,990 2.28 1.02
configure.yash no-host 1,800 1,766 2,472 1,806 1,793 1.37 1.00
hello-world no-host 1 1 57 3 3 44.54 2.17

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,536 1,118 23,534 3,165 3,112 9.28 1.25
bin-true no-host 107,302 66,487 760,030 125,142 124,300 7.08 1.17
configure.cpython no-host 1,993,559 2,021,697 5,985,936 2,005,561 1,986,204 3.00 1.01
configure.ocaml no-host 373,941 353,524 605,954 376,255 375,206 1.62 1.01
configure.tcc no-host 6,112 5,006 23,420 6,487 6,442 3.83 1.06
configure.util-linux no-host 1,902,669 2,067,968 5,163,903 1,809,899 1,799,898 2.71 0.95
configure.yash no-host 233,796 222,389 363,480 235,651 234,527 1.55 1.01
hello-world no-host 147 79 3,953 345 336 26.89 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.3 3.5 22.7 9.0 8.7 5.25 2.09
bin-true no-host 2.9 1.6 18.5 8.0 7.6 6.42 2.77
configure.cpython no-host 29.2 29.2 29.3 29.2 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.4 19.7 19.7 19.7 19.6 1.01 1.01
configure.util-linux no-host 30.2 30.3 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 26.5 26.5 26.3 26.4 26.3 0.99 1.00
hello-world no-host 2.8 1.4 18.3 6.4 5.8 6.63 2.33

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 794 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,913 1 67 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,989 3 65 21.2 30.1 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,789 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 49 0 0 1.3 19.7 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,806 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 22 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 781 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,800 1 65 14.9 29.3 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,990 3 63 21.2 30.3 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,766 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 47 0 0 1.3 19.6 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,793 1 2 2.5 26.3 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 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 10 9 4.3 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 485 429 59 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
39 no-host abuild-print-help 20 12 9 8.7 osh-native-souffle
1 no-host bin-true 652 315 374 2.9 bash
9 no-host bin-true 531 273 270 1.6 dash
17 no-host bin-true 2,321 780 1,803 18.5 osh-cpython
25 no-host bin-true 794 310 501 8.0 osh-native
33 no-host bin-true 781 304 496 7.6 osh-native-souffle
2 no-host configure.cpython 14,613 6,585 8,439 29.2 bash
10 no-host configure.cpython 14,664 6,709 8,386 29.2 dash
18 no-host configure.cpython 28,750 14,358 16,313 29.3 osh-cpython
26 no-host configure.cpython 14,913 6,641 8,559 29.2 osh-native
34 no-host configure.cpython 14,800 6,516 8,565 29.3 osh-native-souffle
4 no-host configure.ocaml 3,728 1,273 1,497 22.6 bash
12 no-host configure.ocaml 3,741 1,307 1,454 22.5 dash
20 no-host configure.ocaml 4,629 1,882 1,964 22.6 osh-cpython
28 no-host configure.ocaml 3,789 1,320 1,512 22.6 osh-native
36 no-host configure.ocaml 3,766 1,314 1,489 22.6 osh-native-souffle
5 no-host configure.tcc 46 16 31 19.4 bash
13 no-host configure.tcc 41 22 20 19.7 dash
21 no-host configure.tcc 200 131 73 19.7 osh-cpython
29 no-host configure.tcc 49 25 25 19.7 osh-native
37 no-host configure.tcc 47 20 28 19.6 osh-native-souffle
3 no-host configure.util-linux 13,648 5,834 8,293 30.2 bash
11 no-host configure.util-linux 14,438 5,985 8,972 30.3 dash
19 no-host configure.util-linux 31,062 17,722 14,434 30.3 osh-cpython
27 no-host configure.util-linux 13,989 5,600 8,606 30.1 osh-native
35 no-host configure.util-linux 13,990 5,606 8,591 30.3 osh-native-souffle
6 no-host configure.yash 1,800 918 892 26.5 bash
14 no-host configure.yash 1,766 919 852 26.5 dash
22 no-host configure.yash 2,472 1,369 1,147 26.3 osh-cpython
30 no-host configure.yash 1,806 887 924 26.4 osh-native
38 no-host configure.yash 1,793 873 926 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 37 20 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 2 1 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,536 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,118 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,534 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 38 0 osh-native-souffle
1 no-host bin-true 107,302 0 0 0 8 0 1,983 95 bash
9 no-host bin-true 66,487 0 0 0 8 0 1,981 123 dash
17 no-host bin-true 760,030 0 0 0 8 0 1,992 503 osh-cpython
25 no-host bin-true 125,142 0 0 0 16 0 1,983 155 osh-native
33 no-host bin-true 124,300 0 0 0 16 0 1,980 134 osh-native-souffle
2 no-host configure.cpython 1,993,559 0 0 0 32,928 0 14,174 1,136 bash
10 no-host configure.cpython 2,021,697 0 0 0 32,992 0 14,323 1,192 dash
18 no-host configure.cpython 5,985,936 1 0 0 27,512 0 13,043 1,121 osh-cpython
26 no-host configure.cpython 2,005,561 0 0 0 27,520 0 13,062 1,110 osh-native
34 no-host configure.cpython 1,986,204 0 0 0 27,520 0 13,032 1,104 osh-native-souffle
4 no-host configure.ocaml 373,941 0 0 0 5,120 0 1,946 191 bash
12 no-host configure.ocaml 353,524 0 0 0 5,112 0 1,938 176 dash
20 no-host configure.ocaml 605,954 0 0 0 5,112 0 1,865 191 osh-cpython
28 no-host configure.ocaml 376,255 0 0 0 5,120 0 1,932 188 osh-native
36 no-host configure.ocaml 375,206 0 0 0 5,120 0 1,922 216 osh-native-souffle
5 no-host configure.tcc 6,112 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,006 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,420 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,487 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,442 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,902,669 0 0 0 42,408 0 18,414 1,351 bash
11 no-host configure.util-linux 2,067,968 1 0 0 42,592 0 17,369 1,396 dash
19 no-host configure.util-linux 5,163,903 11 0 0 39,120 0 16,988 1,346 osh-cpython
27 no-host configure.util-linux 1,809,899 0 0 0 39,128 0 17,011 1,196 osh-native
35 no-host configure.util-linux 1,799,898 0 0 0 39,136 0 17,006 1,092 osh-native-souffle
6 no-host configure.yash 233,796 0 0 0 4,120 0 872 120 bash
14 no-host configure.yash 222,389 0 0 0 3,720 0 872 88 dash
22 no-host configure.yash 363,480 0 0 0 3,728 0 849 78 osh-cpython
30 no-host configure.yash 235,651 0 0 0 3,736 0 847 80 osh-native
38 no-host configure.yash 234,527 0 0 0 3,736 0 850 87 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,953 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c311fdaa
dash dash-0ebcf347
osh-cpython osh-73a84a6a
osh-native osh-9ecc640b
osh-native-souffle osh-00b7b4e7
host label host id
no-host no-host-e4839999