C++绑定&UE反射性能基线 #858
Replies: 8 comments 1 reply
-
非引用类型在RefValueSync中传引用,sConstTArrayRefIntRet 用例性能提升一倍 测试环境 测试结果 Puerts: (0x0x25f7258f8) 1m NoArgNoRet using 144ms
Puerts: (0x0x25f7258f8) 1m RetInt using 156ms
Puerts: (0x0x25f7258f8) 1m IntArgIntRet using 181ms
Puerts: (0x0x25f7258f8) 1m StrArgIntRet using 464ms
Puerts: (0x0x25f7258f8) 1m Vector Property Get using 68ms
Puerts: (0x0x25f7258f8) 1m Vector Property Set using 70ms
Puerts: (0x0x25f7258f8) 1m TArrayRefIntRet using 296ms
Puerts: (0x0x25f7258f8) TArrayRefIntRet:1024
Puerts: (0x0x25f7258f8) 1m ConstTArrayRefIntRet using 493ms
Puerts: (0x0x25f7258f8) ConstTArrayRefIntRet:1024
Puerts: (0x0x25f7258f8) 1m TArrayRet using 768ms
Puerts: (0x0x25f7258f8) 1,100
Puerts: (0x0x25f7258f8) 0
Puerts: (0x0x25f7258f8) 1m arr.Get using 54ms
Puerts: (0x0x25f7258f8) ---------------------------------------------------------
Puerts: (0x0x25f7258f8) 1m sNoArgNoRet using 43ms
Puerts: (0x0x25f7258f8) 1m sRetInt using 47ms
Puerts: (0x0x25f7258f8) 1m sIntArgIntRet using 50ms
Puerts: (0x0x25f7258f8) 1m sStrArgIntRet using 196ms
Puerts: (0x0x25f7258f8) 1m Vector Property sGet using 54ms
Puerts: (0x0x25f7258f8) 1m Vector Property sSet using 47ms
Puerts: (0x0x25f7258f8) 1m sTArrayRefIntRet using 93ms
Puerts: (0x0x25f7258f8) sTArrayRefIntRet:1024
Puerts: (0x0x25f7258f8) 1m sConstTArrayRefIntRet using 262ms
Puerts: (0x0x25f7258f8) sConstTArrayRefIntRet:1024
Puerts: (0x0x25f7258f8) 1m sTArrayRet using 773ms
Puerts: (0x0x25f7258f8) 1,100
Puerts: (0x0x25f7258f8) 0
Puerts: (0x0x25f7258f8) 1m sarr.Get using 32ms |
Beta Was this translation helpful? Give feedback.
-
添加4个用例,分别是int和string的引用以及指针。 Puerts: (0x0x227118cd8) 1m NoArgNoRet using 152ms
Puerts: (0x0x227118cd8) 1m RetInt using 167ms
Puerts: (0x0x227118cd8) 1m IntArgIntRet using 188ms
Puerts: (0x0x227118cd8) 1m StrArgIntRet using 520ms
Puerts: (0x0x227118cd8) 1m Vector Property Get using 64ms
Puerts: (0x0x227118cd8) 1m Vector Property Set using 71ms
Puerts: (0x0x227118cd8) 1m TArrayRefIntRet using 325ms
Puerts: (0x0x227118cd8) TArrayRefIntRet:1024
Puerts: (0x0x227118cd8) 1m ConstTArrayRefIntRet using 549ms
Puerts: (0x0x227118cd8) ConstTArrayRefIntRet:1024
Puerts: (0x0x227118cd8) 1m TArrayRet using 774ms
Puerts: (0x0x227118cd8) 1,100
Puerts: (0x0x227118cd8) 0
Puerts: (0x0x227118cd8) 1m arr.Get using 58ms
Puerts: (0x0x227118cd8) ---------------------------------------------------------
Puerts: (0x0x227118cd8) 1m sNoArgNoRet using 46ms
Puerts: (0x0x227118cd8) 1m sRetInt using 49ms
Puerts: (0x0x227118cd8) 1m sIntArgIntRet using 52ms
Puerts: (0x0x227118cd8) 1m sStrArgIntRet using 209ms
Puerts: (0x0x227118cd8) 1m Vector Property sGet using 55ms
Puerts: (0x0x227118cd8) 1m Vector Property sSet using 49ms
Puerts: (0x0x227118cd8) 1m sTArrayRefIntRet using 99ms
Puerts: (0x0x227118cd8) sTArrayRefIntRet:1024
Puerts: (0x0x227118cd8) 1m sConstTArrayRefIntRet using 263ms
Puerts: (0x0x227118cd8) sConstTArrayRefIntRet:1024
Puerts: (0x0x227118cd8) 1m sTArrayRet using 792ms
Puerts: (0x0x227118cd8) 1,100
Puerts: (0x0x227118cd8) 0
Puerts: (0x0x227118cd8) 1m sarr.Get using 34ms
Puerts: (0x0x227118cd8) 1m IntRef using 148ms
Puerts: (0x0x227118cd8) int ref return 10
Puerts: (0x0x227118cd8) 1m IntPtr using 146ms
Puerts: (0x0x227118cd8) int ptr return 11
Puerts: (0x0x227118cd8) 1m StdStringRef using 340ms
Puerts: (0x0x227118cd8) string ref return A
Puerts: (0x0x227118cd8) 1m StdStringPtr using 344ms
Puerts: (0x0x227118cd8) string ptr return Z |
Beta Was this translation helpful? Give feedback.
-
优化const Object&参数(1e32fa7ec5a95051ff710a3d6377237593c844d2),直接传指针,sConstTArrayRefIntRet性能提升好几倍 而std::string引用也得到一定的提升,可能和这个优化有关(6b32f987b520e8f7a8fce00b05ad22e8f66f1f30) Puerts: (0x0x226eb99d8) 1m NoArgNoRet using 143ms
Puerts: (0x0x226eb99d8) 1m RetInt using 162ms
Puerts: (0x0x226eb99d8) 1m IntArgIntRet using 180ms
Puerts: (0x0x226eb99d8) 1m StrArgIntRet using 461ms
Puerts: (0x0x226eb99d8) 1m Vector Property Get using 70ms
Puerts: (0x0x226eb99d8) 1m Vector Property Set using 72ms
Puerts: (0x0x226eb99d8) 1m TArrayRefIntRet using 295ms
Puerts: (0x0x226eb99d8) TArrayRefIntRet:1024
Puerts: (0x0x226eb99d8) 1m ConstTArrayRefIntRet using 490ms
Puerts: (0x0x226eb99d8) ConstTArrayRefIntRet:1024
Puerts: (0x0x226eb99d8) 1m TArrayRet using 768ms
Puerts: (0x0x226eb99d8) 1,100
Puerts: (0x0x226eb99d8) 0
Puerts: (0x0x226eb99d8) 1m arr.Get using 56ms
Puerts: (0x0x226eb99d8) ---------------------------------------------------------
Puerts: (0x0x226eb99d8) 1m sNoArgNoRet using 44ms
Puerts: (0x0x226eb99d8) 1m sRetInt using 49ms
Puerts: (0x0x226eb99d8) 1m sIntArgIntRet using 52ms
Puerts: (0x0x226eb99d8) 1m sStrArgIntRet using 195ms
Puerts: (0x0x226eb99d8) 1m Vector Property sGet using 53ms
Puerts: (0x0x226eb99d8) 1m Vector Property sSet using 48ms
Puerts: (0x0x226eb99d8) 1m sTArrayRefIntRet using 95ms
Puerts: (0x0x226eb99d8) sTArrayRefIntRet:1024
Puerts: (0x0x226eb99d8) 1m sConstTArrayRefIntRet using 54ms
Puerts: (0x0x226eb99d8) sConstTArrayRefIntRet:1024
Puerts: (0x0x226eb99d8) 1m sTArrayRet using 768ms
Puerts: (0x0x226eb99d8) 1,100
Puerts: (0x0x226eb99d8) 0
Puerts: (0x0x226eb99d8) 1m sarr.Get using 34ms
Puerts: (0x0x226eb99d8) 1m IntRef using 143ms
Puerts: (0x0x226eb99d8) int ref return 10
Puerts: (0x0x226eb99d8) 1m IntPtr using 144ms
Puerts: (0x0x226eb99d8) int ptr return 11
Puerts: (0x0x226eb99d8) 1m StdStringRef using 286ms
Puerts: (0x0x226eb99d8) string ref return A
Puerts: (0x0x226eb99d8) 1m StdStringPtr using 273ms
Puerts: (0x0x226eb99d8) string ptr return Z |
Beta Was this translation helpful? Give feedback.
-
反射性能优化:2b7fa4b Puerts: (0x0x24ff91918) 1m NoArgNoRet using 90ms
Puerts: (0x0x24ff91918) 1m RetInt using 103ms
Puerts: (0x0x24ff91918) 1m IntArgIntRet using 123ms
Puerts: (0x0x24ff91918) 1m StrArgIntRet using 404ms
Puerts: (0x0x24ff91918) 1m Vector Property Get using 64ms
Puerts: (0x0x24ff91918) 1m Vector Property Set using 71ms
Puerts: (0x0x24ff91918) 1m TArrayRefIntRet using 178ms
Puerts: (0x0x24ff91918) TArrayRefIntRet:1024
Puerts: (0x0x24ff91918) 1m ConstTArrayRefIntRet using 137ms
Puerts: (0x0x24ff91918) ConstTArrayRefIntRet:1024
Puerts: (0x0x24ff91918) 1m TArrayRet using 739ms
Puerts: (0x0x24ff91918) 1,100
Puerts: (0x0x24ff91918) 0
Puerts: (0x0x24ff91918) 1m arr.Get using 56ms
Puerts: (0x0x24ff91918) ---------------------------------------------------------
Puerts: (0x0x24ff91918) 1m sNoArgNoRet using 47ms
Puerts: (0x0x24ff91918) 1m sRetInt using 49ms
Puerts: (0x0x24ff91918) 1m sIntArgIntRet using 52ms
Puerts: (0x0x24ff91918) 1m sStrArgIntRet using 196ms
Puerts: (0x0x24ff91918) 1m Vector Property sGet using 56ms
Puerts: (0x0x24ff91918) 1m Vector Property sSet using 48ms
Puerts: (0x0x24ff91918) 1m sTArrayRefIntRet using 97ms
Puerts: (0x0x24ff91918) sTArrayRefIntRet:1024
Puerts: (0x0x24ff91918) 1m sConstTArrayRefIntRet using 54ms
Puerts: (0x0x24ff91918) sConstTArrayRefIntRet:1024
Puerts: (0x0x24ff91918) 1m sTArrayRet using 790ms
Puerts: (0x0x24ff91918) 1,100
Puerts: (0x0x24ff91918) 0
Puerts: (0x0x24ff91918) 1m sarr.Get using 34ms
Puerts: (0x0x24ff91918) 1m IntRef using 143ms
Puerts: (0x0x24ff91918) int ref return 10
Puerts: (0x0x24ff91918) 1m IntPtr using 146ms
Puerts: (0x0x24ff91918) int ptr return 11
Puerts: (0x0x24ff91918) 1m StdStringRef using 325ms
Puerts: (0x0x24ff91918) string ref return A
Puerts: (0x0x24ff91918) 1m StdStringPtr using 315ms
Puerts: (0x0x24ff91918) string ptr return Z |
Beta Was this translation helpful? Give feedback.
-
反射优化:11d76bf Puerts: (0x0x252311f38) 1m NoArgNoRet using 92ms
Puerts: (0x0x252311f38) 1m RetInt using 111ms
Puerts: (0x0x252311f38) 1m IntArgIntRet using 136ms
Puerts: (0x0x252311f38) 1m StrArgIntRet using 415ms
Puerts: (0x0x252311f38) 1m Vector Property Get using 67ms
Puerts: (0x0x252311f38) 1m Vector Property Set using 74ms
Puerts: (0x0x252311f38) 1m TArrayRefIntRet using 188ms
Puerts: (0x0x252311f38) TArrayRefIntRet:1024
Puerts: (0x0x252311f38) 1m ConstTArrayRefIntRet using 144ms
Puerts: (0x0x252311f38) ConstTArrayRefIntRet:1024
Puerts: (0x0x252311f38) 1m TArrayRet using 699ms
Puerts: (0x0x252311f38) 1,100
Puerts: (0x0x252311f38) 0
Puerts: (0x0x252311f38) 1m arr.Get using 59ms
Puerts: (0x0x252311f38) ---------------------------------------------------------
Puerts: (0x0x252311f38) 1m sNoArgNoRet using 44ms
Puerts: (0x0x252311f38) 1m sRetInt using 47ms
Puerts: (0x0x252311f38) 1m sIntArgIntRet using 51ms
Puerts: (0x0x252311f38) 1m sStrArgIntRet using 200ms
Puerts: (0x0x252311f38) 1m Vector Property sGet using 53ms
Puerts: (0x0x252311f38) 1m Vector Property sSet using 47ms
Puerts: (0x0x252311f38) 1m sTArrayRefIntRet using 99ms
Puerts: (0x0x252311f38) sTArrayRefIntRet:1024
Puerts: (0x0x252311f38) 1m sConstTArrayRefIntRet using 57ms
Puerts: (0x0x252311f38) sConstTArrayRefIntRet:1024
Puerts: (0x0x252311f38) 1m sTArrayRet using 802ms
Puerts: (0x0x252311f38) 1,100
Puerts: (0x0x252311f38) 0
Puerts: (0x0x252311f38) 1m sarr.Get using 35ms
Puerts: (0x0x252311f38) 1m IntRef using 143ms
Puerts: (0x0x252311f38) int ref return 10
Puerts: (0x0x252311f38) 1m IntPtr using 145ms
Puerts: (0x0x252311f38) int ptr return 11
Puerts: (0x0x252311f38) 1m StdStringRef using 303ms
Puerts: (0x0x252311f38) string ref return A
Puerts: (0x0x252311f38) 1m StdStringPtr using 304ms
Puerts: (0x0x252311f38) string ptr return Z |
Beta Was this translation helpful? Give feedback.
-
UE5.1, v8 8.4 Puerts: (0x0x1e5f943f8) 1m NoArgNoRet using 114ms
Puerts: (0x0x1e5f943f8) 1m RetInt using 147ms
Puerts: (0x0x1e5f943f8) 1m IntArgIntRet using 166ms
Puerts: (0x0x1e5f943f8) 1m StrArgIntRet using 451ms
Puerts: (0x0x1e5f943f8) 1m Vector Property Get using 64ms
Puerts: (0x0x1e5f943f8) 1m Vector Property Set using 77ms
Puerts: (0x0x1e5f943f8) 1m TArrayRefIntRet using 235ms
Puerts: (0x0x1e5f943f8) TArrayRefIntRet:1024
Puerts: (0x0x1e5f943f8) 1m ConstTArrayRefIntRet using 193ms
Puerts: (0x0x1e5f943f8) ConstTArrayRefIntRet:1024
Puerts: (0x0x1e5f943f8) 1m TArrayRet using 792ms
Puerts: (0x0x1e5f943f8) 1,100
Puerts: (0x0x1e5f943f8) 0
Puerts: (0x0x1e5f943f8) 1m arr.Get using 65ms
Puerts: (0x0x1e5f943f8) ---------------------------------------------------------
Puerts: (0x0x1e5f943f8) 1m sNoArgNoRet using 48ms
Puerts: (0x0x1e5f943f8) 1m sRetInt using 50ms
Puerts: (0x0x1e5f943f8) 1m sIntArgIntRet using 52ms
Puerts: (0x0x1e5f943f8) 1m sStrArgIntRet using 211ms
Puerts: (0x0x1e5f943f8) 1m Vector Property sGet using 52ms
Puerts: (0x0x1e5f943f8) 1m Vector Property sSet using 52ms
Puerts: (0x0x1e5f943f8) 1m sTArrayRefIntRet using 101ms
Puerts: (0x0x1e5f943f8) sTArrayRefIntRet:1024
Puerts: (0x0x1e5f943f8) 1m sConstTArrayRefIntRet using 59ms
Puerts: (0x0x1e5f943f8) sConstTArrayRefIntRet:1024
Puerts: (0x0x1e5f943f8) 1m sTArrayRet using 906ms
Puerts: (0x0x1e5f943f8) 1,100
Puerts: (0x0x1e5f943f8) 0
Puerts: (0x0x1e5f943f8) 1m sarr.Get using 37ms
Puerts: (0x0x1e5f943f8) 1m IntRef using 152ms
Puerts: (0x0x1e5f943f8) int ref return 10
Puerts: (0x0x1e5f943f8) 1m IntPtr using 154ms
Puerts: (0x0x1e5f943f8) int ptr return 11
Puerts: (0x0x1e5f943f8) 1m StdStringRef using 316ms
Puerts: (0x0x1e5f943f8) string ref return A
Puerts: (0x0x1e5f943f8) 1m StdStringPtr using 324ms
Puerts: (0x0x1e5f943f8) string ptr return Z UE5.1, v8 9.4 Puerts: (0x0x1e7e8f818) 1m NoArgNoRet using 112ms
Puerts: (0x0x1e7e8f818) 1m RetInt using 136ms
Puerts: (0x0x1e7e8f818) 1m IntArgIntRet using 165ms
Puerts: (0x0x1e7e8f818) 1m StrArgIntRet using 505ms
Puerts: (0x0x1e7e8f818) 1m Vector Property Get using 70ms
Puerts: (0x0x1e7e8f818) 1m Vector Property Set using 78ms
Puerts: (0x0x1e7e8f818) 1m TArrayRefIntRet using 216ms
Puerts: (0x0x1e7e8f818) TArrayRefIntRet:1024
Puerts: (0x0x1e7e8f818) 1m ConstTArrayRefIntRet using 178ms
Puerts: (0x0x1e7e8f818) ConstTArrayRefIntRet:1024
Puerts: (0x0x1e7e8f818) 1m TArrayRet using 756ms
Puerts: (0x0x1e7e8f818) 1,100
Puerts: (0x0x1e7e8f818) 0
Puerts: (0x0x1e7e8f818) 1m arr.Get using 62ms
Puerts: (0x0x1e7e8f818) ---------------------------------------------------------
Puerts: (0x0x1e7e8f818) 1m sNoArgNoRet using 46ms
Puerts: (0x0x1e7e8f818) 1m sRetInt using 48ms
Puerts: (0x0x1e7e8f818) 1m sIntArgIntRet using 51ms
Puerts: (0x0x1e7e8f818) 1m sStrArgIntRet using 226ms
Puerts: (0x0x1e7e8f818) 1m Vector Property sGet using 55ms
Puerts: (0x0x1e7e8f818) 1m Vector Property sSet using 53ms
Puerts: (0x0x1e7e8f818) 1m sTArrayRefIntRet using 102ms
Puerts: (0x0x1e7e8f818) sTArrayRefIntRet:1024
Puerts: (0x0x1e7e8f818) 1m sConstTArrayRefIntRet using 61ms
Puerts: (0x0x1e7e8f818) sConstTArrayRefIntRet:1024
Puerts: (0x0x1e7e8f818) 1m sTArrayRet using 787ms
Puerts: (0x0x1e7e8f818) 1,100
Puerts: (0x0x1e7e8f818) 0
Puerts: (0x0x1e7e8f818) 1m sarr.Get using 37ms
Puerts: (0x0x1e7e8f818) 1m IntRef using 165ms
Puerts: (0x0x1e7e8f818) int ref return 10
Puerts: (0x0x1e7e8f818) 1m IntPtr using 163ms
Puerts: (0x0x1e7e8f818) int ptr return 11
Puerts: (0x0x1e7e8f818) 1m StdStringRef using 350ms
Puerts: (0x0x1e7e8f818) string ref return A
Puerts: (0x0x1e7e8f818) 1m StdStringPtr using 360ms
Puerts: (0x0x1e7e8f818) string ptr return Z UE5.1, v8 9.4 WITH_V8_FAST_CALL Puerts: (0x0x1fb843438) 1m NoArgNoRet using 109ms
Puerts: (0x0x1fb843438) 1m RetInt using 132ms
Puerts: (0x0x1fb843438) 1m IntArgIntRet using 158ms
Puerts: (0x0x1fb843438) 1m StrArgIntRet using 479ms
Puerts: (0x0x1fb843438) 1m Vector Property Get using 71ms
Puerts: (0x0x1fb843438) 1m Vector Property Set using 79ms
Puerts: (0x0x1fb843438) 1m TArrayRefIntRet using 218ms
Puerts: (0x0x1fb843438) TArrayRefIntRet:1024
Puerts: (0x0x1fb843438) 1m ConstTArrayRefIntRet using 178ms
Puerts: (0x0x1fb843438) ConstTArrayRefIntRet:1024
Puerts: (0x0x1fb843438) 1m TArrayRet using 787ms
Puerts: (0x0x1fb843438) 1,100
Puerts: (0x0x1fb843438) 0
Puerts: (0x0x1fb843438) 1m arr.Get using 61ms
Puerts: (0x0x1fb843438) ---------------------------------------------------------
Puerts: (0x0x1fb843438) 1m sNoArgNoRet using 34ms
Puerts: (0x0x1fb843438) 1m sRetInt using 35ms
Puerts: (0x0x1fb843438) 1m sIntArgIntRet using 35ms
Puerts: (0x0x1fb843438) 1m sStrArgIntRet using 198ms
Puerts: (0x0x1fb843438) 1m Vector Property sGet using 52ms
Puerts: (0x0x1fb843438) 1m Vector Property sSet using 52ms
Puerts: (0x0x1fb843438) 1m sTArrayRefIntRet using 103ms
Puerts: (0x0x1fb843438) sTArrayRefIntRet:1024
Puerts: (0x0x1fb843438) 1m sConstTArrayRefIntRet using 57ms
Puerts: (0x0x1fb843438) sConstTArrayRefIntRet:1024
Puerts: (0x0x1fb843438) 1m sTArrayRet using 797ms
Puerts: (0x0x1fb843438) 1,100
Puerts: (0x0x1fb843438) 0
Puerts: (0x0x1fb843438) 1m sarr.Get using 37ms
Puerts: (0x0x1fb843438) 1m IntRef using 170ms
Puerts: (0x0x1fb843438) int ref return 10
Puerts: (0x0x1fb843438) 1m IntPtr using 168ms
Puerts: (0x0x1fb843438) int ptr return 11
Puerts: (0x0x1fb843438) 1m StdStringRef using 334ms
Puerts: (0x0x1fb843438) string ref return A
Puerts: (0x0x1fb843438) 1m StdStringPtr using 339ms
Puerts: (0x0x1fb843438) string ptr return Z |
Beta Was this translation helpful? Give feedback.
-
测试版本( bc8242c ) 关闭异常:
开启thread local实现的异常:
开启thread local实现的异常略微影响性能。 开启c++ throw实现的异常:
|
Beta Was this translation helpful? Give feedback.
-
测试版本:bd5cae3 Puerts: (0x0x25b50a098) 1m NoArgNoRet using 110ms
Puerts: (0x0x25b50a098) 1m RetInt using 147ms
Puerts: (0x0x25b50a098) 1m IntArgIntRet using 160ms
Puerts: (0x0x25b50a098) 1m StrArgIntRet using 408ms
Puerts: (0x0x25b50a098) 1m Vector Property Get using 71ms
Puerts: (0x0x25b50a098) 1m Vector Property Set using 76ms
Puerts: (0x0x25b50a098) 1m TArrayRefIntRet using 216ms
Puerts: (0x0x25b50a098) TArrayRefIntRet:1024
Puerts: (0x0x25b50a098) 1m ConstTArrayRefIntRet using 172ms
Puerts: (0x0x25b50a098) ConstTArrayRefIntRet:1024
Puerts: (0x0x25b50a098) 1m TArrayRet using 545ms
Puerts: (0x0x25b50a098) 1,100
Puerts: (0x0x25b50a098) 0
Puerts: (0x0x25b50a098) 1m arr.Get using 69ms
Puerts: (0x0x25b50a098) ---------------------------------------------------------
Puerts: (0x0x25b50a098) 1m sNoArgNoRet using 45ms
Puerts: (0x0x25b50a098) 1m sRetInt using 48ms
Puerts: (0x0x25b50a098) 1m sIntArgIntRet using 55ms
Puerts: (0x0x25b50a098) 1m sStrArgIntRet using 180ms
Puerts: (0x0x25b50a098) 1m Vector Property sGet using 57ms
Puerts: (0x0x25b50a098) 1m Vector Property sSet using 51ms
Puerts: (0x0x25b50a098) 1m sTArrayRefIntRet using 102ms
Puerts: (0x0x25b50a098) sTArrayRefIntRet:1024
Puerts: (0x0x25b50a098) 1m sConstTArrayRefIntRet using 60ms
Puerts: (0x0x25b50a098) sConstTArrayRefIntRet:1024
Puerts: (0x0x25b50a098) 1m sTArrayRet using 630ms
Puerts: (0x0x25b50a098) 1,100
Puerts: (0x0x25b50a098) 0
Puerts: (0x0x25b50a098) 1m sarr.Get using 39ms
Puerts: (0x0x25b50a098) 1m IntRef using 160ms
Puerts: (0x0x25b50a098) int ref return 10
Puerts: (0x0x25b50a098) 1m IntPtr using 157ms
Puerts: (0x0x25b50a098) int ptr return 11
Puerts: (0x0x25b50a098) 1m StdStringRef using 300ms
Puerts: (0x0x25b50a098) string ref return A
Puerts: (0x0x25b50a098) 1m StdStringPtr using 303ms
Puerts: (0x0x25b50a098) string ptr return Z |
Beta Was this translation helpful? Give feedback.
-
多线程优化后:#846
测试环境
iMac (Retina 5K, 27-inch, 2020)
3.6 GHz 十核Intel Core i9
32 GB 2667 MHz DDR4
分割线前是反射,后面是静态,统计的是百万次调用花费的时间
Beta Was this translation helpful? Give feedback.
All reactions