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 468 22 21 24.33 1.14
bin-true no-host 667 539 2,296 812 811 3.44 1.22
configure.cpython no-host 14,988 14,990 28,796 15,430 15,285 1.92 1.03
configure.ocaml no-host 3,819 3,732 4,661 3,809 3,804 1.22 1.00
configure.tcc no-host 48 41 205 49 48 4.27 1.01
configure.util-linux no-host 14,044 14,820 31,322 14,423 14,226 2.23 1.03
configure.yash no-host 1,813 1,770 2,508 1,818 1,806 1.38 1.00
hello-world no-host 2 1 56 3 3 36.10 1.86

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,590 1,133 23,749 3,193 3,099 9.17 1.23
bin-true no-host 106,427 66,446 769,493 124,249 125,216 7.23 1.17
configure.cpython no-host 2,225,948 2,239,909 6,245,254 2,218,825 2,210,194 2.81 1.00
configure.ocaml no-host 410,956 390,882 647,594 412,950 412,553 1.58 1.00
configure.tcc no-host 6,545 5,478 24,109 6,978 6,884 3.68 1.07
configure.util-linux no-host 2,103,548 2,270,248 5,397,542 1,992,595 1,991,407 2.57 0.95
configure.yash no-host 256,273 245,132 388,863 258,474 257,006 1.52 1.01
hello-world no-host 152 82 3,936 347 336 25.89 2.28

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.2 8.4 5.06 2.06
bin-true no-host 2.9 1.4 18.4 8.0 7.5 6.37 2.77
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.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.1 30.4 30.3 1.00 1.00
configure.yash no-host 24.5 24.2 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.8 6.62 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,430 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,423 3 60 21.2 30.4 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,809 1 2 2.6 20.4 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,818 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.2 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,285 1 61 14.9 27.4 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,226 3 59 21.2 30.3 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,804 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 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,806 1 2 2.5 24.4 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.4 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 17 3 4.5 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 468 416 56 22.6 osh-cpython
31 no-host abuild-print-help 22 13 9 9.2 osh-native
39 no-host abuild-print-help 21 14 8 8.4 osh-native-souffle
1 no-host bin-true 667 502 198 2.9 bash
9 no-host bin-true 539 416 133 1.4 dash
17 no-host bin-true 2,296 1,506 1,052 18.4 osh-cpython
25 no-host bin-true 812 570 258 8.0 osh-native
33 no-host bin-true 811 565 260 7.5 osh-native-souffle
2 no-host configure.cpython 14,988 9,060 6,332 27.4 bash
10 no-host configure.cpython 14,990 9,156 6,260 27.4 dash
18 no-host configure.cpython 28,796 17,536 13,145 27.4 osh-cpython
26 no-host configure.cpython 15,430 8,779 6,923 27.4 osh-native
34 no-host configure.cpython 15,285 8,989 6,428 27.4 osh-native-souffle
4 no-host configure.ocaml 3,819 1,688 1,159 20.6 bash
12 no-host configure.ocaml 3,732 1,546 1,202 20.6 dash
20 no-host configure.ocaml 4,661 2,174 1,702 20.6 osh-cpython
28 no-host configure.ocaml 3,809 1,624 1,223 20.4 osh-native
36 no-host configure.ocaml 3,804 1,608 1,233 20.6 osh-native-souffle
5 no-host configure.tcc 48 36 12 19.3 bash
13 no-host configure.tcc 41 29 12 19.3 dash
21 no-host configure.tcc 205 146 63 19.3 osh-cpython
29 no-host configure.tcc 49 21 28 19.3 osh-native
37 no-host configure.tcc 48 36 13 19.3 osh-native-souffle
3 no-host configure.util-linux 14,044 8,714 5,782 30.3 bash
11 no-host configure.util-linux 14,820 9,322 6,001 30.0 dash
19 no-host configure.util-linux 31,322 20,749 11,664 30.1 osh-cpython
27 no-host configure.util-linux 14,423 8,907 5,717 30.4 osh-native
35 no-host configure.util-linux 14,226 8,730 5,692 30.3 osh-native-souffle
6 no-host configure.yash 1,813 1,030 792 24.5 bash
14 no-host configure.yash 1,770 1,061 711 24.2 dash
22 no-host configure.yash 2,508 1,527 1,025 24.2 osh-cpython
30 no-host configure.yash 1,818 1,067 754 24.4 osh-native
38 no-host configure.yash 1,806 1,135 675 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 44 12 18.2 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,590 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,749 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 40 1 osh-native-souffle
1 no-host bin-true 106,427 0 0 0 8 0 1,987 62 bash
9 no-host bin-true 66,446 0 0 0 8 0 1,986 88 dash
17 no-host bin-true 769,493 0 0 0 8 0 2,002 299 osh-cpython
25 no-host bin-true 124,249 0 0 0 16 0 1,991 50 osh-native
33 no-host bin-true 125,216 0 0 0 16 0 1,997 213 osh-native-souffle
2 no-host configure.cpython 2,225,948 0 0 0 32,928 0 14,559 1,180 bash
10 no-host configure.cpython 2,239,909 0 0 0 32,992 0 14,648 1,012 dash
18 no-host configure.cpython 6,245,254 0 0 0 27,512 0 13,244 1,146 osh-cpython
26 no-host configure.cpython 2,218,825 0 0 0 27,520 0 13,198 892 osh-native
34 no-host configure.cpython 2,210,194 0 0 0 27,520 0 13,183 1,134 osh-native-souffle
4 no-host configure.ocaml 410,956 0 0 0 5,120 0 1,958 146 bash
12 no-host configure.ocaml 390,882 0 0 0 5,112 0 1,938 164 dash
20 no-host configure.ocaml 647,594 0 0 0 5,112 0 1,859 194 osh-cpython
28 no-host configure.ocaml 412,950 0 0 0 5,120 0 1,931 197 osh-native
36 no-host configure.ocaml 412,553 0 0 0 5,120 0 1,931 181 osh-native-souffle
5 no-host configure.tcc 6,545 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,109 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,884 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,103,548 0 0 0 42,400 0 18,613 947 bash
11 no-host configure.util-linux 2,270,248 0 0 0 42,584 0 17,385 929 dash
19 no-host configure.util-linux 5,397,542 10 0 0 39,128 0 16,954 1,188 osh-cpython
27 no-host configure.util-linux 1,992,595 0 0 0 39,120 0 16,951 914 osh-native
35 no-host configure.util-linux 1,991,407 2 0 0 39,128 0 16,999 938 osh-native-souffle
6 no-host configure.yash 256,273 0 0 0 4,120 0 871 69 bash
14 no-host configure.yash 245,132 0 0 0 3,720 0 871 89 dash
22 no-host configure.yash 388,863 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 258,474 0 0 0 3,736 0 845 82 osh-native
38 no-host configure.yash 257,006 0 0 0 3,736 0 849 74 osh-native-souffle
0 no-host hello-world 152 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,936 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 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-6cbc7316
dash dash-0ebcf347
osh-cpython osh-14b372d0
osh-native osh-67d7233b
osh-native-souffle osh-9b571a33
host label host id
no-host no-host-556df3ee