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 469 22 21 24.49 1.15
bin-true no-host 699 547 2,377 809 804 3.40 1.16
configure.cpython no-host 15,659 15,488 30,223 15,545 15,462 1.93 0.99
configure.ocaml no-host 3,848 3,887 4,705 3,871 3,865 1.22 1.01
configure.tcc no-host 48 43 207 49 49 4.32 1.03
configure.util-linux no-host 14,507 15,668 31,826 14,563 14,471 2.19 1.00
configure.yash no-host 1,857 1,853 2,513 1,846 1,847 1.35 0.99
hello-world no-host 2 1 63 3 3 40.67 1.83

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,544 1,104 23,737 3,188 3,099 9.33 1.25
bin-true no-host 106,391 66,429 771,490 126,275 122,316 7.25 1.19
configure.cpython no-host 2,232,434 2,239,372 6,193,848 2,211,830 2,202,488 2.77 0.99
configure.ocaml no-host 410,637 391,745 645,876 413,238 412,370 1.57 1.01
configure.tcc no-host 6,557 5,484 24,038 6,956 6,903 3.67 1.06
configure.util-linux no-host 2,110,461 2,260,123 5,400,322 1,992,682 1,987,436 2.56 0.94
configure.yash no-host 256,781 244,747 388,448 258,347 256,084 1.51 1.01
hello-world no-host 152 83 3,938 343 339 25.91 2.26

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.6 9.0 8.7 5.21 2.09
bin-true no-host 2.9 1.4 18.2 8.1 7.6 6.32 2.82
configure.cpython no-host 27.4 27.5 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.3 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.4 30.3 30.4 30.1 30.4 1.00 0.99
configure.yash no-host 24.2 24.2 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.9 1.6 18.2 6.3 5.9 6.32 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,545 1 64 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,563 3 63 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,871 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,462 1 62 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,471 3 60 21.2 30.4 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,865 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,847 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 14 6 4.3 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 469 417 55 22.6 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 21 20 2 8.7 osh-native-souffle
1 no-host bin-true 699 504 226 2.9 bash
9 no-host bin-true 547 416 141 1.4 dash
17 no-host bin-true 2,377 1,597 1,051 18.2 osh-cpython
25 no-host bin-true 809 559 263 8.1 osh-native
33 no-host bin-true 804 554 264 7.6 osh-native-souffle
2 no-host configure.cpython 15,659 9,282 6,781 27.4 bash
10 no-host configure.cpython 15,488 9,368 6,547 27.5 dash
18 no-host configure.cpython 30,223 17,877 14,298 27.4 osh-cpython
26 no-host configure.cpython 15,545 9,214 6,599 27.4 osh-native
34 no-host configure.cpython 15,462 9,124 6,472 27.5 osh-native-souffle
4 no-host configure.ocaml 3,848 1,723 1,165 20.6 bash
12 no-host configure.ocaml 3,887 1,634 1,271 20.3 dash
20 no-host configure.ocaml 4,705 2,228 1,689 20.6 osh-cpython
28 no-host configure.ocaml 3,871 1,697 1,212 20.6 osh-native
36 no-host configure.ocaml 3,865 1,565 1,336 20.6 osh-native-souffle
5 no-host configure.tcc 48 25 23 19.4 bash
13 no-host configure.tcc 43 23 21 19.3 dash
21 no-host configure.tcc 207 134 77 19.3 osh-cpython
29 no-host configure.tcc 49 32 18 19.3 osh-native
37 no-host configure.tcc 49 28 21 19.4 osh-native-souffle
3 no-host configure.util-linux 14,507 9,251 5,740 30.4 bash
11 no-host configure.util-linux 15,668 9,407 6,748 30.3 dash
19 no-host configure.util-linux 31,826 21,423 11,489 30.4 osh-cpython
27 no-host configure.util-linux 14,563 8,894 5,872 30.1 osh-native
35 no-host configure.util-linux 14,471 8,737 5,927 30.4 osh-native-souffle
6 no-host configure.yash 1,857 1,076 792 24.2 bash
14 no-host configure.yash 1,853 1,105 753 24.2 dash
22 no-host configure.yash 2,513 1,520 1,035 24.2 osh-cpython
30 no-host configure.yash 1,846 1,066 784 24.4 osh-native
38 no-host configure.yash 1,847 1,041 810 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.6 dash
16 no-host hello-world 63 34 29 18.2 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,544 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,737 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,391 0 0 0 8 0 1,995 221 bash
9 no-host bin-true 66,429 0 0 0 8 0 1,987 65 dash
17 no-host bin-true 771,490 0 0 0 8 0 1,993 144 osh-cpython
25 no-host bin-true 126,275 0 0 0 16 0 1,991 94 osh-native
33 no-host bin-true 122,316 0 0 0 16 0 1,990 184 osh-native-souffle
2 no-host configure.cpython 2,232,434 0 0 0 32,928 0 14,491 1,211 bash
10 no-host configure.cpython 2,239,372 0 0 0 32,992 0 14,632 1,024 dash
18 no-host configure.cpython 6,193,848 0 0 0 27,512 0 13,292 1,184 osh-cpython
26 no-host configure.cpython 2,211,830 0 0 0 27,520 0 13,283 1,078 osh-native
34 no-host configure.cpython 2,202,488 0 0 0 27,520 0 13,195 986 osh-native-souffle
4 no-host configure.ocaml 410,637 0 0 0 5,120 0 1,948 161 bash
12 no-host configure.ocaml 391,745 0 0 0 5,112 0 1,934 158 dash
20 no-host configure.ocaml 645,876 1 0 0 5,112 0 1,854 168 osh-cpython
28 no-host configure.ocaml 413,238 0 0 0 5,120 0 1,920 164 osh-native
36 no-host configure.ocaml 412,370 0 0 0 5,120 0 1,931 160 osh-native-souffle
5 no-host configure.tcc 6,557 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,038 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,903 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,110,461 1 0 0 42,400 0 18,768 1,099 bash
11 no-host configure.util-linux 2,260,123 0 0 0 42,592 0 17,497 1,112 dash
19 no-host configure.util-linux 5,400,322 15 0 0 39,136 0 17,111 1,213 osh-cpython
27 no-host configure.util-linux 1,992,682 1 0 0 39,128 0 17,003 925 osh-native
35 no-host configure.util-linux 1,987,436 0 0 0 39,136 0 16,986 985 osh-native-souffle
6 no-host configure.yash 256,781 0 0 0 4,120 0 867 84 bash
14 no-host configure.yash 244,747 0 0 0 3,720 0 869 68 dash
22 no-host configure.yash 388,448 0 0 0 3,728 0 851 102 osh-cpython
30 no-host configure.yash 258,347 0 0 0 3,736 0 846 84 osh-native
38 no-host configure.yash 256,084 0 0 0 3,736 0 852 67 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,938 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cda389e5
dash dash-0ebcf347
osh-cpython osh-795492b7
osh-native osh-601d6855
osh-native-souffle osh-2436496d
host label host id
no-host no-host-556df3ee