/third_party/boost/libs/variant2/benchmark/ |
D | benchmark1.md | 10 variant2 (-DONLY_V2): 1837 ms 11 boost::variant (-DONLY_BV): 2627 ms 12 std::variant (-DONLY_SV): 1425 ms 19 double: 9041 ms; S=7.14286e+14 20 variant2: 48367 ms; S=7.14286e+14 21 boost::variant: 102776 ms; S=7.14286e+14 22 std::variant: 40590 ms; S=7.14286e+14 25 double: 9029 ms; S=7.14286e+14 26 variant2: 92962 ms; S=7.14286e+14 27 boost::variant: 110441 ms; S=7.14286e+14 [all …]
|
D | benchmark2.md | 10 variant2 (-DONLY_V2): 1403 ms 11 boost::variant (-DONLY_BV): 2972 ms 12 std::variant (-DONLY_SV): 1057 ms 19 prefix: 7016 ms; S=416666583333336 20 variant2: 24723 ms; S=416666583333336 21 boost::variant: 60438 ms; S=416666583333336 22 std::variant: 20707 ms; S=416666583333336 30 variant2 (-DONLY_V2): 1778 ms 31 boost::variant (-DONLY_BV): 3252 ms 32 std::variant (-DONLY_SV): 1372 ms [all …]
|
/third_party/mindspore/tests/ut/python/ir/ |
D | test_dtype.py | 20 import mindspore as ms namespace 26 assert ms.dtype_to_nptype(ms.bool_) == np.bool_ 27 assert ms.dtype_to_nptype(ms.int8) == np.int8 28 assert ms.dtype_to_nptype(ms.int16) == np.int16 29 assert ms.dtype_to_nptype(ms.int32) == np.int32 30 assert ms.dtype_to_nptype(ms.int64) == np.int64 31 assert ms.dtype_to_nptype(ms.uint8) == np.uint8 32 assert ms.dtype_to_nptype(ms.uint16) == np.uint16 33 assert ms.dtype_to_nptype(ms.uint32) == np.uint32 34 assert ms.dtype_to_nptype(ms.uint64) == np.uint64 [all …]
|
D | test_tensor.py | 24 import mindspore as ms namespace 40 tensor_list = ms.Tensor(lst, ms.float32) 47 tensor_list = ms.Tensor(lst, ms.float32) 53 t1 = ms.Tensor(ndarr) 54 assert isinstance(t1, ms.Tensor) 55 assert t1.dtype == ms.float64 57 t2 = ms.Tensor(np.zeros([1, 2, 3]), ms.float32) 58 assert isinstance(t2, ms.Tensor) 60 assert t2.dtype == ms.float32 62 t3 = ms.Tensor(0.1) [all …]
|
D | test_tensor_py.py | 18 import mindspore as ms namespace 35 ms.Tensor(nparray) 37 ms.Tensor(nparray, dtype=ms.float32) 42 a = ms.Tensor(np.ones([3, 3], np.float32)) 43 b = ms.Tensor(np.ones([3, 3], np.float32)) 49 a = ms.Tensor(np.ones([2, 3])) 50 b = ms.Tensor(np.ones([2, 3])) 56 a = ms.Tensor(np.ones([3, 3])) 57 b = ms.Tensor(np.ones([3, 3])) 63 b = ms.Tensor(arr) [all …]
|
/third_party/node/deps/npm/node_modules/mute-stream/test/ |
D | basic.js | 44 var ms = new MS 46 str.pipe(ms) 49 ms.on('data', function (c) { 52 ms.on('end', function () { 57 ms.mute() 59 ms.unmute() 61 ms.mute() 67 var ms = new MS 69 ms.pipe(str) 80 ms.write('foo') [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | xg-mixed-string.c | 69 struct mixed_string *ms = XMALLOC (struct mixed_string); in mixed_string_alloc_simple() local 74 ms->segments = NULL; in mixed_string_alloc_simple() 75 ms->nsegments = 0; in mixed_string_alloc_simple() 79 ms->segments = XNMALLOC (1, struct mixed_string_segment *); in mixed_string_alloc_simple() 84 ms->segments[0] = in mixed_string_alloc_simple() 88 ms->segments[0] = in mixed_string_alloc_simple() 90 ms->nsegments = 1; in mixed_string_alloc_simple() 92 ms->lcontext = lcontext; in mixed_string_alloc_simple() 93 ms->logical_file_name = logical_file_name; in mixed_string_alloc_simple() 94 ms->line_number = line_number; in mixed_string_alloc_simple() [all …]
|
/third_party/node/deps/npm/node_modules/ms/ |
D | readme.md | 1 # ms chapter 3 [![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) 11 ms('2 days') // 172800000 12 ms('1d') // 86400000 13 ms('10h') // 36000000 14 ms('2.5 hrs') // 9000000 15 ms('2h') // 7200000 16 ms('1m') // 60000 17 ms('5s') // 5000 18 ms('1y') // 31557600000 [all …]
|
D | index.js | 113 function fmtShort(ms) { argument 114 var msAbs = Math.abs(ms); 116 return Math.round(ms / d) + 'd'; 119 return Math.round(ms / h) + 'h'; 122 return Math.round(ms / m) + 'm'; 125 return Math.round(ms / s) + 's'; 127 return ms + 'ms'; 138 function fmtLong(ms) { argument 139 var msAbs = Math.abs(ms); 141 return plural(ms, msAbs, d, 'day'); [all …]
|
/third_party/node/deps/npm/node_modules/debug/node_modules/ms/ |
D | index.js | 108 function fmtShort(ms) { argument 109 if (ms >= d) { 110 return Math.round(ms / d) + 'd'; 112 if (ms >= h) { 113 return Math.round(ms / h) + 'h'; 115 if (ms >= m) { 116 return Math.round(ms / m) + 'm'; 118 if (ms >= s) { 119 return Math.round(ms / s) + 's'; 121 return ms + 'ms'; [all …]
|
D | readme.md | 1 # ms chapter 3 [![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) 11 ms('2 days') // 172800000 12 ms('1d') // 86400000 13 ms('10h') // 36000000 14 ms('2.5 hrs') // 9000000 15 ms('2h') // 7200000 16 ms('1m') // 60000 17 ms('5s') // 5000 18 ms('1y') // 31557600000 [all …]
|
/third_party/boost/libs/dll/test/ |
D | ctti_type_name_parser_test.cpp | 47 mangled_storage ms = lib.symbol_storage(); in main() local 52 for (auto& s : ms.get_storage()) { in main() 60 ms.add_alias<alias>("space::cpp_plugin_type_pasrser"); in main() 62 auto ctor1 = ms.get_constructor<alias()>(); in main() 65 auto ctor2 = ms.get_constructor<alias(int*)>(); in main() 68 auto ctor3 = ms.get_constructor<alias(const int*)>(); in main() 71 auto ctor4 = ms.get_constructor<alias(const volatile int*)>(); in main() 74 auto ctor5 = ms.get_constructor<alias(const std::string&)>(); in main() 77 auto ctor6 = ms.get_constructor<alias(const volatile std::string*)>(); in main() 80 v = ms.get_mem_fn<alias, void(int*)>("type_test"); in main() [all …]
|
D | cpp_mangle_test.cpp | 36 mangled_storage ms(lib); in main() local 40 for (auto &s : ms.get_storage()) in main() 46 v = ms.get_variable<double>("some_space::variable"); in main() 51 v = ms.get_variable<double>("some_space::variable_typo"); in main() 55 v = ms.get_variable<const double>("unscoped_c_var"); in main() 59 v = ms.get_variable<int>("unscoped_var"); in main() 64 v = ms.get_function<const int &()>("some_space::scoped_fun"); in main() 70 auto v1 = ms.get_function<void(const double)>("overloaded"); in main() 71 auto v2 = ms.get_function<void(const volatile int)>("overloaded"); in main() 76 v = ms.get_variable<int>("some_space::some_class::value"); in main() [all …]
|
/third_party/mindspore/tests/ut/python/utils/ |
D | test_initializer.py | 22 import mindspore as ms namespace 60 tensor = init.initializer(InitTwo(), [2, 2], ms.int32) 66 tensor = ms.Tensor(np.zeros([1, 2, 3])) 67 tensor = init.initializer(tensor, [1, 2, 3], ms.float32) 73 assert tensor.dtype == ms.float32 78 tensor = init.initializer(init.Zero(), [2, 2], ms.float32) 84 assert tensor.dtype == ms.float32 89 tensor = init.initializer('zeros', [1, 2], ms.float32) 94 tensor = init.initializer(init.One(), [2, 2], ms.float32) 99 tensor = init.initializer('ones', [1, 2], ms.float32) [all …]
|
/third_party/boost/libs/fiber/test/ |
D | test_mutex_dispatch.cpp | 22 typedef std::chrono::milliseconds ms; typedef 49 ns d = t1 - t0 - ms(250); in fn3() 50 BOOST_CHECK(d < ns(2500000)+ms(2000)); // within 2.5 ms in fn3() 58 ns d = t1 - t0 - ms(250); in fn4() 59 BOOST_CHECK(d < ns(50000000)+ms(2000)); // within 50 ms in fn4() 64 BOOST_CHECK( m.try_lock_for(ms(300)+ms(2000)) == true); in fn5() 67 ns d = t1 - t0 - ms(250); in fn5() 68 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn5() 73 BOOST_CHECK(m.try_lock_for(ms(250)) == false); in fn6() 75 ns d = t1 - t0 - ms(250); in fn6() [all …]
|
D | test_mutex_post.cpp | 22 typedef std::chrono::milliseconds ms; typedef 49 ns d = t1 - t0 - ms(250); in fn3() 50 BOOST_CHECK(d < ns(2500000)+ms(2000)); // within 2.5 ms in fn3() 58 ns d = t1 - t0 - ms(250); in fn4() 59 BOOST_CHECK(d < ns(50000000)+ms(2000)); // within 50 ms in fn4() 64 BOOST_CHECK( m.try_lock_for(ms(300)+ms(2000)) == true); in fn5() 67 ns d = t1 - t0 - ms(250); in fn5() 68 BOOST_CHECK(d < ns(5000000)+ms(2000)); // within 5 ms in fn5() 73 BOOST_CHECK(m.try_lock_for(ms(250)) == false); in fn6() 75 ns d = t1 - t0 - ms(250); in fn6() [all …]
|
/third_party/skia/tools/timer/ |
D | Timer.cpp | 9 SkString HumanizeMs(double ms) { in HumanizeMs() argument 10 if (ms > 60e+3) return SkStringPrintf("%.3gm", ms/60e+3); in HumanizeMs() 11 if (ms > 1e+3) return SkStringPrintf("%.3gs", ms/1e+3); in HumanizeMs() 12 if (ms < 1e-3) return SkStringPrintf("%.3gns", ms*1e+6); in HumanizeMs() 14 if (ms < 1) return SkStringPrintf("%.3gus", ms*1e+3); in HumanizeMs() 16 if (ms < 1) return SkStringPrintf("%.3gµs", ms*1e+3); in HumanizeMs() 18 return SkStringPrintf("%.3gms", ms); in HumanizeMs()
|
/third_party/flutter/skia/tools/timer/ |
D | Timer.cpp | 9 SkString HumanizeMs(double ms) { in HumanizeMs() argument 10 if (ms > 60e+3) return SkStringPrintf("%.3gm", ms/60e+3); in HumanizeMs() 11 if (ms > 1e+3) return SkStringPrintf("%.3gs", ms/1e+3); in HumanizeMs() 12 if (ms < 1e-3) return SkStringPrintf("%.3gns", ms*1e+6); in HumanizeMs() 14 if (ms < 1) return SkStringPrintf("%.3gus", ms*1e+3); in HumanizeMs() 16 if (ms < 1) return SkStringPrintf("%.3gµs", ms*1e+3); in HumanizeMs() 18 return SkStringPrintf("%.3gms", ms); in HumanizeMs()
|
/third_party/boost/libs/container/src/ |
D | dlmalloc_ext_2_8_6.c | 172 mstate ms = (mstate)msp; in mspace_malloc_lockless() local 173 if (!ok_magic(ms)) { in mspace_malloc_lockless() 174 USAGE_ERROR_ACTION(ms,ms); in mspace_malloc_lockless() 185 smallbits = ms->smallmap >> idx; in mspace_malloc_lockless() 190 b = smallbin_at(ms, idx); in mspace_malloc_lockless() 193 unlink_first_small_chunk(ms, b, p, idx); in mspace_malloc_lockless() 194 set_inuse_and_pinuse(ms, p, small_index2size(idx)); in mspace_malloc_lockless() 196 check_malloced_chunk(ms, mem, nb); in mspace_malloc_lockless() 200 else if (nb > ms->dvsize) { in mspace_malloc_lockless() 208 b = smallbin_at(ms, i); in mspace_malloc_lockless() [all …]
|
/third_party/mindspore/tests/ut/python/pynative_mode/ |
D | test_cont_cases.py | 18 from mindspore import dtype as ms unknown 46 … self.param = Parameter(Tensor(np.arange(2 * 2 * 2).reshape((2, 2, 2)), ms.float32), name="weight") 47 self.zero = Tensor(np.zeros(([2, 2, 2])), ms.float32) 63 idx = Tensor(np.array(0), dtype=ms.int32) 64 end = Tensor(np.array(4), dtype=ms.int32) 65 x = Tensor(np.random.randn(2, 2, 2).astype(np.float32), dtype=ms.float32) 75 … self.param = Parameter(Tensor(np.arange(2 * 2 * 2).reshape((2, 2, 2)), ms.float32), name="weight") 76 self.zero = Tensor(np.zeros(([2, 2, 2])), ms.float32) 100 idx = Tensor(np.array(0), dtype=ms.int32) 101 end = Tensor(np.array(4), dtype=ms.int32) [all …]
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_rl_buffer_op.py | 25 import mindspore as ms namespace 32 self.count = Parameter(Tensor(0, ms.int32), name="count") 33 self.head = Parameter(Tensor(0, ms.int32), name="head") 45 self.count = Parameter(Tensor(5, ms.int32), name="count") 46 self.head = Parameter(Tensor(0, ms.int32), name="head") 58 self.count = Parameter(Tensor(5, ms.int32), name="count") 59 self.head = Parameter(Tensor(0, ms.int32), name="head") 74 s = Tensor(np.array([2, 2, 2, 2]), ms.float32) 75 a = Tensor(np.array([0, 0]), ms.int32) 76 r = Tensor(np.array([0]), ms.int32) [all …]
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_rl_buffer_op.py | 25 import mindspore as ms namespace 32 self.count = Parameter(Tensor(0, ms.int32), name="count") 33 self.head = Parameter(Tensor(0, ms.int32), name="head") 45 self.count = Parameter(Tensor(5, ms.int32), name="count") 46 self.head = Parameter(Tensor(0, ms.int32), name="head") 58 self.count = Parameter(Tensor(5, ms.int32), name="count") 59 self.head = Parameter(Tensor(0, ms.int32), name="head") 73 s = Tensor(np.array([2, 2, 2, 2]), ms.float32) 74 a = Tensor(np.array([0, 0]), ms.int32) 75 r = Tensor(np.array([0]), ms.int32) [all …]
|
/third_party/boost/libs/thread/test/threads/this_thread/sleep_until/ |
D | sleep_until_pass.cpp | 32 boost::chrono::milliseconds ms(500); in main() local 34 boost::this_thread::sleep_until(t0 + ms); in main() 36 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 37 boost::chrono::nanoseconds err = ms / 100; in main() 47 boost::chrono::milliseconds ms(500); in main() local 49 boost::this_thread::sleep_until(t0 + ms); in main() 51 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 52 boost::chrono::nanoseconds err = ms / 100; in main() 62 boost::chrono::milliseconds ms(500); in main() local 64 boost::this_thread::no_interruption_point::sleep_until(t0 + ms); in main() [all …]
|
/third_party/boost/libs/thread/test/sync/futures/async/ |
D | async_pass.cpp | 40 typedef boost::chrono::milliseconds ms; typedef 56 boost::this_thread::sleep_for(ms(200)); in doit() 61 boost::this_thread::sleep_for(ms(200)); in operator ()() 90 boost::this_thread::sleep_for(ms(200)); in operator ()() 108 boost::this_thread::sleep_for(ms(200)); in f0() 116 boost::this_thread::sleep_for(ms(200)); in f1() 122 boost::this_thread::sleep_for(ms(200)); in f2() 127 boost::this_thread::sleep_for(ms(200)); in f3_0() 133 boost::this_thread::sleep_for(ms(200)); in f3_1() 140 boost::this_thread::sleep_for(ms(200)); in f3() [all …]
|
/third_party/node/deps/npm/node_modules/humanize-ms/ |
D | README.md | 1 humanize-ms 10 [npm-image]: https://img.shields.io/npm/v/humanize-ms.svg?style=flat 11 [npm-url]: https://npmjs.org/package/humanize-ms 12 [travis-image]: https://img.shields.io/travis/node-modules/humanize-ms.svg?style=flat 13 [travis-url]: https://travis-ci.org/node-modules/humanize-ms 14 [coveralls-image]: https://img.shields.io/coveralls/node-modules/humanize-ms.svg?style=flat 15 [coveralls-url]: https://coveralls.io/r/node-modules/humanize-ms?branch=master 18 [david-image]: https://img.shields.io/david/node-modules/humanize-ms.svg?style=flat 19 [david-url]: https://david-dm.org/node-modules/humanize-ms 21 transform humanize time to ms [all …]
|