Skip to content

Instantly share code, notes, and snippets.

@mzdaniel
Last active January 7, 2017 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzdaniel/f7784768054300b2ab885e2ed32c9fda to your computer and use it in GitHub Desktop.
Save mzdaniel/f7784768054300b2ab885e2ed32c9fda to your computer and use it in GitHub Desktop.
Olimex MOD-WIFI-ESP8266-DEV MicroPython v1.8.6-302-gef1bbad-dirty on 2017-01-07 (ESP8266_NONOS_SDK_V2.0.0_16_08_10)
admin@xubuntu:/tmp$ cat esp8266-bench-2-concurrent.txt
ab -n10 -c2 http://192.168.43.163:8081/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.43.163 (be patient).....done
Server Software:
Server Hostname: 192.168.43.163
Server Port: 8081
Document Path: /
Document Length: 8 bytes
Concurrency Level: 2
Time taken for tests: 1.366 seconds
Complete requests: 10
Failed requests: 0
Total transferred: 270 bytes
HTML transferred: 80 bytes
Requests per second: 7.32 [#/sec] (mean)
Time per request: 273.286 [ms] (mean)
Time per request: 136.643 [ms] (mean, across all concurrent requests)
Transfer rate: 0.19 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 11 103 61.2 84 191
Processing: 73 161 83.6 167 310
Waiting: 73 161 83.6 167 310
Total: 172 264 100.6 229 490
Percentage of the requests served within a certain time (ms)
50% 229
66% 245
75% 308
80% 372
90% 490
95% 490
98% 490
99% 490
100% 490 (longest request)
admin@xubuntu:/data/micropython/micropython-lib/uasyncio/benchmark$ ab -n1000 -c1 http://192.168.43.163:8081/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.43.163 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software:
Server Hostname: 192.168.43.163
Server Port: 8081
Document Path: /
Document Length: 8 bytes
Concurrency Level: 1
Time taken for tests: 230.722 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 27000 bytes
HTML transferred: 8000 bytes
Requests per second: 4.33 [#/sec] (mean)
Time per request: 230.722 [ms] (mean)
Time per request: 230.722 [ms] (mean, across all concurrent requests)
Transfer rate: 0.11 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 7 82 69.4 72 1053
Processing: 37 148 103.2 133 2612
Waiting: 37 148 103.3 133 2612
Total: 45 231 126.0 209 2712
Percentage of the requests served within a certain time (ms)
50% 209
66% 256
75% 282
80% 305
90% 339
95% 408
98% 464
99% 513
100% 2712 (longest request)
(esp)/data/vagga/micropython.git/tests$ time ./run-tests --target esp8266 --device /dev/ttyUSB0
476 tests performed (13889 individual testcases)
473 tests passed
35 tests skipped: builtin_compile bytes_partition class_descriptor exception_chain fun_name parser string_center string_partition string_rpartition string_splitlines machine_pinbase machine_pulse ubinascii_crc32 urandom_extra vfs_fat_fileio vfs_fat_fsusermount vfs_fat_oldproto vfs_fat_ramdisk bytearray_construct bytes_construct cmath_fun cmath_fun_special complex1 float2int float2int_doubleprec float_divmod int_big_float math_fun_special string_format true_value types meminfo memstats rge_sm sys_exc_info
3 tests failed: viper_binop_arith viper_binop_multi_comp viper_misc
real 2m50.550s
user 0m11.556s
sys 0m1.860s
admin@xubuntu:/data/vagga/micropython.git/tests$ ./run-bench-tests
bench/arrayop:
0.143s (+00.00%) bench/arrayop-1-list_inplace.py
0.297s (+107.60%) bench/arrayop-2-list_map.py
0.154s (+07.61%) bench/arrayop-3-bytearray_inplace.py
0.344s (+140.89%) bench/arrayop-4-bytearray_map.py
bench/bytealloc:
0.417s (+00.00%) bench/bytealloc-1-bytes_n.py
2.449s (+486.54%) bench/bytealloc-2-repeat.py
bench/bytebuf:
0.155s (+00.00%) bench/bytebuf-1-inplace.py
1.136s (+634.66%) bench/bytebuf-2-join_map_bytes.py
0.338s (+118.58%) bench/bytebuf-3-bytarray_map.py
bench/from_iter:
0.070s (+00.00%) bench/from_iter-1-list_bound.py
0.279s (+299.43%) bench/from_iter-2-list_unbound.py
0.104s (+48.75%) bench/from_iter-3-tuple_bound.py
0.283s (+305.04%) bench/from_iter-4-tuple_unbound.py
0.072s (+03.20%) bench/from_iter-5-bytes_bound.py
0.301s (+330.96%) bench/from_iter-6-bytes_unbound.py
0.069s (-01.83%) bench/from_iter-7-bytearray_bound.py
0.321s (+359.24%) bench/from_iter-8-bytearray_unbound.py
bench/func_args:
1.487s (+00.00%) bench/func_args-1.1-pos_1.py
1.579s (+06.16%) bench/func_args-1.2-pos_3.py
1.540s (+03.55%) bench/func_args-2-pos_default_2_of_3.py
1.627s (+09.42%) bench/func_args-3.1-kw_1.py
1.854s (+24.70%) bench/func_args-3.2-kw_3.py
bench/func_builtin:
0.294s (+00.00%) bench/func_builtin-1-enum_pos.py
0.304s (+03.31%) bench/func_builtin-2-enum_kw.py
bench/funcall:
0.376s (+00.00%) bench/funcall-1-inline.py
1.612s (+328.43%) bench/funcall-2-funcall.py
1.617s (+329.90%) bench/funcall-3-funcall-local.py
bench/loop_count:
0.432s (+00.00%) bench/loop_count-1-range.py
0.177s (-59.16%) bench/loop_count-2-range_iter.py
0.423s (-02.24%) bench/loop_count-3-while_up.py
0.436s (+00.86%) bench/loop_count-4-while_down_gt.py
0.483s (+11.59%) bench/loop_count-5-while_down_ne.py
0.478s (+10.55%) bench/loop_count-5.1-while_down_ne_localvar.py
bench/var:
0.474s (+00.00%) bench/var-1-constant.py
0.435s (-08.34%) bench/var-2-global.py
0.433s (-08.68%) bench/var-3-local.py
0.434s (-08.50%) bench/var-4-arg.py
1.379s (+190.62%) bench/var-5-class-attr.py
0.503s (+06.10%) bench/var-6-instance-attr.py
0.494s (+04.04%) bench/var-6.1-instance-attr-5.py
3.502s (+637.97%) bench/var-7-instance-meth.py
0.698s (+47.01%) bench/var-8-namedtuple-1st.py
0.772s (+62.63%) bench/var-8.1-namedtuple-5th.py
9 tests performed (43 individual testcases)
admin@xubuntu:/tmp$ cat micropython-run-tests.txt
MicroPython v1.8.6-302-gef1bbad-dirty on 2017-01-07; ESP module with ESP8266
563 tests performed (18112 individual testcases)
563 tests passed
10 tests skipped: cmd_parsetree framebuf1 framebuf16 urandom_extra vfs_fat_fileio vfs_fat_fsusermount vfs_fat_oldproto vfs_fat_ramdisk buffered_writer extra_coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment