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 py bash ratio native bash ratio
abuild-print-help no-host 20 10 475 22 24.33 1.15
bin-true no-host 678 557 2,352 844 3.47 1.24
configure.cpython no-host 15,660 16,092 30,699 16,135 1.96 1.03
configure.ocaml no-host 3,910 3,761 4,817 3,856 1.23 0.99
configure.tcc no-host 49 42 201 49 4.08 1.01
configure.util-linux no-host 14,545 15,514 32,436 14,964 2.23 1.03
configure.yash no-host 1,914 1,806 2,571 1,857 1.34 0.97
hello-world no-host 1 1 51 3 33.89 1.97

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,121 22,939 3,153 9.03 1.24
bin-true no-host 106,340 67,446 759,753 128,158 7.14 1.21
configure.cpython no-host 2,218,226 2,239,527 6,184,014 2,229,189 2.79 1.00
configure.ocaml no-host 409,977 390,996 640,755 413,347 1.56 1.01
configure.tcc no-host 6,541 5,488 23,300 6,983 3.56 1.07
configure.util-linux no-host 2,103,832 2,258,562 5,335,087 1,997,607 2.54 0.95
configure.yash no-host 256,814 244,086 385,709 258,433 1.50 1.01
hello-world no-host 149 78 3,694 346 24.79 2.32

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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 21.7 9.0 5.03 2.09
bin-true no-host 2.9 1.4 17.6 7.9 6.09 2.73
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.6 1.3 17.4 6.0 6.65 2.30

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.3 6.0 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 844 1 2 2.6 7.9 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 16,135 1 66 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,964 3 62 21.3 30.3 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,856 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,857 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 20 17 3 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 475 417 61 21.7 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
1 no-host bin-true 678 513 198 2.9 bash
9 no-host bin-true 557 423 145 1.4 dash
17 no-host bin-true 2,352 1,566 1,065 17.6 osh-cpython
25 no-host bin-true 844 598 258 7.9 osh-native
2 no-host configure.cpython 15,660 9,285 6,779 27.4 bash
10 no-host configure.cpython 16,092 9,434 7,090 27.4 dash
18 no-host configure.cpython 30,699 18,468 14,246 27.4 osh-cpython
26 no-host configure.cpython 16,135 9,458 6,936 27.4 osh-native
4 no-host configure.ocaml 3,910 1,667 1,283 20.6 bash
12 no-host configure.ocaml 3,761 1,575 1,204 20.6 dash
20 no-host configure.ocaml 4,817 2,358 1,678 20.6 osh-cpython
28 no-host configure.ocaml 3,856 1,701 1,194 20.6 osh-native
5 no-host configure.tcc 49 28 22 19.3 bash
13 no-host configure.tcc 42 26 16 19.4 dash
21 no-host configure.tcc 201 146 58 19.3 osh-cpython
29 no-host configure.tcc 49 35 15 19.3 osh-native
3 no-host configure.util-linux 14,545 9,145 5,865 30.1 bash
11 no-host configure.util-linux 15,514 9,433 6,575 30.3 dash
19 no-host configure.util-linux 32,436 21,257 12,312 30.1 osh-cpython
27 no-host configure.util-linux 14,964 9,002 6,152 30.3 osh-native
6 no-host configure.yash 1,914 1,132 791 24.4 bash
14 no-host configure.yash 1,806 1,054 755 24.2 dash
22 no-host configure.yash 2,571 1,509 1,108 24.4 osh-cpython
30 no-host configure.yash 1,857 1,046 815 24.4 osh-native
0 no-host hello-world 1 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 51 35 15 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.0 osh-native

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,539 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,121 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,939 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,153 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 106,340 0 0 0 8 0 1,988 78 bash
9 no-host bin-true 67,446 0 0 0 8 0 1,981 44 dash
17 no-host bin-true 759,753 0 0 0 8 0 2,002 355 osh-cpython
25 no-host bin-true 128,158 0 0 0 16 0 1,992 101 osh-native
2 no-host configure.cpython 2,218,226 2 0 0 32,928 0 14,546 1,122 bash
10 no-host configure.cpython 2,239,527 0 0 0 32,992 0 14,578 1,125 dash
18 no-host configure.cpython 6,184,014 0 0 0 27,512 0 13,275 1,329 osh-cpython
26 no-host configure.cpython 2,229,189 0 0 0 27,520 0 13,249 1,017 osh-native
4 no-host configure.ocaml 409,977 0 0 0 5,120 0 1,948 194 bash
12 no-host configure.ocaml 390,996 0 0 0 5,112 0 1,874 157 dash
20 no-host configure.ocaml 640,755 0 0 0 5,112 0 1,852 197 osh-cpython
28 no-host configure.ocaml 413,347 0 0 0 5,120 0 1,923 179 osh-native
5 no-host configure.tcc 6,541 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,300 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,983 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,103,832 1 0 0 42,400 0 18,634 1,232 bash
11 no-host configure.util-linux 2,258,562 3 0 0 42,584 0 17,509 1,170 dash
19 no-host configure.util-linux 5,335,087 14 0 0 39,120 0 17,031 1,378 osh-cpython
27 no-host configure.util-linux 1,997,607 0 0 0 39,128 0 16,971 1,096 osh-native
6 no-host configure.yash 256,814 0 0 0 4,120 0 873 85 bash
14 no-host configure.yash 244,086 0 0 0 3,720 0 870 75 dash
22 no-host configure.yash 385,709 0 0 0 3,728 0 854 95 osh-cpython
30 no-host configure.yash 258,433 0 0 0 3,736 0 849 62 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,694 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-d14240d9
dash dash-308ec8e6
osh-cpython osh-3762bc6c
osh-native osh-f7ef1181
host label host id
no-host no-host-556df3ee