我正在运行一个测试,我将比较获取时间b/w appfabric和SQL Server 2008,看起来appFabric的执行时间比SQL Server慢4倍.
我有一个SQL Server 2008安装程序,它只包含一个包含4列(全部nvarchar
)的表.该表有6000行.我在appfabric缓存中插入相同的行(作为CLR serializable obj).我正在运行一个循环来获取数据x次.
这是代码
public class AppFabricCache
{
readonly DataCache myDefaultCache;
public AppFabricCache()
{
//-------------------------
// Configure Cache Client
//-------------------------
//Define Array for 1 Cache Host
var servers = new List<DataCacheServerEndpoint>(1);
//Specify Cache Host Details
// Parameter 1 = host name
// Parameter 2 = cache port number
servers.Add(new DataCacheServerEndpoint(@"localhost", 22233));
//Create cache configuration
var configuration = new DataCacheFactoryConfiguration();
//Set the cache host(s)
configuration.Servers = servers;
//Set default properties for local …
Run Code Online (Sandbox Code Playgroud) 我有一个使用aiohttp和pandas编写的python web服务来执行一些基本的pandas操作.我尝试使用pypy 3.5-9.0 docker(https://hub.docker.com/_/pypy/)运行它,性能非常慢,相比之下,当我使用python 3.6 docker image运行时附带的时间截图花在调用堆栈中的每个函数上,似乎一切都很慢.....任何线索?