1. 反射调用 VS 动态编译调用 获取、设置值

 

循环次数: 100000

结果:

------ Test started: Assembly: Pixysoft.Framework.Reflection.dll ------

reflection
    Time Elapsed:        514ms
    CPU time:        
500,000,000ns
    Gen 
0:             0
    Gen 
1:             0
    Gen 
2:             0

dynamic
    Time Elapsed:        366ms
    CPU time:        
234,375,000ns
    Gen 
0:             132
    Gen 
1:             1
    Gen 
2:             0


1 passed, 0 failed, 0 skipped, took 1.11 seconds (Ad hoc).

相关文章:

  • 2021-07-25
  • 2021-08-27
  • 2021-09-23
  • 2021-12-12
  • 2021-09-13
  • 2022-12-23
  • 2021-05-13
猜你喜欢
  • 2021-08-10
  • 2022-01-29
  • 2022-01-25
  • 2022-01-30
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案